# Newbie

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

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

---

## [How to save histograms in a loop](https://root-forum.cern.ch/t/how-to-save-histograms-in-a-loop/47210)

<div class="topic-metadata">

**Author:** [@paulan](https://root-forum.cern.ch/u/paulan)\
**Replies:** 1\
**Last updated:** [October 13, 2021, 3:55am UTC](https://root-forum.cern.ch/t/how-to-save-histograms-in-a-loop/47210 "2021-10-13T03:55:34Z")

</div>

Hi, I am running a code where I produce multiple histograms in loop, for different cuts of the same branch. However, only the last histogram gets displayed in TCanvas. How can I display and save all the histograms that I…

---

## [Cannot use ROOT in a Jupyter notebook](https://root-forum.cern.ch/t/cannot-use-root-in-a-jupyter-notebook/47071)

<div class="topic-metadata">

**Author:** [@sofia.r](https://root-forum.cern.ch/u/sofia.r)\
**Replies:** 11\
**Last updated:** [October 12, 2021, 8:42pm UTC](https://root-forum.cern.ch/t/cannot-use-root-in-a-jupyter-notebook/47071 "2021-10-12T20:42:28Z")

</div>

Hi ! I’ve installed Root on my computer and it works fine, so does Pyroot. However, when I try to use jupyter notebook with root, it does not work. I would really appreciate it if you could help me, please. I’ve foll…

---

## [Making multiple plots from a single histogram](https://root-forum.cern.ch/t/making-multiple-plots-from-a-single-histogram/47191)

<div class="topic-metadata">

**Author:** [@spencer](https://root-forum.cern.ch/u/spencer)\
**Replies:** 3\
**Last updated:** [October 11, 2021, 3:02pm UTC](https://root-forum.cern.ch/t/making-multiple-plots-from-a-single-histogram/47191 "2021-10-11T15:02:12Z")

</div>

Hi, I am (again) stuck on how to plot information from a single TTree with different cuts, without the second histogram overwriting the first. I want to read in a TTree, and plot a variable. I’d like to plot it withou…

---

## [Filling array of histograms in a function](https://root-forum.cern.ch/t/filling-array-of-histograms-in-a-function/47177)

<div class="topic-metadata">

**Author:** [@zenith378](https://root-forum.cern.ch/u/zenith378)\
**Replies:** 6\
**Last updated:** [October 11, 2021, 1:26pm UTC](https://root-forum.cern.ch/t/filling-array-of-histograms-in-a-function/47177 "2021-10-11T13:26:44Z")

</div>

Hi everyone, first time here (and ever on a forum). I’m new to ROOT, sorry in advance if this will sound as a stupid question. I’d like to fill multiple histograms in a function, so i created an array of pointers to hi…

---

## [TBrowser doesn't open using root from lxplus](https://root-forum.cern.ch/t/tbrowser-doesnt-open-using-root-from-lxplus/47181)

<div class="topic-metadata">

**Author:** [@nipla31](https://root-forum.cern.ch/u/nipla31)\
**Replies:** 1\
**Last updated:** [October 8, 2021, 6:16pm UTC](https://root-forum.cern.ch/t/tbrowser-doesnt-open-using-root-from-lxplus/47181 "2021-10-08T18:16:01Z")

</div>

ROOT Version: v6-24-06 Platform: Ubuntu 20.04.3 LTS Hello. I have a problem opening TBrowser using the ROOT from lxplus. I have a program in lxplus called RestFrames and I want to see the plots using the TBrowser from …

---

## [Problem fitting histogram with gaussian signal and linear background noise](https://root-forum.cern.ch/t/problem-fitting-histogram-with-gaussian-signal-and-linear-background-noise/47173)

<div class="topic-metadata">

**Author:** [@mzriu](https://root-forum.cern.ch/u/mzriu)\
**Replies:** 4\
**Last updated:** [October 8, 2021, 3:30pm UTC](https://root-forum.cern.ch/t/problem-fitting-histogram-with-gaussian-signal-and-linear-background-noise/47173 "2021-10-08T15:30:17Z")

</div>

\_ROOT Version: 6.16 Hello, I am having a problem fitting an histogram. To give some context it is an histogram corresponding to a 152Eu source gamma spectrum measured with a Germanium detector. I would like to fit gamm…

---

## [ROOT help, tutorials & Reference Guide on my smartphone](https://root-forum.cern.ch/t/root-help-tutorials-reference-guide-on-my-smartphone/47163)

<div class="topic-metadata">

**Author:** [@xtovo](https://root-forum.cern.ch/u/xtovo)\
**Replies:** 4\
**Last updated:** [October 8, 2021, 11:26am UTC](https://root-forum.cern.ch/t/root-help-tutorials-reference-guide-on-my-smartphone/47163 "2021-10-08T11:26:08Z")

</div>

Hi. The subj is disastrous:( Do you plan to improve it? I would recommend to adapt (somehow ) open source marvelous M$ docfx https://dotnet.github.io/docfx/ Thanks. Regards. Valeriy

---

## [Storing data in TTree](https://root-forum.cern.ch/t/storing-data-in-ttree/47158)

<div class="topic-metadata">

**Author:** [@talgat](https://root-forum.cern.ch/u/talgat)\
**Replies:** 4\
**Last updated:** [October 8, 2021, 11:10am UTC](https://root-forum.cern.ch/t/storing-data-in-ttree/47158 "2021-10-08T11:10:43Z")

</div>

Hello, Dear rooters. How I can write data to tree from text file? I plot histogram from text file, but how to do with TTree. Thanks in advance 60Co\_0cm.txt (66.8 KB) hist.C (223 Bytes)

---

## [Example of FirstBinAbove](https://root-forum.cern.ch/t/example-of-firstbinabove/47151)

<div class="topic-metadata">

**Author:** [@Saradindu](https://root-forum.cern.ch/u/Saradindu)\
**Replies:** 9\
**Last updated:** [October 7, 2021, 2:45pm UTC](https://root-forum.cern.ch/t/example-of-firstbinabove/47151 "2021-10-07T14:45:10Z")

</div>

Hello, Could you please tell me how to use FirstBinAbove and LastBinAbove with a example , I mean with a range between 2000 to 4000 I have a histogram. To get the fwhm i need this FirstBinAbove and LastBinAbove. But I c…

---

## [Add a branch holding object](https://root-forum.cern.ch/t/add-a-branch-holding-object/47093)

<div class="topic-metadata">

**Author:** [@singh](https://root-forum.cern.ch/u/singh)\
**Replies:** 4\
**Last updated:** [October 5, 2021, 4:34pm UTC](https://root-forum.cern.ch/t/add-a-branch-holding-object/47093 "2021-10-05T16:34:58Z")

</div>

Hello root community I am trying to compile a program which used to run on older version of roots, but now it is giving me error while adding object to a branch. here is description ‘’’ SS1 yt; //ss1 is class SS1 \*i…

---

## [Cd() is not moving to the proper drawing pad](https://root-forum.cern.ch/t/cd-is-not-moving-to-the-proper-drawing-pad/47110)

<div class="topic-metadata">

**Author:** [@Bassam](https://root-forum.cern.ch/u/Bassam)\
**Replies:** 4\
**Last updated:** [October 5, 2021, 12:25pm UTC](https://root-forum.cern.ch/t/cd-is-not-moving-to-the-proper-drawing-pad/47110 "2021-10-05T12:25:43Z")

</div>

Hello Experts, I am having a confusing problem when trying to plot. I want to split a canvas vertically into three different pads and plot a specific range of a TGraphErrors object in each one of the vertical pads. The …

---

## [Accessing data from Tree](https://root-forum.cern.ch/t/accessing-data-from-tree/38815)

<div class="topic-metadata">

**Author:** [@pure](https://root-forum.cern.ch/u/pure)\
**Replies:** 11\
**Last updated:** [October 4, 2021, 5:04pm UTC](https://root-forum.cern.ch/t/accessing-data-from-tree/38815 "2021-10-04T17:04:35Z")

</div>

Hello Rooters I have a root file and I want to read the leaf values and show them on the screen. This is a screenshot of my tree: could anyone give a hint?

---

## [MacOs 11.5: Can't execute root through terminal](https://root-forum.cern.ch/t/macos-11-5-cant-execute-root-through-terminal/47054)

<div class="topic-metadata">

**Author:** [@atha.stam](https://root-forum.cern.ch/u/atha.stam)\
**Replies:** 4\
**Last updated:** [October 4, 2021, 2:27pm UTC](https://root-forum.cern.ch/t/macos-11-5-cant-execute-root-through-terminal/47054 "2021-10-04T14:27:53Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version:6.24 Platform:MacOs 11.5 Compiler: Dear co-rooters, I downloaded the pkg file for the 6.24 version and installed it on my Mac 11.…

---

## [2 Pull plots axis labels configuration problems](https://root-forum.cern.ch/t/2-pull-plots-axis-labels-configuration-problems/47094)

<div class="topic-metadata">

**Author:** [@Cesar1](https://root-forum.cern.ch/u/Cesar1)\
**Replies:** 8\
**Last updated:** [October 4, 2021, 2:22pm UTC](https://root-forum.cern.ch/t/2-pull-plots-axis-labels-configuration-problems/47094 "2021-10-04T14:22:26Z")

</div>

Dear experts, I am having some problems with the following plot: mllmassh.pdf (32.4 KB) I named the pads as ax1 (main plot), ax2 (first pull plot), ax3 (second and last pull plot). As you can see, both the main plot y…

---

## [PyMVA crashes with conda ROOT](https://root-forum.cern.ch/t/pymva-crashes-with-conda-root/46945)

<div class="topic-metadata">

**Author:** [@rsharankova](https://root-forum.cern.ch/u/rsharankova)\
**Replies:** 8\
**Last updated:** [October 4, 2021, 9:40am UTC](https://root-forum.cern.ch/t/pymva-crashes-with-conda-root/46945 "2021-10-04T09:40:48Z")

</div>

Hi, I am using ROOT v6\_24\_6 installed with miniforge3 on macOS Big Sur. I was attempting to use PyKeras method in TMVA, but PyMVA initialization fails. I paste an iPython snippet that reproduces the crash, with error t…

---

## [Accessing the data in ntuples](https://root-forum.cern.ch/t/accessing-the-data-in-ntuples/47026)

<div class="topic-metadata">

**Author:** [@abunka](https://root-forum.cern.ch/u/abunka)\
**Replies:** 2\
**Last updated:** [October 4, 2021, 8:17am UTC](https://root-forum.cern.ch/t/accessing-the-data-in-ntuples/47026 "2021-10-04T08:17:23Z")

</div>

Hello, I have seen some similar topics here but cannot find quite what I’m looking for. I used EventLoop to create ntuples, following the tutorial for ATLAS at: \[ATLAS Analysis Software Tutorial | Creating and Filling…

---

## [Digitize graphs from image](https://root-forum.cern.ch/t/digitize-graphs-from-image/47064)

<div class="topic-metadata">

**Author:** [@talgat](https://root-forum.cern.ch/u/talgat)\
**Replies:** 3\
**Last updated:** [October 4, 2021, 8:02am UTC](https://root-forum.cern.ch/t/digitize-graphs-from-image/47064 "2021-10-04T08:02:12Z")

</div>

hello dear rooters. Is it possible to digitize graphs and diagrams from image in ROOT (png, pdf etc)? Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Pr…

---

## [Installing Root on macOS](https://root-forum.cern.ch/t/installing-root-on-macos/47036)

<div class="topic-metadata">

**Author:** [@Bellona](https://root-forum.cern.ch/u/Bellona)\
**Replies:** 7\
**Last updated:** [October 4, 2021, 7:30am UTC](https://root-forum.cern.ch/t/installing-root-on-macos/47036 "2021-10-04T07:30:03Z")

</div>

\_Please read \[tips for efficient and successful posting\] \_ROOT Version: 6.24.04 \_Platform: macOS 10.14.6 \_Compiler: Xcode 10.0 Hi, I installed root using homebrew. I was following a youtube tutorial for the install…

---

## [Get the size of a TTReeReaderArray](https://root-forum.cern.ch/t/get-the-size-of-a-ttreereaderarray/47087)

<div class="topic-metadata">

**Author:** [@sanjeeda](https://root-forum.cern.ch/u/sanjeeda)\
**Replies:** 2\
**Last updated:** [October 3, 2021, 6:05am UTC](https://root-forum.cern.ch/t/get-the-size-of-a-ttreereaderarray/47087 "2021-10-03T06:05:24Z")

</div>

Dear Experts, I am trying to get the size of a TTReeReaderArray by referring here: \> TFile \*f = new TFile("FileName.root"); \> TTreeReader reader("events", f); \> \> TTreeReaderArray\<Float\_t\> pxArray(reader, "Reconst…

---

## [Merging datasets within RDataFrame](https://root-forum.cern.ch/t/merging-datasets-within-rdataframe/47084)

<div class="topic-metadata">

**Author:** [@KAM](https://root-forum.cern.ch/u/KAM)\
**Replies:** 1\
**Last updated:** [October 2, 2021, 11:14am UTC](https://root-forum.cern.ch/t/merging-datasets-within-rdataframe/47084 "2021-10-02T11:14:38Z")

</div>

I have a directory containing some (small) known number of identically structured .root files. Each contains a TTree with a branch timeOfEvent. I know that I can “merge” multiple .root files in an RDataFrame by, for exa…

---

## [Creating an Histo1D with bins of different size](https://root-forum.cern.ch/t/creating-an-histo1d-with-bins-of-different-size/47072)

<div class="topic-metadata">

**Author:** [@Michele99](https://root-forum.cern.ch/u/Michele99)\
**Replies:** 7\
**Last updated:** [October 1, 2021, 3:46pm UTC](https://root-forum.cern.ch/t/creating-an-histo1d-with-bins-of-different-size/47072 "2021-10-01T15:46:50Z")

</div>

Hi to everybody, I’ve created an histogram Histo1D from an RDataframe called df, using the following definition: histo = df.Histo1D((“Histogram”,“Histogram\_background”, 40, 0., 0.2),‘DNN’,‘weight’) The histogram has 40…

---

## [How to implement TEveCaloLego in python](https://root-forum.cern.ch/t/how-to-implement-tevecalolego-in-python/47034)

<div class="topic-metadata">

**Author:** [@Songshaptak\_De](https://root-forum.cern.ch/u/Songshaptak_De)\
**Replies:** 10\
**Last updated:** [September 29, 2021, 11:07am UTC](https://root-forum.cern.ch/t/how-to-implement-tevecalolego-in-python/47034 "2021-09-29T11:07:17Z")

</div>

Hello, I want to generate calorimeter lego plots in ROOT to visualize events in eta-phi plane. I have the eta, phi and pt values of the events, but I don’t understand how to make the calorimeter lego plots using TEveCal…

---

## [Multiply 2D TEfficiency with a TH2D](https://root-forum.cern.ch/t/multiply-2d-tefficiency-with-a-th2d/47010)

<div class="topic-metadata">

**Author:** [@jack1](https://root-forum.cern.ch/u/jack1)\
**Replies:** 4\
**Last updated:** [September 28, 2021, 8:56am UTC](https://root-forum.cern.ch/t/multiply-2d-tefficiency-with-a-th2d/47010 "2021-09-28T08:56:27Z")

</div>

Hi everyone, I have built and filled a 2D TEfficiency object with the probability of tagging a jet with a secondary vertex as a function of its momenta and pseudo-rapidity. However the tracking setup of my simulation use…

---

## [Read a Root file with branches](https://root-forum.cern.ch/t/read-a-root-file-with-branches/47005)

<div class="topic-metadata">

**Author:** [@sanjeeda](https://root-forum.cern.ch/u/sanjeeda)\
**Replies:** 5\
**Last updated:** [September 27, 2021, 11:22am UTC](https://root-forum.cern.ch/t/read-a-root-file-with-branches/47005 "2021-09-27T11:22:01Z")

</div>

Dear Experts, I have a root file which has a tree, a branch and then leaves. The structure is shown in the picture here: . It seems like I cannot read it simply by using tree-\>SetBranchAddress. Moreover, the leaves ar…

---

## [Cout string value from a TTree branch](https://root-forum.cern.ch/t/cout-string-value-from-a-ttree-branch/47011)

<div class="topic-metadata">

**Author:** [@JunKai](https://root-forum.cern.ch/u/JunKai)\
**Replies:** 5\
**Last updated:** [September 27, 2021, 10:35am UTC](https://root-forum.cern.ch/t/cout-string-value-from-a-ttree-branch/47011 "2021-09-27T10:35:55Z")

</div>

Hi , I am looping trough a TTree and trying to cout the values of a particular branch text, which contains string values. I am running the code as macro in ROOT. However I get nothing when the code runs, it just output …

---

## [Stacking Histos with different Y-axis limits](https://root-forum.cern.ch/t/stacking-histos-with-different-y-axis-limits/46951)

<div class="topic-metadata">

**Author:** [@Aya\_Beshr](https://root-forum.cern.ch/u/Aya_Beshr)\
**Replies:** 3\
**Last updated:** [September 26, 2021, 2:15am UTC](https://root-forum.cern.ch/t/stacking-histos-with-different-y-axis-limits/46951 "2021-09-26T02:15:49Z")

</div>

Dear ROOT Experts, I have several root files including TH1 histograms. I am adding multiple histograms in one canvas, but I am facing a problem each histo has different limits for y-axis (representing number of events) …

---

## ["Unknown column" when attempting to Snapshot an RDataFrame with a new, Defined column](https://root-forum.cern.ch/t/unknown-column-when-attempting-to-snapshot-an-rdataframe-with-a-new-defined-column/46915)

<div class="topic-metadata">

**Author:** [@KAM](https://root-forum.cern.ch/u/KAM)\
**Replies:** 3\
**Last updated:** [September 25, 2021, 6:48pm UTC](https://root-forum.cern.ch/t/unknown-column-when-attempting-to-snapshot-an-rdataframe-with-a-new-defined-column/46915 "2021-09-25T18:48:50Z")

</div>

I’ve written the following code, which takes in two files (test1.root and test2.root) in an RDataFrame. Each contains a TNtuple with the columns/branches x and y. I then define a new column, z, produced by taking the el…

---

## [Where is the $SYSROOT/test directory for ROOT installation via conda](https://root-forum.cern.ch/t/where-is-the-sysroot-test-directory-for-root-installation-via-conda/46988)

<div class="topic-metadata">

**Author:** [@JunKai](https://root-forum.cern.ch/u/JunKai)\
**Replies:** 4\
**Last updated:** [September 25, 2021, 8:04am UTC](https://root-forum.cern.ch/t/where-is-the-sysroot-test-directory-for-root-installation-via-conda/46988 "2021-09-25T08:04:00Z")

</div>

Hi, I am following the tutorial (https://root.cern.ch/root/htmldoc/guides/users-guide/Trees.html#creating-and-saving-trees), and it needs LibEvent.so to proceed. The easiest way is to follow the instructions in the tut…

---

## [TEfficiency or Divide(..."B") for SF files](https://root-forum.cern.ch/t/tefficiency-or-divide-b-for-sf-files/46762)

<div class="topic-metadata">

**Author:** [@adrobac](https://root-forum.cern.ch/u/adrobac)\
**Replies:** 8\
**Last updated:** [September 24, 2021, 3:35pm UTC](https://root-forum.cern.ch/t/tefficiency-or-divide-b-for-sf-files/46762 "2021-09-24T15:35:15Z")

</div>

Hi there, I’m making efficiency scale factors (SF), where the SF is the ratio of the data efficiency to the simulated efficiency, and I need to calculate the overall stat uncertainty on these SFs. The workflow (in pseud…

---

## [Warning when using RDataFrame](https://root-forum.cern.ch/t/warning-when-using-rdataframe/40691)

<div class="topic-metadata">

**Author:** [@Newbie](https://root-forum.cern.ch/u/Newbie)\
**Replies:** 4\
**Last updated:** [September 24, 2021, 2:30pm UTC](https://root-forum.cern.ch/t/warning-when-using-rdataframe/40691 "2021-09-24T14:30:38Z")

</div>

Dear, When I use RDataFrame, or even when I load trees to TChain, I get this warning. Warning in : Cannot enable implicit multi-threading with 0 threads, please build ROOT with -Dimt=ON Can someone guide me on how to …

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

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