# Newbie

**URL:** https://root-forum.cern.ch/c/newbie/26.md?page=65

[Latest](https://root-forum.cern.ch/latest.md) · [Categories](https://root-forum.cern.ch/categories.md) · [Tags](https://root-forum.cern.ch/tags.md)

**Page:** 66

---

## [Root Trees Workflow](https://root-forum.cern.ch/t/root-trees-workflow/46922)

<div class="topic-metadata">

**Author:** [@Jailbone](https://root-forum.cern.ch/u/Jailbone)\
**Replies:** 9\
**Last updated:** [September 23, 2021, 4:12am UTC](https://root-forum.cern.ch/t/root-trees-workflow/46922 "2021-09-23T04:12:19Z")

</div>

Hi, I never worked with Trees but I want to start. So I am quite confused what the best way would be as there are different options to create and write to trees. Maybe a specific example: Suppose I have a device with a…

---

## [Getting mean from htemp](https://root-forum.cern.ch/t/getting-mean-from-htemp/46894)

<div class="topic-metadata">

**Author:** [@Titanium\_Flowers](https://root-forum.cern.ch/u/Titanium_Flowers)\
**Replies:** 3\
**Last updated:** [September 22, 2021, 11:15pm UTC](https://root-forum.cern.ch/t/getting-mean-from-htemp/46894 "2021-09-22T23:15:40Z")

</div>

Hello Here’s my question. I have multiple branches in a Ttree for different inputs such as energy, angle etc. Around 20 of them are Rear detection and the other 20 are front detection. I would like to iterate over the …

---

## [Need help with the installation process please](https://root-forum.cern.ch/t/need-help-with-the-installation-process-please/46913)

<div class="topic-metadata">

**Author:** [@sofia.r](https://root-forum.cern.ch/u/sofia.r)\
**Replies:** 14\
**Last updated:** [September 22, 2021, 2:08pm UTC](https://root-forum.cern.ch/t/need-help-with-the-installation-process-please/46913 "2021-09-22T14:08:32Z")

</div>

ROOT Version: root\_v6.24.06.win32.vc16 Platform: Win 10 - Family edition x64 Compiler: not sure Hi, I’m a pure newbie with Root. I’d like to install Root and to later install Pyroot to be able to use Python with Ro…

---

## [Is it possible to download all builtin packages before compiling begins?](https://root-forum.cern.ch/t/is-it-possible-to-download-all-builtin-packages-before-compiling-begins/46403)

<div class="topic-metadata">

**Author:** [@James-Carroll](https://root-forum.cern.ch/u/James-Carroll)\
**Replies:** 5\
**Last updated:** [September 3, 2021, 8:38am UTC](https://root-forum.cern.ch/t/is-it-possible-to-download-all-builtin-packages-before-compiling-begins/46403 "2021-09-03T08:38:27Z")

</div>

Hello ROOTers! I’m considering pushing a build of the ROOT snap to arm64 platforms, providing a binary distribution for e.g, Raspberry Pi’s, however, I’m currently being held back by a rather peculiar requirement that I…

---

## [Adding a circle on a contour plot](https://root-forum.cern.ch/t/adding-a-circle-on-a-contour-plot/46923)

<div class="topic-metadata">

**Author:** [@fabstr](https://root-forum.cern.ch/u/fabstr)\
**Replies:** 5\
**Last updated:** [September 21, 2021, 4:17pm UTC](https://root-forum.cern.ch/t/adding-a-circle-on-a-contour-plot/46923 "2021-09-21T16:17:36Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version:\_6.22/00 Platform: Ubuntu 20.04.1 LTS (WSL2) Compiler: GNU or GCC Hello, I have created a contour plot of the magnetic flux dens…

---

## [TMath.h is not found](https://root-forum.cern.ch/t/tmath-h-is-not-found/46819)

<div class="topic-metadata">

**Author:** [@emilianozm24](https://root-forum.cern.ch/u/emilianozm24)\
**Replies:** 3\
**Last updated:** [September 21, 2021, 5:01am UTC](https://root-forum.cern.ch/t/tmath-h-is-not-found/46819 "2021-09-21T05:01:52Z")

</div>

Hello everyone, everytime I try to use TMath or TGraph by “include\<TMath.h\>” the compiler can’t find this package: ezaldivar@xxxx:~$ g++ -o tarea4 ./tarea4\_1.C ./tarea4\_1.C:1:10: fatal error: TMath.h: No such file or d…

---

## [How to contribute to Root Code?](https://root-forum.cern.ch/t/how-to-contribute-to-root-code/46691)

<div class="topic-metadata">

**Author:** [@Sayandeep\_Ghosh](https://root-forum.cern.ch/u/Sayandeep_Ghosh)\
**Replies:** 24\
**Last updated:** [September 20, 2021, 7:19pm UTC](https://root-forum.cern.ch/t/how-to-contribute-to-root-code/46691 "2021-09-20T19:19:49Z")

</div>

Hi!, recently I have started learning about root and have also clone the official root repository after forking it in github to solve one good first issue. But when I tried to open it in Visual Studio Code I have install…

---

## [RDataFrame in python loop](https://root-forum.cern.ch/t/rdataframe-in-python-loop/46905)

<div class="topic-metadata">

**Author:** [@ROOTer1](https://root-forum.cern.ch/u/ROOTer1)\
**Replies:** 3\
**Last updated:** [September 20, 2021, 3:48pm UTC](https://root-forum.cern.ch/t/rdataframe-in-python-loop/46905 "2021-09-20T15:48:27Z")

</div>

Dear, I heard that RDataFrame is much efficient than classic loops, but I’m not sure how to use it for a simple code as in python: chain = ROOT.TChain() chain.Add(Dataset) h = ROOT.TH1D(“h”,"", n, x\_min, x\_max) lvmu1=R…

---

## [Space error message](https://root-forum.cern.ch/t/space-error-message/46892)

<div class="topic-metadata">

**Author:** [@HMahdy](https://root-forum.cern.ch/u/HMahdy)\
**Replies:** 2\
**Last updated:** [September 19, 2021, 7:07pm UTC](https://root-forum.cern.ch/t/space-error-message/46892 "2021-09-19T19:07:31Z")

</div>

I’m still new to root and was trying to run this simple code but got into some error message. Root doesn’t let attach the error message but it includes some links. Any ideas please ? // Exapmle of graph with SetPoin…

---

## [Root installation problems](https://root-forum.cern.ch/t/root-installation-problems/46651)

<div class="topic-metadata">

**Author:** [@HMahdy](https://root-forum.cern.ch/u/HMahdy)\
**Replies:** 2\
**Last updated:** [September 19, 2021, 5:45pm UTC](https://root-forum.cern.ch/t/root-installation-problems/46651 "2021-09-19T17:45:39Z")

</div>

I’m having hard time installing root on Linux/Ubuntu. I’m either doing something wrong or missing something. Can someone give me some ideas ? ROOT Version: 6.24.02 Platform: Linux/Ubuntu Compiler: CMAKE

---

## [Problem with source the code](https://root-forum.cern.ch/t/problem-with-source-the-code/46866)

<div class="topic-metadata">

**Author:** [@2545jhhh](https://root-forum.cern.ch/u/2545jhhh)\
**Replies:** 3\
**Last updated:** [September 16, 2021, 1:31pm UTC](https://root-forum.cern.ch/t/problem-with-source-the-code/46866 "2021-09-16T13:31:15Z")

</div>

Dear all, I’ve secondary account and I cannot source the code. It gives a lot of errors such as " bash: setenv: command not found " Also, when I enter the command " setenv HOME /afs/cern.ch/user/m/myprofile ", Agai…

---

## [Number of Processed events](https://root-forum.cern.ch/t/number-of-processed-events/46783)

<div class="topic-metadata">

**Author:** [@beg1nner](https://root-forum.cern.ch/u/beg1nner)\
**Replies:** 11\
**Last updated:** [September 16, 2021, 9:25am UTC](https://root-forum.cern.ch/t/number-of-processed-events/46783 "2021-09-16T09:25:36Z")

</div>

Hello, is there an easy way to check the number of processed events from terminal for a branch taken from already existing ntuple (.root file) ? For example, if I have a branch named “Muon\_pt” and I would like to know h…

---

## [Segmentation Fault When Using FunctionMinimum from Minuit2](https://root-forum.cern.ch/t/segmentation-fault-when-using-functionminimum-from-minuit2/34578)

<div class="topic-metadata">

**Author:** [@christianwos83](https://root-forum.cern.ch/u/christianwos83)\
**Replies:** 6\
**Last updated:** [September 15, 2021, 1:14am UTC](https://root-forum.cern.ch/t/segmentation-fault-when-using-functionminimum-from-minuit2/34578 "2021-09-15T01:14:07Z")

</div>

Hi there, New to Minuit2. I am posting all of my code here only because I am not sure what’s relevant to my question and what’s not, and I don’t want to leave out some important info. Basically, what I am trying to do i…

---

## [Member function error of two different classes](https://root-forum.cern.ch/t/member-function-error-of-two-different-classes/46821)

<div class="topic-metadata">

**Author:** [@hrideychetri](https://root-forum.cern.ch/u/hrideychetri)\
**Replies:** 1\
**Last updated:** [September 14, 2021, 6:48am UTC](https://root-forum.cern.ch/t/member-function-error-of-two-different-classes/46821 "2021-09-14T06:48:42Z")

</div>

I have access to my data using RDataframe and stored it in a four-momentum vector of class TLoentzvector, Now I wanted to know the pdg code for each event, but I have the function GetPdgCode() in TParticle class. Can you…

---

## [Applying label for Categorical variable](https://root-forum.cern.ch/t/applying-label-for-categorical-variable/46488)

<div class="topic-metadata">

**Author:** [@ilomidze](https://root-forum.cern.ch/u/ilomidze)\
**Replies:** 9\
**Last updated:** [September 14, 2021, 6:07am UTC](https://root-forum.cern.ch/t/applying-label-for-categorical-variable/46488 "2021-09-14T06:07:18Z")

</div>

\_ROOT Version: 6.22/08 \_Platform: macosx64 Compiler: Not Provided I have experiment names with corresponding experimental numerical result. I want to have experiment names on X axis and their values on Y. I can plo…

---

## [Memory issues with vector of pointers to TH1F](https://root-forum.cern.ch/t/memory-issues-with-vector-of-pointers-to-th1f/46787)

<div class="topic-metadata">

**Author:** [@Yao\_Yao](https://root-forum.cern.ch/u/Yao_Yao)\
**Replies:** 2\
**Last updated:** [September 13, 2021, 9:22am UTC](https://root-forum.cern.ch/t/memory-issues-with-vector-of-pointers-to-th1f/46787 "2021-09-13T09:22:01Z")

</div>

Dear experts, I run into an issue with a vector of pointers to TH1F. I create a couple of TH1F first and put them into a vector, and everything is fine. However, after I use a vector of pointers vector\<TH1F\*\>, for which…

---

## [Fill a histogram with different colors for different fit functions](https://root-forum.cern.ch/t/fill-a-histogram-with-different-colors-for-different-fit-functions/46802)

<div class="topic-metadata">

**Author:** [@paulan](https://root-forum.cern.ch/u/paulan)\
**Replies:** 1\
**Last updated:** [September 13, 2021, 4:00am UTC](https://root-forum.cern.ch/t/fill-a-histogram-with-different-colors-for-different-fit-functions/46802 "2021-09-13T04:00:27Z")

</div>

Hi, I have a histogram on which I have fitted two functions (one for bkg, the other is bkg+signal) as attached. I would like to fill the histogram with a different colour under the background fit function (the red line h…

---

## [Fitting with discrete distribution](https://root-forum.cern.ch/t/fitting-with-discrete-distribution/46743)

<div class="topic-metadata">

**Author:** [@davide.rigamonti](https://root-forum.cern.ch/u/davide.rigamonti)\
**Replies:** 2\
**Last updated:** [September 9, 2021, 1:54pm UTC](https://root-forum.cern.ch/t/fitting-with-discrete-distribution/46743 "2021-09-09T13:54:37Z")

</div>

Hi all, I’m writing to you because I have a problem in fittting a histogram with 2 discrete distributions. I have a histogram (Data: enrergy in x and counts in y) that I would like to fit with two discrete distribution…

---

## [How to select events in a 2D plot to make an ellipse](https://root-forum.cern.ch/t/how-to-select-events-in-a-2d-plot-to-make-an-ellipse/46424)

<div class="topic-metadata">

**Author:** [@Siddharth\_Parashari](https://root-forum.cern.ch/u/Siddharth_Parashari)\
**Replies:** 5\
**Last updated:** [September 9, 2021, 6:35am UTC](https://root-forum.cern.ch/t/how-to-select-events-in-a-2d-plot-to-make-an-ellipse/46424 "2021-09-09T06:35:24Z")

</div>

Hi, I am trying to use an equation to select only specific events to plot an elliptical shape for my data. I have used all sorts of equations for ellipse but the process doesn’t seem to work. The plot in which the event…

---

## [Increase the color intensity in my contour plot](https://root-forum.cern.ch/t/increase-the-color-intensity-in-my-contour-plot/46332)

<div class="topic-metadata">

**Author:** [@fabstr](https://root-forum.cern.ch/u/fabstr)\
**Replies:** 4\
**Last updated:** [September 9, 2021, 5:17am UTC](https://root-forum.cern.ch/t/increase-the-color-intensity-in-my-contour-plot/46332 "2021-09-09T05:17:12Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.22/00 Platform: Ubuntu 20.04.1 LTS (WSL2) Compiler: GNU or GCC Hello, I have created a contour plot of the magnetic field inte…

---

## [Trouble running Tspectrum example](https://root-forum.cern.ch/t/trouble-running-tspectrum-example/46528)

<div class="topic-metadata">

**Author:** [@Whitt](https://root-forum.cern.ch/u/Whitt)\
**Replies:** 4\
**Last updated:** [August 28, 2021, 9:49pm UTC](https://root-forum.cern.ch/t/trouble-running-tspectrum-example/46528 "2021-08-28T21:49:06Z")

</div>

Hi all, I’ve got a good amount of experience with Python and Matlab and am interested in the Gold Deconvolution part of the TSpectrum module. I’ve tried to run Deconvolution\_8C as a macro and got a whole bunch of error…

---

## [Python with ROOT.Math libraries is very slow on MAc](https://root-forum.cern.ch/t/python-with-root-math-libraries-is-very-slow-on-mac/46689)

<div class="topic-metadata">

**Author:** [@valkuba](https://root-forum.cern.ch/u/valkuba)\
**Replies:** 17\
**Last updated:** [September 8, 2021, 7:05am UTC](https://root-forum.cern.ch/t/python-with-root-math-libraries-is-very-slow-on-mac/46689 "2021-09-08T07:05:05Z")

</div>

ROOT Version: 6.24/04 Platform: OSX 20.26.7, Catalina Compiler: precompiled installation I noticed that my python script with ROOT libraries is running much slower on Mac (10.16.7, Catalina) then on RedHat7. I found …

---

## [How to create TGraph2D for correlation between two branches of a TTree](https://root-forum.cern.ch/t/how-to-create-tgraph2d-for-correlation-between-two-branches-of-a-ttree/46672)

<div class="topic-metadata">

**Author:** [@paulan](https://root-forum.cern.ch/u/paulan)\
**Replies:** 2\
**Last updated:** [September 7, 2021, 3:31pm UTC](https://root-forum.cern.ch/t/how-to-create-tgraph2d-for-correlation-between-two-branches-of-a-ttree/46672 "2021-09-07T15:31:35Z")

</div>

Hi, I am new to ROOT! I have a correlation plot of two branches from a TTree which I produced using tree-\>Draw("x:y", cuts applied) but now I would like to obtain a colored plot based on the intensity of points. I unde…

---

## [Running a software from LXPLUS](https://root-forum.cern.ch/t/running-a-software-from-lxplus/46705)

<div class="topic-metadata">

**Author:** [@Asser](https://root-forum.cern.ch/u/Asser)\
**Replies:** 4\
**Last updated:** [September 7, 2021, 11:19am UTC](https://root-forum.cern.ch/t/running-a-software-from-lxplus/46705 "2021-09-07T11:19:01Z")

</div>

I am sorry if this isn’t the place to post. I am currently trying to open a software remotely from CERN LXPLS. However, I am struggling to find where it is located or how to start it. I am trying to open Ansys software s…

---

## [How to submit a contribution for Root updates to documentation](https://root-forum.cern.ch/t/how-to-submit-a-contribution-for-root-updates-to-documentation/46642)

<div class="topic-metadata">

**Author:** [@Edward\_Finkelstein](https://root-forum.cern.ch/u/Edward_Finkelstein)\
**Replies:** 7\
**Last updated:** [September 7, 2021, 7:24am UTC](https://root-forum.cern.ch/t/how-to-submit-a-contribution-for-root-updates-to-documentation/46642 "2021-09-07T07:24:42Z")

</div>

Hello, I am trying to figure out how to contribute to this issue: Updates to RooFit tutorials necessary before the next release · Issue #8808 · root-project/root · GitHub, but I am completely new to Github and have no i…

---

## [Definition of RDataframe.Histo1D with a fixed number of bins](https://root-forum.cern.ch/t/definition-of-rdataframe-histo1d-with-a-fixed-number-of-bins/46678)

<div class="topic-metadata">

**Author:** [@Michele99](https://root-forum.cern.ch/u/Michele99)\
**Replies:** 3\
**Last updated:** [September 6, 2021, 12:45pm UTC](https://root-forum.cern.ch/t/definition-of-rdataframe-histo1d-with-a-fixed-number-of-bins/46678 "2021-09-06T12:45:40Z")

</div>

Hi to everybody, I’d like to define an histogram Histo1D starting from a Rdataframe, but i also would like to specify the number of bins during the creation of this histogram. I tried to use the definition of Histo1D wit…

---

## [Reading Multiple root files and plotting one histogram](https://root-forum.cern.ch/t/reading-multiple-root-files-and-plotting-one-histogram/46599)

<div class="topic-metadata">

**Author:** [@Rin\_Toshaka](https://root-forum.cern.ch/u/Rin_Toshaka)\
**Replies:** 7\
**Last updated:** [September 1, 2021, 3:22pm UTC](https://root-forum.cern.ch/t/reading-multiple-root-files-and-plotting-one-histogram/46599 "2021-09-01T15:22:11Z")

</div>

HOW to read multiple root files and overlay a particular histogram from all these files into one histogram. I m confused pls help…

---

## [Creating multiple graphs with TMultigraph for N Graphs](https://root-forum.cern.ch/t/creating-multiple-graphs-with-tmultigraph-for-n-graphs/46647)

<div class="topic-metadata">

**Author:** [@JChacon](https://root-forum.cern.ch/u/JChacon)\
**Replies:** 1\
**Last updated:** [September 3, 2021, 6:06am UTC](https://root-forum.cern.ch/t/creating-multiple-graphs-with-tmultigraph-for-n-graphs/46647 "2021-09-03T06:06:40Z")

</div>

Hello, kind of new user here so apologies if question is naive. I’m Using root for creating a graph of random walks, so far a simple random walk works and I can create a graph for the code, my question comes to how do I…

---

## [How to avoid bad root files while using hadd](https://root-forum.cern.ch/t/how-to-avoid-bad-root-files-while-using-hadd/46638)

<div class="topic-metadata">

**Author:** [@Vaibhavi\_Bhalchandra](https://root-forum.cern.ch/u/Vaibhavi_Bhalchandra)\
**Replies:** 1\
**Last updated:** [September 2, 2021, 3:17pm UTC](https://root-forum.cern.ch/t/how-to-avoid-bad-root-files-while-using-hadd/46638 "2021-09-02T15:17:58Z")

</div>

Hey, could anyone let me know if there is a way to avoid bad files while using hadd function to merge several hundred root files? hadd just stops when it encounters a bad/failed job.

---

## [Can't create output root file](https://root-forum.cern.ch/t/cant-create-output-root-file/46502)

<div class="topic-metadata">

**Author:** [@Aya\_Beshr](https://root-forum.cern.ch/u/Aya_Beshr)\
**Replies:** 10\
**Last updated:** [September 2, 2021, 12:30pm UTC](https://root-forum.cern.ch/t/cant-create-output-root-file/46502 "2021-09-02T12:30:54Z")

</div>

Hi, I have made a simple macro. I am trying to save the histograms to output root file, but the issue the root file is not being created either by using the method TFile \*f = new TFile("output.root", "option"); where op…

[Previous page](https://root-forum.cern.ch/c/newbie/26.md?page=64)

[Next page](https://root-forum.cern.ch/c/newbie/26.md?page=66)
