# Newbie

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

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

---

## [Cloning TTree with PyROOT](https://root-forum.cern.ch/t/cloning-ttree-with-pyroot/36118)

<div class="topic-metadata">

**Author:** [@surrutiaquir](https://root-forum.cern.ch/u/surrutiaquir)\
**Replies:** 4\
**Last updated:** [September 30, 2019, 6:22pm UTC](https://root-forum.cern.ch/t/cloning-ttree-with-pyroot/36118 "2019-09-30T18:22:52Z")

</div>

Hi, I want to clone a TTree using PyROOT, and then to change some contents in the new TTree in the same way as this previous post: https://root-forum.cern.ch/t/cloning-tree-and-changing-contents-in-the-new-tree/12204. I…

---

## [Error using macro on root](https://root-forum.cern.ch/t/error-using-macro-on-root/36188)

<div class="topic-metadata">

**Author:** [@TaeNyFan](https://root-forum.cern.ch/u/TaeNyFan)\
**Replies:** 2\
**Last updated:** [September 30, 2019, 3:53pm UTC](https://root-forum.cern.ch/t/error-using-macro-on-root/36188 "2019-09-30T15:53:47Z")

</div>

I am using ROOT 6.18/02 on Windows 10 with Visual Studio 2019. I have a macro file formula1.C with the following lines of code: { f = new TF1(“f”,“sin(x)”,0,5); f-\>Draw(); } When I run .x formula1.C in ROOT, I ge…

---

## [Error when running root in Windows Command Prompt](https://root-forum.cern.ch/t/error-when-running-root-in-windows-command-prompt/36181)

<div class="topic-metadata">

**Author:** [@TaeNyFan](https://root-forum.cern.ch/u/TaeNyFan)\
**Replies:** 3\
**Last updated:** [September 30, 2019, 3:39pm UTC](https://root-forum.cern.ch/t/error-when-running-root-in-windows-command-prompt/36181 "2019-09-30T15:39:15Z")

</div>

Whenever I run root from the Command Prompt in Windows 10, I get the following the errors: In file included from input\_line\_3:39: In file included from C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\…

---

## [Build ROOT with customized cling dir](https://root-forum.cern.ch/t/build-root-with-customized-cling-dir/36064)

<div class="topic-metadata">

**Author:** [@mcdlee](https://root-forum.cern.ch/u/mcdlee)\
**Replies:** 7\
**Last updated:** [September 30, 2019, 9:33am UTC](https://root-forum.cern.ch/t/build-root-with-customized-cling-dir/36064 "2019-09-30T09:33:02Z")

</div>

I would like to install ROOT 6.14/06 on a Red Hat Enterprise Linux 7.3 x86\_64. But I met the problem of cling similar with this one. I’m not the admin, so I build cling at my home directory according to the document sm…

---

## [Problem with using ROOT in PyCharm](https://root-forum.cern.ch/t/problem-with-using-root-in-pycharm/36092)

<div class="topic-metadata">

**Author:** [@Fely](https://root-forum.cern.ch/u/Fely)\
**Replies:** 9\
**Last updated:** [September 28, 2019, 12:21pm UTC](https://root-forum.cern.ch/t/problem-with-using-root-in-pycharm/36092 "2019-09-28T12:21:50Z")

</div>

Hello, I am new to ROOT and also Linux, so please reply to me easy. Thank you. I chose Python (PyROOT) to work in. I have installed Anaconda and \[Conda ROOT\] (https://anaconda.org/conda-forge/root). I am using PyCharm …

---

## [Randomness Test of random numbers following the Landau distribution](https://root-forum.cern.ch/t/randomness-test-of-random-numbers-following-the-landau-distribution/36103)

<div class="topic-metadata">

**Author:** [@federica](https://root-forum.cern.ch/u/federica)\
**Replies:** 3\
**Last updated:** [September 28, 2019, 12:13pm UTC](https://root-forum.cern.ch/t/randomness-test-of-random-numbers-following-the-landau-distribution/36103 "2019-09-28T12:13:34Z")

</div>

Hi all, I made a simple c++ code generating some random numbers following a Landau distribution. Now, I want to test the randomness of my generator, but I’m having some doubts about how to proceed. I thought I might ge…

---

## [Reading data from files in TMinuit fitting](https://root-forum.cern.ch/t/reading-data-from-files-in-tminuit-fitting/36156)

<div class="topic-metadata">

**Author:** [@DANTE0316](https://root-forum.cern.ch/u/DANTE0316)\
**Replies:** 1\
**Last updated:** [September 26, 2019, 4:25pm UTC](https://root-forum.cern.ch/t/reading-data-from-files-in-tminuit-fitting/36156 "2019-09-26T16:25:39Z")

</div>

Hi ,everyone! I want to ask a question ,if it is necessary to read the data in the main program when I fit datas with TMinuit class?Can I read it in the function that I define to to be minimized? Why？

---

## [Examples with TMinuit](https://root-forum.cern.ch/t/examples-with-tminuit/36155)

<div class="topic-metadata">

**Author:** [@DANTE0316](https://root-forum.cern.ch/u/DANTE0316)\
**Replies:** 2\
**Last updated:** [September 26, 2019, 7:25am UTC](https://root-forum.cern.ch/t/examples-with-tminuit/36155 "2019-09-26T07:25:00Z")

</div>

Hi,everyone! Which examples are about fitting datas with TMinuit class？I can not find them.Thank you !

---

## [XCode 11 Update](https://root-forum.cern.ch/t/xcode-11-update/36132)

<div class="topic-metadata">

**Author:** [@usccaa](https://root-forum.cern.ch/u/usccaa)\
**Replies:** 8\
**Last updated:** [September 24, 2019, 7:51pm UTC](https://root-forum.cern.ch/t/xcode-11-update/36132 "2019-09-24T19:51:01Z")

</div>

I made the dumb mistake of updating XCode before my thesis was finished. Now I’m getting this error. warning: no such sysroot directory: ‘/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SD…

---

## [Regarding installation of Geant 4 Gate and ROOT](https://root-forum.cern.ch/t/regarding-installation-of-geant-4-gate-and-root/36119)

<div class="topic-metadata">

**Author:** [@Harsh\_doshi](https://root-forum.cern.ch/u/Harsh_doshi)\
**Replies:** 1\
**Last updated:** [September 23, 2019, 8:06am UTC](https://root-forum.cern.ch/t/regarding-installation-of-geant-4-gate-and-root/36119 "2019-09-23T08:06:01Z")

</div>

I currently installed packages for visualizations of openGL but when I try running my Gate command I can see my visualization for only 1 second and the viewer closes. I am not able to view my output of visualization. Fol…

---

## [Chi-square test between two histograms](https://root-forum.cern.ch/t/chi-square-test-between-two-histograms/36104)

<div class="topic-metadata">

**Author:** [@federica](https://root-forum.cern.ch/u/federica)\
**Replies:** 3\
**Last updated:** [September 21, 2019, 5:55pm UTC](https://root-forum.cern.ch/t/chi-square-test-between-two-histograms/36104 "2019-09-21T17:55:16Z")

</div>

Hi all, I made a c++ code generating some events following a specific angular distribution (that’s the Ffunction in my code). After that, I generate a second sample of events, which is following an isotropic distributio…

---

## [What do the fit status mean?](https://root-forum.cern.ch/t/what-do-the-fit-status-mean/36052)

<div class="topic-metadata">

**Author:** [@Christoph\_Vogl](https://root-forum.cern.ch/u/Christoph_Vogl)\
**Replies:** 1\
**Last updated:** [September 17, 2019, 6:33pm UTC](https://root-forum.cern.ch/t/what-do-the-fit-status-mean/36052 "2019-09-17T18:33:28Z")

</div>

After fitting some function to some data one can retrieve the fit status via, e.g. r = hSpectrumCalibration-\>Fit(f1, "R0MS"); status = r-\>Status(); But what do those values of status actually mean? So far I belive 0 i…

---

## [Plotting points on the graph](https://root-forum.cern.ch/t/plotting-points-on-the-graph/35791)

<div class="topic-metadata">

**Author:** [@jbmagallanes](https://root-forum.cern.ch/u/jbmagallanes)\
**Replies:** 51\
**Last updated:** [September 16, 2019, 2:56pm UTC](https://root-forum.cern.ch/t/plotting-points-on-the-graph/35791 "2019-09-16T14:56:04Z")

</div>

hi :slight\_smile: i intend to plot points in TGraph with some part of the code: TF1 \*f1 = new TF1("f1","(((2.0\*\[0\]\*\[0\]\*\[1\]\*\[1\]\*\[2\]\*\[2\]\*\[3\]\*\[3\])/(x\*x\*sin(\[4\]\*\[5\]/360.0)\*sin(\[4\]\*\[5\]/360.0)\*sin(\[4\]\*\[5\]/360.0)\*sin(\[4\]\*\[5\]/…

---

## [Error while running GEANT4](https://root-forum.cern.ch/t/error-while-running-geant4/36041)

<div class="topic-metadata">

**Author:** [@RachanaYajur](https://root-forum.cern.ch/u/RachanaYajur)\
**Replies:** 1\
**Last updated:** [September 16, 2019, 8:03am UTC](https://root-forum.cern.ch/t/error-while-running-geant4/36041 "2019-09-16T08:03:10Z")

</div>

I have written a GEANT4 code to output the simulation result as a root file and obtained the following error. May I please know what has gone wrong? -------- EEEE ------- G4Exception-START -------- EEEE ------- \*\*\* G4Ex…

---

## [How does TF1::GetRandom() work?](https://root-forum.cern.ch/t/how-does-tf1-getrandom-work/36031)

<div class="topic-metadata">

**Author:** [@Nicola\_Rizzi](https://root-forum.cern.ch/u/Nicola_Rizzi)\
**Replies:** 6\
**Last updated:** [September 15, 2019, 8:26am UTC](https://root-forum.cern.ch/t/how-does-tf1-getrandom-work/36031 "2019-09-15T08:26:56Z")

</div>

Hi guys, can anyone explain to me how TF1::GetRandom() exactly works when called? I don’t know if it’s only me, but the explanation given in the source code is very foggy, or maybe too much condensed. I will appreciat…

---

## [How to get PyROOT to recognize my TFile's TBranches?](https://root-forum.cern.ch/t/how-to-get-pyroot-to-recognize-my-tfiles-tbranches/35948)

<div class="topic-metadata">

**Author:** [@Hilary](https://root-forum.cern.ch/u/Hilary)\
**Replies:** 1\
**Last updated:** [September 12, 2019, 9:29am UTC](https://root-forum.cern.ch/t/how-to-get-pyroot-to-recognize-my-tfiles-tbranches/35948 "2019-09-12T09:29:51Z")

</div>

ROOT Version: Not Provided Platform: Linux Compiler: Not Provided Hello, I am attempting to iterate over the values of one TBranch in a TTree that is located in a TDirectory under a TFile. I am fairly new to ROOT, …

---

## [Graphical Cut Application](https://root-forum.cern.ch/t/graphical-cut-application/35960)

<div class="topic-metadata">

**Author:** [@wellatiger](https://root-forum.cern.ch/u/wellatiger)\
**Replies:** 2\
**Last updated:** [September 10, 2019, 3:43pm UTC](https://root-forum.cern.ch/t/graphical-cut-application/35960 "2019-09-10T15:43:22Z")

</div>

Dear Rooters, I have a graphical cut saved as a root file and I want to apply this cut on a set of events inside an event loop. How to do that? Thank you very much in advance

---

## [Question on DeltaR and vectors in rdf](https://root-forum.cern.ch/t/question-on-deltar-and-vectors-in-rdf/35952)

<div class="topic-metadata">

**Author:** [@kjohns](https://root-forum.cern.ch/u/kjohns)\
**Replies:** 0\
**Last updated:** [September 10, 2019, 3:47am UTC](https://root-forum.cern.ch/t/question-on-deltar-and-vectors-in-rdf/35952 "2019-09-10T03:47:33Z")

</div>

hi, your suggestions of 7/2/19 helped quite a bit wrt to rdf. thanks. however i am still missing something in one of the examples you gave. i am using root 6.18 now. df = df.Filter("nMuon \> 0 && nElectron \> 0", "Sel…

---

## [Saving to a data file](https://root-forum.cern.ch/t/saving-to-a-data-file/35900)

<div class="topic-metadata">

**Author:** [@jbmagallanes](https://root-forum.cern.ch/u/jbmagallanes)\
**Replies:** 2\
**Last updated:** [September 9, 2019, 3:13pm UTC](https://root-forum.cern.ch/t/saving-to-a-data-file/35900 "2019-09-09T15:13:18Z")

</div>

hi, what is the code in saving printout data to a data file? for example, i want to save these three batches of printouts: av40-\>Print(); av41-\>Print(); av46-\>Print(); thanks for your help :slight\_smile: regards, …

---

## [Run a root script from CMD](https://root-forum.cern.ch/t/run-a-root-script-from-cmd/35702)

<div class="topic-metadata">

**Author:** [@stzanos](https://root-forum.cern.ch/u/stzanos)\
**Replies:** 5\
**Last updated:** [September 9, 2019, 9:27am UTC](https://root-forum.cern.ch/t/run-a-root-script-from-cmd/35702 "2019-09-09T09:27:34Z")

</div>

Hello guys, I’m following this: https://root.cern.ch/root/htmldoc/guides/users-guide/ROOTUsersGuide.html#start-and-quit-a-root-session which states in an example that to pass a string as a parameter you’re supposed to …

---

## [Easiest way to add entries of a TTree](https://root-forum.cern.ch/t/easiest-way-to-add-entries-of-a-ttree/35896)

<div class="topic-metadata">

**Author:** [@Nyx](https://root-forum.cern.ch/u/Nyx)\
**Replies:** 3\
**Last updated:** [September 9, 2019, 6:22am UTC](https://root-forum.cern.ch/t/easiest-way-to-add-entries-of-a-ttree/35896 "2019-09-09T06:22:34Z")

</div>

What is the easiest way to add or make operations with the entries of a TTree? Specifically, I want to do something like \\sqrt{entry(1) + entry(2) + … + entry(N)}. This can be easily done with a macro, but I wonder if th…

---

## [Creating Histogram from Python](https://root-forum.cern.ch/t/creating-histogram-from-python/35912)

<div class="topic-metadata">

**Author:** [@usernew](https://root-forum.cern.ch/u/usernew)\
**Replies:** 1\
**Last updated:** [September 8, 2019, 6:30pm UTC](https://root-forum.cern.ch/t/creating-histogram-from-python/35912 "2019-09-08T18:30:49Z")

</div>

Hello, I am trying to create a histogram using Root from Python. However, I am getting this warning: Execution of your code was aborted. ROOT\_prompt\_2:1:1: warning: null passed to a callee that requires a non-null argu…

---

## [Problem while generating random numbers](https://root-forum.cern.ch/t/problem-while-generating-random-numbers/35923)

<div class="topic-metadata">

**Author:** [@JohnyBoy](https://root-forum.cern.ch/u/JohnyBoy)\
**Replies:** 4\
**Last updated:** [September 8, 2019, 12:28pm UTC](https://root-forum.cern.ch/t/problem-while-generating-random-numbers/35923 "2019-09-08T12:28:10Z")

</div>

Hello everyone. My issue is the following. I am trying to generate random numbers for a physics simulation. I need to simulate at least 1 million events. But the random numbers have to be distributed according to the fo…

---

## [Problem with building ROOT: MathMore error](https://root-forum.cern.ch/t/problem-with-building-root-mathmore-error/35822)

<div class="topic-metadata">

**Author:** [@ramijiiti](https://root-forum.cern.ch/u/ramijiiti)\
**Replies:** 17\
**Last updated:** [September 6, 2019, 9:10am UTC](https://root-forum.cern.ch/t/problem-with-building-root-mathmore-error/35822 "2019-09-06T09:10:29Z")

</div>

Hi, I was trying to install ROOT from the git repository. First, I cloned the package: git clone https://github.com/root-project/root.git Then, in the build directory, I run: cmake . . cmake --build . -j8 and I got…

---

## [Reading more than one root files](https://root-forum.cern.ch/t/reading-more-than-one-root-files/35850)

<div class="topic-metadata">

**Author:** [@NewR](https://root-forum.cern.ch/u/NewR)\
**Replies:** 6\
**Last updated:** [September 5, 2019, 8:59am UTC](https://root-forum.cern.ch/t/reading-more-than-one-root-files/35850 "2019-09-05T08:59:12Z")

</div>

Hi, I am trying to open recursively root files; I try this code: TFile \*file\[5\]; TTree \*T1\[5\]; f\[1\]-\>Open("/home/daqmgr/neutroni/DataAnalysis/dst/run328.root"); T1\[0\]=(TTree\*) f\[1\]-\>Get("T"); but I obtain an…

---

## [Meaning of this error](https://root-forum.cern.ch/t/meaning-of-this-error/35864)

<div class="topic-metadata">

**Author:** [@jbmagallanes](https://root-forum.cern.ch/u/jbmagallanes)\
**Replies:** 2\
**Last updated:** [September 3, 2019, 3:34pm UTC](https://root-forum.cern.ch/t/meaning-of-this-error/35864 "2019-09-03T15:34:11Z")

</div>

does anybody know about this error: In file included from input\_line\_80:1: /home/jaybee/CodesScattering/DataPointStatNewEPEQDCSProbColorWithMRF.C:957:12: error: called object type 'TF1 \*\[nof\]' is not a function or funct…

---

## [Omit section of the y axis in a 2D graph](https://root-forum.cern.ch/t/omit-section-of-the-y-axis-in-a-2d-graph/35858)

<div class="topic-metadata">

**Author:** [@jbrummer](https://root-forum.cern.ch/u/jbrummer)\
**Replies:** 1\
**Last updated:** [September 3, 2019, 11:11am UTC](https://root-forum.cern.ch/t/omit-section-of-the-y-axis-in-a-2d-graph/35858 "2019-09-03T11:11:34Z")

</div>

Hello fellow ROOTers, I have a 2D spectrum where the data is separated. There is a large section of the y axis that has no corresponding entries and I would like to omit this region to focus more on the data rather than…

---

## [Should I use PROOF Lite or RDataFrame's ImplicitMT?](https://root-forum.cern.ch/t/should-i-use-proof-lite-or-rdataframes-implicitmt/35845)

<div class="topic-metadata">

**Author:** [@marty1885](https://root-forum.cern.ch/u/marty1885)\
**Replies:** 3\
**Last updated:** [September 2, 2019, 1:38pm UTC](https://root-forum.cern.ch/t/should-i-use-proof-lite-or-rdataframes-implicitmt/35845 "2019-09-02T13:38:40Z")

</div>

I was wondering, under the assumption of running the program in a single computer and I can read my .root file as a RDataFrame. Should I use PROOF Lite or should I use the new RDataFrame’s multi-threading capability? Whi…

---

## [Histogram error bar for relative counts](https://root-forum.cern.ch/t/histogram-error-bar-for-relative-counts/35847)

<div class="topic-metadata">

**Author:** [@froztiz](https://root-forum.cern.ch/u/froztiz)\
**Replies:** 1\
**Last updated:** [September 2, 2019, 12:30pm UTC](https://root-forum.cern.ch/t/histogram-error-bar-for-relative-counts/35847 "2019-09-02T12:30:24Z")

</div>

Dear expert, I have a question that is probably very simple. I am wondering how the error bar on histogram is calculated in a case of normalized count. I am explaining: For an histogram of counts, we assume a Poisson…

---

## [Running ROOT to a folder containing C++ code](https://root-forum.cern.ch/t/running-root-to-a-folder-containing-c-code/35832)

<div class="topic-metadata">

**Author:** [@Shamim](https://root-forum.cern.ch/u/Shamim)\
**Replies:** 2\
**Last updated:** [September 2, 2019, 10:35am UTC](https://root-forum.cern.ch/t/running-root-to-a-folder-containing-c-code/35832 "2019-09-02T10:35:35Z")

</div>

I am a complete beginner in ROOT. I want to run a C++ script written in Emacs, which is saved in certain folder but not in ROOT original folder. In that case how can I run that script using ROOT to that directory, that i…

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

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