# Newbie

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

[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:** 91

---

## [TMVA Application script gives same error regardless of input](https://root-forum.cern.ch/t/tmva-application-script-gives-same-error-regardless-of-input/40857)

<div class="topic-metadata">

**Author:** [@uwagura](https://root-forum.cern.ch/u/uwagura)\
**Replies:** 2\
**Last updated:** [August 6, 2020, 12:20pm UTC](https://root-forum.cern.ch/t/tmva-application-script-gives-same-error-regardless-of-input/40857 "2020-08-06T12:20:50Z")

</div>

Hello, I’m trying to apply the results of TMVA training script, but I getting the same error over and over again: : 16-th variable of the event is NaN → return MVA value -999, …

---

## [TMultiGraph Y+ Draw Option](https://root-forum.cern.ch/t/tmultigraph-y-draw-option/38714)

<div class="topic-metadata">

**Author:** [@Nikolajal](https://root-forum.cern.ch/u/Nikolajal)\
**Replies:** 8\
**Last updated:** [August 6, 2020, 7:08am UTC](https://root-forum.cern.ch/t/tmultigraph-y-draw-option/38714 "2020-08-06T07:08:25Z")

</div>

Hi eveyone, I’m trying to implement a two axis multigraph following the example: @couet But i find myself lost as to how to make it work for a multigraph. I have essentially changed the two graph into two multigraph bu…

---

## [Increment by variable names in SetBranchAddress](https://root-forum.cern.ch/t/increment-by-variable-names-in-setbranchaddress/40811)

<div class="topic-metadata">

**Author:** [@lfisher5](https://root-forum.cern.ch/u/lfisher5)\
**Replies:** 1\
**Last updated:** [August 5, 2020, 2:21pm UTC](https://root-forum.cern.ch/t/increment-by-variable-names-in-setbranchaddress/40811 "2020-08-05T14:21:41Z")

</div>

Hi there! This may be a very simple answer, I am not sure. But, I was wondering for a variable number of branches in root that are named incrementally ( Detector\_P0, Detector\_P2, etc.) how one would use the SetBranchAddr…

---

## [Low disk space on filesystem.root](https://root-forum.cern.ch/t/low-disk-space-on-filesystem-root/40631)

<div class="topic-metadata">

**Author:** [@Afzaal786](https://root-forum.cern.ch/u/Afzaal786)\
**Replies:** 4\
**Last updated:** [August 5, 2020, 7:12am UTC](https://root-forum.cern.ch/t/low-disk-space-on-filesystem-root/40631 "2020-08-05T07:12:08Z")

</div>

Hello, Dear root users! I installed Root and Geant4 in Ubuntu but each type when i turned on my laptop following screen appeared. I tried to delete some files in filesystem.root but unable to delete them. Kindly suggest…

---

## [Count points inside a TGraph curve](https://root-forum.cern.ch/t/count-points-inside-a-tgraph-curve/40814)

<div class="topic-metadata">

**Author:** [@david90](https://root-forum.cern.ch/u/david90)\
**Replies:** 2\
**Last updated:** [August 4, 2020, 7:54pm UTC](https://root-forum.cern.ch/t/count-points-inside-a-tgraph-curve/40814 "2020-08-04T19:54:06Z")

</div>

Hello everyone, I have a contour level curve in a TGraph object, also I have 100 points which coordinates are stored in x and y arrays, is there a way to count how many points are within this contour and how many are o…

---

## [Leaf to Histogram](https://root-forum.cern.ch/t/leaf-to-histogram/40506)

<div class="topic-metadata">

**Author:** [@kykwon](https://root-forum.cern.ch/u/kykwon)\
**Replies:** 3\
**Last updated:** [August 4, 2020, 12:42pm UTC](https://root-forum.cern.ch/t/leaf-to-histogram/40506 "2020-08-04T12:42:54Z")

</div>

Nice to meet you I want to know, if I make the histogram from the leaf of tree as T-\>Draw(Form(“leaf\>\>histo”),Form(“some conditions”)); Can I get do ‘Integral()’ or ‘GetBinContent()’ from this histogram in the code? e…

---

## [Hey so I'm very new to coding can you help me make this work?](https://root-forum.cern.ch/t/hey-so-im-very-new-to-coding-can-you-help-me-make-this-work/40816)

<div class="topic-metadata">

**Author:** [@CrackerJack](https://root-forum.cern.ch/u/CrackerJack)\
**Replies:** 1\
**Last updated:** [August 4, 2020, 10:23am UTC](https://root-forum.cern.ch/t/hey-so-im-very-new-to-coding-can-you-help-me-make-this-work/40816 "2020-08-04T10:23:58Z")

</div>

so i make a lot of Virtual machines and i dont own enough usb’s to just keep them laying around so i use diskpart and this would make my life easier just i cant figure it out because diskpart opens the second window i d…

---

## [TGraph2D to TH2 segmentation violation](https://root-forum.cern.ch/t/tgraph2d-to-th2-segmentation-violation/40535)

<div class="topic-metadata">

**Author:** [@Nyx](https://root-forum.cern.ch/u/Nyx)\
**Replies:** 5\
**Last updated:** [August 4, 2020, 7:05am UTC](https://root-forum.cern.ch/t/tgraph2d-to-th2-segmentation-violation/40535 "2020-08-04T07:05:27Z")

</div>

I have some root files with TGraph2D objects in it that I need to use for interpolation. I read in other thread that using Interpolation from TH2 is faster, so I tried to Get the objects as a TH2 but I get errors when us…

---

## [Extracting variables from TLorentzVector](https://root-forum.cern.ch/t/extracting-variables-from-tlorentzvector/40805)

<div class="topic-metadata">

**Author:** [@Liam\_hayden](https://root-forum.cern.ch/u/Liam_hayden)\
**Replies:** 3\
**Last updated:** [August 3, 2020, 4:22pm UTC](https://root-forum.cern.ch/t/extracting-variables-from-tlorentzvector/40805 "2020-08-03T16:22:28Z")

</div>

Can someone tell me how to extract the variables px, py, pz, E from Tlorentzvector and assign it into newly declared variables which are of the double datatype

---

## [ROOT Tree in Delphes](https://root-forum.cern.ch/t/root-tree-in-delphes/40791)

<div class="topic-metadata">

**Author:** [@Liam\_hayden](https://root-forum.cern.ch/u/Liam_hayden)\
**Replies:** 3\
**Last updated:** [August 3, 2020, 11:32am UTC](https://root-forum.cern.ch/t/root-tree-in-delphes/40791 "2020-08-03T11:32:47Z")

</div>

Hi, I am posting this doubt here since I did not receive a reply from DELPHES even after 2 months. How do I extract px, py, pz and E of the jets produced in the root tree?

---

## [Convolution of TGraph with TF1](https://root-forum.cern.ch/t/convolution-of-tgraph-with-tf1/40763)

<div class="topic-metadata">

**Author:** [@abhik](https://root-forum.cern.ch/u/abhik)\
**Replies:** 4\
**Last updated:** [August 2, 2020, 6:10pm UTC](https://root-forum.cern.ch/t/convolution-of-tgraph-with-tf1/40763 "2020-08-02T18:10:47Z")

</div>

I have a Current (I) vs Time (t) graph which I want to convolute with a function of the form y = te^(-t/10). Is there a way to do this in ROOT?

---

## [TMath::IsInside() always returns false](https://root-forum.cern.ch/t/tmath-isinside-always-returns-false/40779)

<div class="topic-metadata">

**Author:** [@Juan\_Sanchez](https://root-forum.cern.ch/u/Juan_Sanchez)\
**Replies:** 4\
**Last updated:** [August 1, 2020, 10:34pm UTC](https://root-forum.cern.ch/t/tmath-isinside-always-returns-false/40779 "2020-08-01T22:34:13Z")

</div>

Hello everyone, I’ve been trying to use the TMath::IsInside(Float\_t px, Float\_t py, Int\_t np, Float\_t\* x, Float\_t\* y) function but its always returning false for me. Here is a link that references the definition of the …

---

## [Merge two histograms in one](https://root-forum.cern.ch/t/merge-two-histograms-in-one/40767)

<div class="topic-metadata">

**Author:** [@Afzaal786](https://root-forum.cern.ch/u/Afzaal786)\
**Replies:** 1\
**Last updated:** [July 31, 2020, 6:15am UTC](https://root-forum.cern.ch/t/merge-two-histograms-in-one/40767 "2020-07-31T06:15:10Z")

</div>

Hello, dear ROOT users hope you are doing great! I wanna merge Compton photons and electrons to reproduce that plot in paper but don’t know how to do it. I am using ROOT 6.18.04, Geant4.10.06 in Ubuntu. Any kind of help…

---

## [Build Problem with XROOTD on ROOT v6-22-00](https://root-forum.cern.ch/t/build-problem-with-xrootd-on-root-v6-22-00/40255)

<div class="topic-metadata">

**Author:** [@marvin\_littlewood](https://root-forum.cern.ch/u/marvin_littlewood)\
**Replies:** 13\
**Last updated:** [July 30, 2020, 8:27am UTC](https://root-forum.cern.ch/t/build-problem-with-xrootd-on-root-v6-22-00/40255 "2020-07-30T08:27:48Z")

</div>

ROOT Version: v6-22-00 Platform: Linux xubuntu 5.4.0-40-generic #44-Ubuntu SMP Tue Jun 23 00:01:04 UTC 2020 x86\_64 x86\_64 x86\_64 GNU/Linux Compiler: gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0 Hi! Having successfully built …

---

## [Adding ploynomial to TEfficiency](https://root-forum.cern.ch/t/adding-ploynomial-to-tefficiency/40700)

<div class="topic-metadata">

**Author:** [@Prya13](https://root-forum.cern.ch/u/Prya13)\
**Replies:** 6\
**Last updated:** [July 30, 2020, 7:51am UTC](https://root-forum.cern.ch/t/adding-ploynomial-to-tefficiency/40700 "2020-07-30T07:51:09Z")

</div>

Dear All, I have a series of plot where I fitted erf= 0.5\*\[0\]\*( 1 - TMath::Erf( (\[1\] - x)/\[2\] ) ) using TEfficiency class. I want to add zero degree poly(pol0), use add function to 1-D but got error “Can’t call add in …

---

## [MergeFiles with hadd](https://root-forum.cern.ch/t/mergefiles-with-hadd/40733)

<div class="topic-metadata">

**Author:** [@M\_Arif\_Efendi](https://root-forum.cern.ch/u/M_Arif_Efendi)\
**Replies:** 1\
**Last updated:** [July 30, 2020, 7:21am UTC](https://root-forum.cern.ch/t/mergefiles-with-hadd/40733 "2020-07-30T07:21:54Z")

</div>

Hello everyone, I need a help to merge my root file I use hadd but got an error: Error in \<TInterpreter::InspectMembers\>: TClass and cling disagree on the size of the class TBaseClass, respectively 128 152 Error in \<T…

---

## [Draw fit function with its errors](https://root-forum.cern.ch/t/draw-fit-function-with-its-errors/40686)

<div class="topic-metadata">

**Author:** [@hammiu](https://root-forum.cern.ch/u/hammiu)\
**Replies:** 11\
**Last updated:** [July 30, 2020, 5:39am UTC](https://root-forum.cern.ch/t/draw-fit-function-with-its-errors/40686 "2020-07-30T05:39:57Z")

</div>

I have a graph with its errors. I create a fit function for that graph. And I want to draw fit function with its errors. Could you help me, please? #include \<TGraphErrors.h\> #include \<TCanvas.h\> #include \<TF1.h\> #includ…

---

## [Histogram empty](https://root-forum.cern.ch/t/histogram-empty/40674)

<div class="topic-metadata">

**Author:** [@David\_Fernandes](https://root-forum.cern.ch/u/David_Fernandes)\
**Replies:** 10\
**Last updated:** [July 29, 2020, 7:18pm UTC](https://root-forum.cern.ch/t/histogram-empty/40674 "2020-07-29T19:18:23Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.18.00 Platform: UBUNTU 18.04.4 Compiler: Not Provided Good afternoon. I’m run a MakeClass and my histogram was empty I think t…

---

## [Hadd to an already existing file](https://root-forum.cern.ch/t/hadd-to-an-already-existing-file/40716)

<div class="topic-metadata">

**Author:** [@gabriele](https://root-forum.cern.ch/u/gabriele)\
**Replies:** 6\
**Last updated:** [July 29, 2020, 2:30pm UTC](https://root-forum.cern.ch/t/hadd-to-an-already-existing-file/40716 "2020-07-29T14:30:59Z")

</div>

Hi all, I was wondering if there’s a way to use hadd on a file already existing. My idea is to launch a scrip with a for loop inside and for every step the loop runs some code that produces a .root file. I would like to…

---

## [Fit Parameters from an array of Histogram on text file](https://root-forum.cern.ch/t/fit-parameters-from-an-array-of-histogram-on-text-file/40673)

<div class="topic-metadata">

**Author:** [@Elisabetta\_Di\_Franco](https://root-forum.cern.ch/u/Elisabetta_Di_Franco)\
**Replies:** 4\
**Last updated:** [July 29, 2020, 2:00pm UTC](https://root-forum.cern.ch/t/fit-parameters-from-an-array-of-histogram-on-text-file/40673 "2020-07-29T14:00:07Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.18 Platform: Ubuntu Compiler: Not Provided Good Afternoon, I need some help with Fit Parameters. I have an array of histogram …

---

## [Set parameters or fix parameters in fitting function](https://root-forum.cern.ch/t/set-parameters-or-fix-parameters-in-fitting-function/40672)

<div class="topic-metadata">

**Author:** [@Ricardo\_Lambo](https://root-forum.cern.ch/u/Ricardo_Lambo)\
**Replies:** 7\
**Last updated:** [July 29, 2020, 8:41am UTC](https://root-forum.cern.ch/t/set-parameters-or-fix-parameters-in-fitting-function/40672 "2020-07-29T08:41:32Z")

</div>

Dear Colleagues, Attached is a functional program that performs a fit as I would like. I nonetheless have a question about using ‘SetParameter’ and ‘FixParameter’. If I use ‘SetParameters’ to initialize my parameters in…

---

## [Putting an integer variable in the x-axis label of a 1D histogram](https://root-forum.cern.ch/t/putting-an-integer-variable-in-the-x-axis-label-of-a-1d-histogram/40705)

<div class="topic-metadata">

**Author:** [@hep\_1](https://root-forum.cern.ch/u/hep_1)\
**Replies:** 2\
**Last updated:** [July 29, 2020, 8:26am UTC](https://root-forum.cern.ch/t/putting-an-integer-variable-in-the-x-axis-label-of-a-1d-histogram/40705 "2020-07-29T08:26:14Z")

</div>

So I have a 1D histogram defined like this: TH1D\* h = new TH1D(“h”,“h;pT \[GeV\];number of events/bin width”,5,0,10) where the bin width is just here as a placeholder for a double type number that I want to replace wit…

---

## [Error while installing root](https://root-forum.cern.ch/t/error-while-installing-root/40702)

<div class="topic-metadata">

**Author:** [@Rick\_Andy](https://root-forum.cern.ch/u/Rick_Andy)\
**Replies:** 1\
**Last updated:** [July 29, 2020, 7:04am UTC](https://root-forum.cern.ch/t/error-while-installing-root/40702 "2020-07-29T07:04:55Z")

</div>

Dear root experts, I am trying to install the root version 6.22.00 and getting the following error: ~/root\_build$ cmake --build . -- -j4 make: \*\*\* No targets specified and no makefile found. Stop. Please help me how t…

---

## [RDataFrame: upload external variables to the Define](https://root-forum.cern.ch/t/rdataframe-upload-external-variables-to-the-define/40616)

<div class="topic-metadata">

**Author:** [@watmann](https://root-forum.cern.ch/u/watmann)\
**Replies:** 3\
**Last updated:** [July 28, 2020, 10:24am UTC](https://root-forum.cern.ch/t/rdataframe-upload-external-variables-to-the-define/40616 "2020-07-28T10:24:45Z")

</div>

Dear experts, I am trying to upload some variables from the python code to the Define. I found this thread: here and tried to reproduce it without any success. import ROOT def weight(rf): x = 0 y = 1 ROO…

---

## [Register Module Error!](https://root-forum.cern.ch/t/register-module-error/40623)

<div class="topic-metadata">

**Author:** [@waqas](https://root-forum.cern.ch/u/waqas)\
**Replies:** 2\
**Last updated:** [July 27, 2020, 7:57pm UTC](https://root-forum.cern.ch/t/register-module-error/40623 "2020-07-27T19:57:38Z")

</div>

For the command: root \[1\] gSystem-\>Load(“libDelphes”); Following error appears Error in TCling::RegisterModule: cannot find dictionary module ClassesDict\_rdict.pcm Error in TCling::RegisterModule: cannot find diction…

---

## [Slicing a TH2 in Y axis](https://root-forum.cern.ch/t/slicing-a-th2-in-y-axis/40598)

<div class="topic-metadata">

**Author:** [@Newbie](https://root-forum.cern.ch/u/Newbie)\
**Replies:** 4\
**Last updated:** [July 27, 2020, 4:02pm UTC](https://root-forum.cern.ch/t/slicing-a-th2-in-y-axis/40598 "2020-07-27T16:02:30Z")

</div>

Dear, I have a TH2D (X vs. Y), and I want to get X TH1D’s, in specific ranges of Y, so I do the following hX\_i\_j = hXY-\>ProjectionX(“hX\_i\_j”, hXY-\>GetYaxis()-\>FindBin(i), hXY-\>GetYaxis()-\>FindBin(j)) but this is givin…

---

## [How to set Size of Title?](https://root-forum.cern.ch/t/how-to-set-size-of-title/40644)

<div class="topic-metadata">

**Author:** [@hammiu](https://root-forum.cern.ch/u/hammiu)\
**Replies:** 4\
**Last updated:** [July 27, 2020, 3:15pm UTC](https://root-forum.cern.ch/t/how-to-set-size-of-title/40644 "2020-07-27T15:15:17Z")

</div>

g-\>GetYaxis()-\>SetRangeUser(-0.01, 0.1); // set range g-\>SetTitle("Comparison of efficiency at different distances"); g-\>GetXaxis()-\>SetTitle("distance d \[cm\]"); g-\>GetYaxis()-\>SetTitle("efficiency #…

---

## [Fill area of Graph](https://root-forum.cern.ch/t/fill-area-of-graph/40660)

<div class="topic-metadata">

**Author:** [@hammiu](https://root-forum.cern.ch/u/hammiu)\
**Replies:** 2\
**Last updated:** [July 27, 2020, 2:53pm UTC](https://root-forum.cern.ch/t/fill-area-of-graph/40660 "2020-07-27T14:53:46Z")

</div>

I have some graphs. One graph of them has fill area. I want to that fill area behind the points. What I need to do?

---

## [Want to create a 2D histogram from two different branches in TTree](https://root-forum.cern.ch/t/want-to-create-a-2d-histogram-from-two-different-branches-in-ttree/40629)

<div class="topic-metadata">

**Author:** [@lfisher5](https://root-forum.cern.ch/u/lfisher5)\
**Replies:** 1\
**Last updated:** [July 27, 2020, 9:20am UTC](https://root-forum.cern.ch/t/want-to-create-a-2d-histogram-from-two-different-branches-in-ttree/40629 "2020-07-27T09:20:51Z")

</div>

Hi, new to ROOT! I am trying to create a 2D histogram using data from two different branches. We are getting a 2D histogram, but we aren’t sure if it is filling correctly, because it does not look the same as when we mad…

---

## [Changing my x axis to radians](https://root-forum.cern.ch/t/changing-my-x-axis-to-radians/40638)

<div class="topic-metadata">

**Author:** [@IP25](https://root-forum.cern.ch/u/IP25)\
**Replies:** 3\
**Last updated:** [July 27, 2020, 9:11am UTC](https://root-forum.cern.ch/t/changing-my-x-axis-to-radians/40638 "2020-07-27T09:11:12Z")

</div>

I am trying to plot the direction of particles in a th1d. How can I change the X axis to be from -pi to pi? ROOT Version: Platform: Jupyter Compiler: Jupyter -6.18

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

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