# Newbie

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

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

---

## [Minimization for blastwave function returning nan results](https://root-forum.cern.ch/t/minimization-for-blastwave-function-returning-nan-results/40439)

<div class="topic-metadata">

**Author:** [@mike.z](https://root-forum.cern.ch/u/mike.z)\
**Replies:** 1\
**Last updated:** [July 15, 2020, 9:08am UTC](https://root-forum.cern.ch/t/minimization-for-blastwave-function-returning-nan-results/40439 "2020-07-15T09:08:00Z")

</div>

Hello all, I am a grad student working on reproducing some plots using existing data. I am very new to ROOT/C++ and have very little background in coding, so this is all a learning experience for me. The macro I’ve buil…

---

## [The type of TTree parameter](https://root-forum.cern.ch/t/the-type-of-ttree-parameter/40414)

<div class="topic-metadata">

**Author:** [@Fateme](https://root-forum.cern.ch/u/Fateme)\
**Replies:** 16\
**Last updated:** [July 15, 2020, 8:46am UTC](https://root-forum.cern.ch/t/the-type-of-ttree-parameter/40414 "2020-07-15T08:46:11Z")

</div>

Hi guys, I have created a TTree to write some double number(their name is Fdata) in it and then read them. when I define Fdata as integer then the program print the integer part correctly, but if I define it as double pa…

---

## [How to write some static data (that does not change) into a Ttree?](https://root-forum.cern.ch/t/how-to-write-some-static-data-that-does-not-change-into-a-ttree/40377)

<div class="topic-metadata">

**Author:** [@Gramotey](https://root-forum.cern.ch/u/Gramotey)\
**Replies:** 6\
**Last updated:** [July 14, 2020, 1:16am UTC](https://root-forum.cern.ch/t/how-to-write-some-static-data-that-does-not-change-into-a-ttree/40377 "2020-07-14T01:16:28Z")

</div>

Dear All, I did a quick search and did not find an example. I would like to write some data - basically, metadata such as string of comments, array of calibration constants, and some constants that define run configura…

---

## [How to tell the number of branches in a root file?](https://root-forum.cern.ch/t/how-to-tell-the-number-of-branches-in-a-root-file/40106)

<div class="topic-metadata">

**Author:** [@Bassam](https://root-forum.cern.ch/u/Bassam)\
**Replies:** 10\
**Last updated:** [July 13, 2020, 9:39pm UTC](https://root-forum.cern.ch/t/how-to-tell-the-number-of-branches-in-a-root-file/40106 "2020-07-13T21:39:25Z")

</div>

Hello, I am new here and new to using ROOT. Currently, I am working on processing a ROOT tree, but I am having some problems understanding the structure of the Tree. The ROOT file I am using has one tree in it, and it …

---

## [Seg Fault using TCutG IntegralHist() method](https://root-forum.cern.ch/t/seg-fault-using-tcutg-integralhist-method/40338)

<div class="topic-metadata">

**Author:** [@Juan\_Sanchez](https://root-forum.cern.ch/u/Juan_Sanchez)\
**Replies:** 19\
**Last updated:** [July 13, 2020, 8:22pm UTC](https://root-forum.cern.ch/t/seg-fault-using-tcutg-integralhist-method/40338 "2020-07-13T20:22:40Z")

</div>

Hello Everyone, I tried using the IntegralHist() method of the TCutG class but I get a SegFault error on line 105 of 2Dhist.cpp. It’s basically SegFaulting when I use IntegralHist() and pass in the arguments of a TH2F o…

---

## [Reduced chi square test for 2 histogram compared to graph result](https://root-forum.cern.ch/t/reduced-chi-square-test-for-2-histogram-compared-to-graph-result/40257)

<div class="topic-metadata">

**Author:** [@NewRootUser](https://root-forum.cern.ch/u/NewRootUser)\
**Replies:** 10\
**Last updated:** [July 13, 2020, 6:02pm UTC](https://root-forum.cern.ch/t/reduced-chi-square-test-for-2-histogram-compared-to-graph-result/40257 "2020-07-13T18:02:50Z")

</div>

I want to perform a reduced chi-square test for 4 degrees of freedom system for two histograms compared to graph result. I have no idea regarding this even tried to look roofit and other posted questions. The minimal cod…

---

## [How to get the area of peaks in histogram using TSpectrum](https://root-forum.cern.ch/t/how-to-get-the-area-of-peaks-in-histogram-using-tspectrum/40413)

<div class="topic-metadata">

**Author:** [@Rick\_Andy](https://root-forum.cern.ch/u/Rick_Andy)\
**Replies:** 3\
**Last updated:** [July 13, 2020, 3:13pm UTC](https://root-forum.cern.ch/t/how-to-get-the-area-of-peaks-in-histogram-using-tspectrum/40413 "2020-07-13T15:13:26Z")

</div>

Hi All, I am a newbie on root. I am trying to find the area of the peaks in the histogram (energy-spectrum). I Know how to calculate using the function TF1 where I have to set initial parameters and write the user-defi…

---

## [Draw command in histogram](https://root-forum.cern.ch/t/draw-command-in-histogram/40379)

<div class="topic-metadata">

**Author:** [@mohebtash](https://root-forum.cern.ch/u/mohebtash)\
**Replies:** 16\
**Last updated:** [July 13, 2020, 2:30pm UTC](https://root-forum.cern.ch/t/draw-command-in-histogram/40379 "2020-07-13T14:30:26Z")

</div>

Hello friends, When I use Draw command I have a canvas without any histogram, but when I use DrawNormalized I have a histogram. What is the problem? Thanks Please read tips for efficient and successful posting and pos…

---

## [How to run .py scripts in linux](https://root-forum.cern.ch/t/how-to-run-py-scripts-in-linux/40409)

<div class="topic-metadata">

**Author:** [@JTasseva](https://root-forum.cern.ch/u/JTasseva)\
**Replies:** 2\
**Last updated:** [July 13, 2020, 8:54am UTC](https://root-forum.cern.ch/t/how-to-run-py-scripts-in-linux/40409 "2020-07-13T08:54:25Z")

</div>

Hello, I’m facing problems with running and opening a .py script in Linux. I am new to Root, but as well to linux, so it’s a bit confusing. Does root/python have something like a command window as does e.g. Matlab? I se…

---

## [Help in installing GENIE with ROOT](https://root-forum.cern.ch/t/help-in-installing-genie-with-root/40408)

<div class="topic-metadata">

**Author:** [@akmalfer](https://root-forum.cern.ch/u/akmalfer)\
**Replies:** 2\
**Last updated:** [July 13, 2020, 8:46am UTC](https://root-forum.cern.ch/t/help-in-installing-genie-with-root/40408 "2020-07-13T08:46:17Z")

</div>

Hi, I am trying to install GENIE and ROOT as its prerequisites. I was able to install GENIE and specify ROOT library and bin, however when I try to run gevgen I got this error: Error in TFile::TFile: file home/geniemc…

---

## [Macro is not working](https://root-forum.cern.ch/t/macro-is-not-working/40383)

<div class="topic-metadata">

**Author:** [@arorastacy](https://root-forum.cern.ch/u/arorastacy)\
**Replies:** 29\
**Last updated:** [July 13, 2020, 8:20am UTC](https://root-forum.cern.ch/t/macro-is-not-working/40383 "2020-07-13T08:20:59Z")

</div>

Hi All, My macro is not working. Please see below what is required to run it. eff\_6.root (216 Bytes) A.C (1.2 KB) Thanks.

---

## [Overlay a graph in a scatter plot](https://root-forum.cern.ch/t/overlay-a-graph-in-a-scatter-plot/40403)

<div class="topic-metadata">

**Author:** [@sanjeeda](https://root-forum.cern.ch/u/sanjeeda)\
**Replies:** 1\
**Last updated:** [July 13, 2020, 6:33am UTC](https://root-forum.cern.ch/t/overlay-a-graph-in-a-scatter-plot/40403 "2020-07-13T06:33:06Z")

</div>

Dear Experts, I am trying to overlay a file on a scatter plot using a macro and I am trying to save it in a rootfile. The macro is able to drawing the scatter plot and overlay the graph but, it is not writing it to th…

---

## [Execute script directly](https://root-forum.cern.ch/t/execute-script-directly/40384)

<div class="topic-metadata">

**Author:** [@Zhassulan](https://root-forum.cern.ch/u/Zhassulan)\
**Replies:** 4\
**Last updated:** [July 13, 2020, 4:32am UTC](https://root-forum.cern.ch/t/execute-script-directly/40384 "2020-07-13T04:32:56Z")

</div>

Hi, I use ROOT 5.16/00 on Windows. So I want to write a script, that allows me go straight to directory (without opening new TBrowser) where I’ll be able to run two scripts, which I already have: one of them converter .…

---

## [Coupling Constant](https://root-forum.cern.ch/t/coupling-constant/40390)

<div class="topic-metadata">

**Author:** [@mmk](https://root-forum.cern.ch/u/mmk)\
**Replies:** 4\
**Last updated:** [July 13, 2020, 4:30am UTC](https://root-forum.cern.ch/t/coupling-constant/40390 "2020-07-13T04:30:55Z")

</div>

My question isnt directly related to Root, but if any one could solve this it would be a great help, does any one know how to calculate/ measure value of alpha\_s (strong coupling constant)? is there any formula or any t…

---

## [Matrix in CSV to root](https://root-forum.cern.ch/t/matrix-in-csv-to-root/40393)

<div class="topic-metadata">

**Author:** [@phy.vijayraj](https://root-forum.cern.ch/u/phy.vijayraj)\
**Replies:** 7\
**Last updated:** [July 12, 2020, 8:39pm UTC](https://root-forum.cern.ch/t/matrix-in-csv-to-root/40393 "2020-07-12T20:39:15Z")

</div>

Dear Sir/Dr./Prof., I have a data in 10\*10 matrix x,y. I want to plot it in root. I am unable to understand, how?. I tried it by typing matrix by matrix and a tracker but it takes a long time. Is there anyway through wh…

---

## [Convert multiple data files into root files and store it in Tree](https://root-forum.cern.ch/t/convert-multiple-data-files-into-root-files-and-store-it-in-tree/40345)

<div class="topic-metadata">

**Author:** [@robertfroast](https://root-forum.cern.ch/u/robertfroast)\
**Replies:** 3\
**Last updated:** [July 12, 2020, 5:50pm UTC](https://root-forum.cern.ch/t/convert-multiple-data-files-into-root-files-and-store-it-in-tree/40345 "2020-07-12T17:50:46Z")

</div>

I have multiple data files. Now I want to draw histogram from each data file and store them in “.root” extension. And after that storing those root files into a common tree. ROOT Version: Not Provided Platform: Not Pro…

---

## [Issue with TEllipse](https://root-forum.cern.ch/t/issue-with-tellipse/39910)

<div class="topic-metadata">

**Author:** [@CaueEvangelista](https://root-forum.cern.ch/u/CaueEvangelista)\
**Replies:** 4\
**Last updated:** [July 12, 2020, 1:57pm UTC](https://root-forum.cern.ch/t/issue-with-tellipse/39910 "2020-07-12T13:57:11Z")

</div>

ROOT Version: 6.20/04 Platform: Linux Mint Tricia Compiler: g++ 7.5.0 Hi, everyone! This is the first time I’m using the TEllipse class and I’m really confused about one thing. I want to draw a circle around a spec…

---

## [How to submit parallel jobs using TChain](https://root-forum.cern.ch/t/how-to-submit-parallel-jobs-using-tchain/39685)

<div class="topic-metadata">

**Author:** [@Newbie](https://root-forum.cern.ch/u/Newbie)\
**Replies:** 6\
**Last updated:** [July 10, 2020, 9:01pm UTC](https://root-forum.cern.ch/t/how-to-submit-parallel-jobs-using-tchain/39685 "2020-07-10T21:01:38Z")

</div>

Dear, I want to run a script with many MC files in parallel, but having the output all merged. Is there any clean way to do it using TChain? Or do I have to make list of commands to be submitted and later on hadd the o…

---

## [LEGO plot: scientific axis label](https://root-forum.cern.ch/t/lego-plot-scientific-axis-label/40365)

<div class="topic-metadata">

**Author:** [@arilo](https://root-forum.cern.ch/u/arilo)\
**Replies:** 3\
**Last updated:** [July 10, 2020, 10:39pm UTC](https://root-forum.cern.ch/t/lego-plot-scientific-axis-label/40365 "2020-07-10T22:39:33Z")

</div>

Hi colleagues, I generated a 2D LEGO2 plot of two spatial variables (X,Y). What would be the correct axis label for the 3rd dimension? Please see the examples on: Root docs Thank you \_\_ Please read tips for efficie…

---

## [Warning while rebinning TProfile histograms](https://root-forum.cern.ch/t/warning-while-rebinning-tprofile-histograms/40334)

<div class="topic-metadata">

**Author:** [@Sabya](https://root-forum.cern.ch/u/Sabya)\
**Replies:** 3\
**Last updated:** [July 10, 2020, 9:59am UTC](https://root-forum.cern.ch/t/warning-while-rebinning-tprofile-histograms/40334 "2020-07-10T09:59:10Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided Though the errors in my original TProfile histograms are stored via Sum…

---

## [Show () command in root](https://root-forum.cern.ch/t/show-command-in-root/40349)

<div class="topic-metadata">

**Author:** [@mohebtash](https://root-forum.cern.ch/u/mohebtash)\
**Replies:** 1\
**Last updated:** [July 10, 2020, 7:15am UTC](https://root-forum.cern.ch/t/show-command-in-root/40349 "2020-07-10T07:15:37Z")

</div>

Hello friends, I have a TTree file which contains different channels such as semileptonic, full hadronic and dileptonic events and I select semileptonic events, but when I want to do some analysis and execute Show comma…

---

## [How do I produce output distributions for signal and background events from the test sample in TMVA?](https://root-forum.cern.ch/t/how-do-i-produce-output-distributions-for-signal-and-background-events-from-the-test-sample-in-tmva/40160)

<div class="topic-metadata">

**Author:** [@uwagura](https://root-forum.cern.ch/u/uwagura)\
**Replies:** 3\
**Last updated:** [July 10, 2020, 2:14am UTC](https://root-forum.cern.ch/t/how-do-i-produce-output-distributions-for-signal-and-background-events-from-the-test-sample-in-tmva/40160 "2020-07-10T02:14:16Z")

</div>

I’m trying to produce histograms of the distributions of the signal and background events from a TMVA test sample. In other words, I’m trying to produce the histograms in Figure 3 on page 16 of the TMVA user guide. The u…

---

## [How do I read from a TNtuple?](https://root-forum.cern.ch/t/how-do-i-read-from-a-tntuple/40283)

<div class="topic-metadata">

**Author:** [@KAM](https://root-forum.cern.ch/u/KAM)\
**Replies:** 2\
**Last updated:** [July 7, 2020, 8:35am UTC](https://root-forum.cern.ch/t/how-do-i-read-from-a-tntuple/40283 "2020-07-07T08:35:11Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided I have a .root file with a TNtuple, which has only 3 leaves (day, hour…

---

## [This branch does not exist?](https://root-forum.cern.ch/t/this-branch-does-not-exist/40344)

<div class="topic-metadata">

**Author:** [@KAM](https://root-forum.cern.ch/u/KAM)\
**Replies:** 1\
**Last updated:** [July 9, 2020, 8:12pm UTC](https://root-forum.cern.ch/t/this-branch-does-not-exist/40344 "2020-07-09T20:12:56Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided I have a ROOT file with a TNtuple. I need to read off the day, hour, …

---

## [Sub-folders in a tree](https://root-forum.cern.ch/t/sub-folders-in-a-tree/40343)

<div class="topic-metadata">

**Author:** [@Natilus](https://root-forum.cern.ch/u/Natilus)\
**Replies:** 2\
**Last updated:** [July 9, 2020, 8:06pm UTC](https://root-forum.cern.ch/t/sub-folders-in-a-tree/40343 "2020-07-09T20:06:12Z")

</div>

Dear experts, I have a tree TTree \*outputtree = new TTree (“outputtree”, “outputtree”) I would like to make 4 sub-folders (or sub-directories, whatever is called) in an existing tree. Could you please let me know how …

---

## [Issue when compiling ROOT](https://root-forum.cern.ch/t/issue-when-compiling-root/40232)

<div class="topic-metadata">

**Author:** [@trevajrussell](https://root-forum.cern.ch/u/trevajrussell)\
**Replies:** 12\
**Last updated:** [July 9, 2020, 7:33am UTC](https://root-forum.cern.ch/t/issue-when-compiling-root/40232 "2020-07-09T07:33:16Z")

</div>

Hi, I just got a new computer and am having trouble setting up ROOT but have no idea how to fix it. This is the error I am getting: (optenv) Trevors-MacBook-Pro-2:root-6.22.00\_builddir Trevor$ cmake --build . \[ 0%\] B…

---

## [Calculate local minima and maxima of a periodic function](https://root-forum.cern.ch/t/calculate-local-minima-and-maxima-of-a-periodic-function/40052)

<div class="topic-metadata">

**Author:** [@Nyx](https://root-forum.cern.ch/u/Nyx)\
**Replies:** 5\
**Last updated:** [July 9, 2020, 6:07am UTC](https://root-forum.cern.ch/t/calculate-local-minima-and-maxima-of-a-periodic-function/40052 "2020-07-09T06:07:57Z")

</div>

I have a periodic function for x(t) very similar to a cos function. I want to calculate the time at which local maxima and minima occur. I know how to do this with if loops checking each time that x(t1)\>x(t0), etc, but I…

---

## [How to Count Events within an Odd-Shaped Region?](https://root-forum.cern.ch/t/how-to-count-events-within-an-odd-shaped-region/40305)

<div class="topic-metadata">

**Author:** [@Juan\_Sanchez](https://root-forum.cern.ch/u/Juan_Sanchez)\
**Replies:** 2\
**Last updated:** [July 8, 2020, 4:32pm UTC](https://root-forum.cern.ch/t/how-to-count-events-within-an-odd-shaped-region/40305 "2020-07-08T16:32:22Z")

</div>

Hello everyone, I am trying to count the number of events within an odd-shaped area of a 2D histogram. The area is indicated below shown in bold to distinguish from other boxes. Is there a version of the Integral() f…

---

## [Macro crashes after defining a large matrix](https://root-forum.cern.ch/t/macro-crashes-after-defining-a-large-matrix/40317)

<div class="topic-metadata">

**Author:** [@Nyx](https://root-forum.cern.ch/u/Nyx)\
**Replies:** 3\
**Last updated:** [July 8, 2020, 8:17pm UTC](https://root-forum.cern.ch/t/macro-crashes-after-defining-a-large-matrix/40317 "2020-07-08T20:17:00Z")

</div>

I have a Macro that works fine up to the line where I define a matrix in the form float V\[19999\]\[19999\]. The only thing I do to run my macro is root -l macro.cpp. This shows a few debugging cout I have, and stops at the…

---

## [Two datasets in one canvas](https://root-forum.cern.ch/t/two-datasets-in-one-canvas/40296)

<div class="topic-metadata">

**Author:** [@iosi22](https://root-forum.cern.ch/u/iosi22)\
**Replies:** 3\
**Last updated:** [July 8, 2020, 4:10pm UTC](https://root-forum.cern.ch/t/two-datasets-in-one-canvas/40296 "2020-07-08T16:10:44Z")

</div>

Hi! I am a newbie with data analysis and ROOT in general. I am trying to plot two dataset in one canvas. The first dataset is generated from a code (I just save it as file.C and the second one is a dataset from a filet.t…

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

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