# Newbie

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

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

---

## [Root 6 interraction](https://root-forum.cern.ch/t/root-6-interraction/44288)

<div class="topic-metadata">

**Author:** [@cipy](https://root-forum.cern.ch/u/cipy)\
**Replies:** 3\
**Last updated:** [April 14, 2021, 7:33am UTC](https://root-forum.cern.ch/t/root-6-interraction/44288 "2021-04-14T07:33:09Z")

</div>

I am trying to run a software from github using root under ubuntu linux 20.10 i have tried everything from installing CLion as well i am not sure if it helps or not any advice and opinions are welcomed Best Wishes! Ci…

---

## [How to import data from ROOT in Jupyter Notebook?](https://root-forum.cern.ch/t/how-to-import-data-from-root-in-jupyter-notebook/44383)

<div class="topic-metadata">

**Author:** [@Shivam\_Raj](https://root-forum.cern.ch/u/Shivam_Raj)\
**Replies:** 4\
**Last updated:** [April 14, 2021, 4:53am UTC](https://root-forum.cern.ch/t/how-to-import-data-from-root-in-jupyter-notebook/44383 "2021-04-14T04:53:45Z")

</div>

I want to import data as a .root file in Jupyter Notebook but did not understand how to open the trees inside the file after importing? if I am doing this: import ROOT f = ROOT.TFile.Open(“signal.root”) for event in …

---

## [gStyle-\>SetOptFit(1111) having no effect on fixed variables](https://root-forum.cern.ch/t/gstyle-setoptfit-1111-having-no-effect-on-fixed-variables/40841)

<div class="topic-metadata">

**Author:** [@Ricardo\_Lambo](https://root-forum.cern.ch/u/Ricardo_Lambo)\
**Replies:** 9\
**Last updated:** [April 13, 2021, 4:00pm UTC](https://root-forum.cern.ch/t/gstyle-setoptfit-1111-having-no-effect-on-fixed-variables/40841 "2021-04-13T16:00:46Z")

</div>

Dear Colleagues I’m trying to get the StatBox of my fit to only show me the free parameters. From the documentation I understand that gStyle-\>SetOptFit(1111) should have that effect as opposed to gStyle-\>SetOptFit(1112…

---

## [New histogram filled with only number of bins from old histogram](https://root-forum.cern.ch/t/new-histogram-filled-with-only-number-of-bins-from-old-histogram/38523)

<div class="topic-metadata">

**Author:** [@Jitrusko](https://root-forum.cern.ch/u/Jitrusko)\
**Replies:** 5\
**Last updated:** [April 13, 2021, 1:19pm UTC](https://root-forum.cern.ch/t/new-histogram-filled-with-only-number-of-bins-from-old-histogram/38523 "2021-04-13T13:19:59Z")

</div>

Hi all, if I have a histogram with 10 000 bins and I need a new histogram containing only first 1000 bins from the old one - Is there an easy way to do this? Thanks!

---

## [ROOT 6.23 changing name of branch with TClonesArray](https://root-forum.cern.ch/t/root-6-23-changing-name-of-branch-with-tclonesarray/43626)

<div class="topic-metadata">

**Author:** [@antonio.iuliano2](https://root-forum.cern.ch/u/antonio.iuliano2)\
**Replies:** 5\
**Last updated:** [April 13, 2021, 11:43am UTC](https://root-forum.cern.ch/t/root-6-23-changing-name-of-branch-with-tclonesarray/43626 "2021-04-13T11:43:43Z")

</div>

ROOT Version: 6.23.01 (compared with 6.18/00 and 6.22/02) Platform: CentOS Linux release 7.9.2009 (lxplus) Compiler: Not Provided Dear ROOT experts, I have noticed a weird behaviour of ROOT 6.23/01 in TTree I/O. Let…

---

## [Getting error when I run my code](https://root-forum.cern.ch/t/getting-error-when-i-run-my-code/43639)

<div class="topic-metadata">

**Author:** [@mohebtash](https://root-forum.cern.ch/u/mohebtash)\
**Replies:** 4\
**Last updated:** [April 13, 2021, 9:31am UTC](https://root-forum.cern.ch/t/getting-error-when-i-run-my-code/43639 "2021-04-13T09:31:22Z")

</div>

Dear friends, I hope you are well I want to calculate invariant mass of two opposite charge muons, my code is: #include "TFile.h" #include "TTree.h" #include "TCanvas.h" #include"TVector3.h" #include"TH1F.h" #include…

---

## [Not getting the Correct value of relative efficiency while calculating it manually](https://root-forum.cern.ch/t/not-getting-the-correct-value-of-relative-efficiency-while-calculating-it-manually/44360)

<div class="topic-metadata">

**Author:** [@robertfroast](https://root-forum.cern.ch/u/robertfroast)\
**Replies:** 9\
**Last updated:** [April 13, 2021, 8:54am UTC](https://root-forum.cern.ch/t/not-getting-the-correct-value-of-relative-efficiency-while-calculating-it-manually/44360 "2021-04-13T08:54:44Z")

</div>

Hi ! I am a newbie in using root. I have plotted a efficiency curve for which the code is given below. I have fitted the curve with an ease. Everything is perfect. Now the problem comes here when I try to calculate th…

---

## [About Multithreading for reading and analyse root file in a loop](https://root-forum.cern.ch/t/about-multithreading-for-reading-and-analyse-root-file-in-a-loop/44329)

<div class="topic-metadata">

**Author:** [@Siddharth\_Parashari](https://root-forum.cern.ch/u/Siddharth_Parashari)\
**Replies:** 1\
**Last updated:** [April 13, 2021, 8:21am UTC](https://root-forum.cern.ch/t/about-multithreading-for-reading-and-analyse-root-file-in-a-loop/44329 "2021-04-13T08:21:10Z")

</div>

Hi, I am reading a branch from a root file. Then using the branch to create a histogram in a loop and doing some calculations. So every time I need to make a histogram the first loop is for a variable and another loop o…

---

## [Difference between ROOT::Math::Minimizer and ROOT::Fit::Fitter?](https://root-forum.cern.ch/t/difference-between-root-minimizer-and-root-fitter/44277)

<div class="topic-metadata">

**Author:** [@eggsAndCoffee](https://root-forum.cern.ch/u/eggsAndCoffee)\
**Replies:** 3\
**Last updated:** [April 12, 2021, 4:45pm UTC](https://root-forum.cern.ch/t/difference-between-root-minimizer-and-root-fitter/44277 "2021-04-12T16:45:16Z")

</div>

Hello, I am not sure of the differences between ROOT::Math::Minimizer and ROOT::Fit::Fitter. I have reviewed the documentation and looked at some examples, but there seems to be a lot of overlap between these two classe…

---

## [Use root console commands to modify event status bar default contents](https://root-forum.cern.ch/t/use-root-console-commands-to-modify-event-status-bar-default-contents/44362)

<div class="topic-metadata">

**Author:** [@Ethan\_1987](https://root-forum.cern.ch/u/Ethan_1987)\
**Replies:** 1\
**Last updated:** [April 12, 2021, 1:07pm UTC](https://root-forum.cern.ch/t/use-root-console-commands-to-modify-event-status-bar-default-contents/44362 "2021-04-12T13:07:31Z")

</div>

Hi, I’m using root version 5.34.38 for windows. I have a rootlogon.C file in the root bin directory. I’d like to add commands to modify default event status bar content. For 2 dimentional histograms i’d like to show the …

---

## [Store Histograms in Map as Vectors and Store as ROOT-File](https://root-forum.cern.ch/t/store-histograms-in-map-as-vectors-and-store-as-root-file/44248)

<div class="topic-metadata">

**Author:** [@cklau](https://root-forum.cern.ch/u/cklau)\
**Replies:** 1\
**Last updated:** [April 12, 2021, 12:53pm UTC](https://root-forum.cern.ch/t/store-histograms-in-map-as-vectors-and-store-as-root-file/44248 "2021-04-12T12:53:21Z")

</div>

Hi, I’m at the beginning of my C++/ROOT career and this may be quite basic, but thanks for any help! I’m looking at the hit data of a pixel sensor (50000 pix) and I have data in form of row, column and tot (energy depos…

---

## [Can't Run TUnfold Tutorial](https://root-forum.cern.ch/t/cant-run-tunfold-tutorial/44320)

<div class="topic-metadata">

**Author:** [@Charlie\_Chen](https://root-forum.cern.ch/u/Charlie_Chen)\
**Replies:** 1\
**Last updated:** [April 12, 2021, 12:44pm UTC](https://root-forum.cern.ch/t/cant-run-tunfold-tutorial/44320 "2021-04-12T12:44:33Z")

</div>

I’m trying to run some of TUnfold tutorials and I am finding that the macros are unable to locate the TUnfold.h header files. I understand that TUnfold was included into the ROOT package in a prior version so I am confus…

---

## [TH2D RMS x and RMS y meaning?](https://root-forum.cern.ch/t/th2d-rms-x-and-rms-y-meaning/44370)

<div class="topic-metadata">

**Author:** [@Thomas\_Parker](https://root-forum.cern.ch/u/Thomas_Parker)\
**Replies:** 1\
**Last updated:** [April 12, 2021, 8:48am UTC](https://root-forum.cern.ch/t/th2d-rms-x-and-rms-y-meaning/44370 "2021-04-12T08:48:20Z")

</div>

I have created a 2 dimensional histogram (TH2D) with about 9000 entries. On the legend, the figure displays the mean x, mean y, RMS x and RMS y. I was just wondering if RMS x and RMS y refer to the standard deviation of …

---

## [C++ representation of histogram plotting](https://root-forum.cern.ch/t/c-representation-of-histogram-plotting/44237)

<div class="topic-metadata">

**Author:** [@Andr0meda](https://root-forum.cern.ch/u/Andr0meda)\
**Replies:** 4\
**Last updated:** [April 9, 2021, 4:01pm UTC](https://root-forum.cern.ch/t/c-representation-of-histogram-plotting/44237 "2021-04-09T16:01:31Z")

</div>

Dear ROOTers, I am a total newbie and I would like your help please. I have a dataset which I successfully create a histogram for, cutting to the parameters I need and adding a Gaussian, however I do all these actions u…

---

## [Divide canvas in to a grid and then merge two pads](https://root-forum.cern.ch/t/divide-canvas-in-to-a-grid-and-then-merge-two-pads/44322)

<div class="topic-metadata">

**Author:** [@Aa5](https://root-forum.cern.ch/u/Aa5)\
**Replies:** 6\
**Last updated:** [April 8, 2021, 11:38am UTC](https://root-forum.cern.ch/t/divide-canvas-in-to-a-grid-and-then-merge-two-pads/44322 "2021-04-08T11:38:30Z")

</div>

ROOT Version: 6.22/03 Platform: MacOS Hello, I would like to divide a canvas to a grid of 3 by 3, and then merge two of pads (#6 and #9). I could not find anything in the “Divide” documentation. Thanks

---

## [How to include Math::Interpolator?](https://root-forum.cern.ch/t/how-to-include-math-interpolator/44313)

<div class="topic-metadata">

**Author:** [@pbiel](https://root-forum.cern.ch/u/pbiel)\
**Replies:** 1\
**Last updated:** [April 7, 2021, 2:37pm UTC](https://root-forum.cern.ch/t/how-to-include-math-interpolator/44313 "2021-04-07T14:37:57Z")

</div>

Hi fellow ROOT users! I think I have an issue finding the correct Header file. Here’s what I’m trying to use: #include \<iostream\> #include "TMath.h" #include "Math/Interpolator.h" void interpolate() { std::vector\<dou…

---

## [STL UnaryPredicates with TCollection](https://root-forum.cern.ch/t/stl-unarypredicates-with-tcollection/44159)

<div class="topic-metadata">

**Author:** [@renyhp](https://root-forum.cern.ch/u/renyhp)\
**Replies:** 5\
**Last updated:** [April 6, 2021, 6:07pm UTC](https://root-forum.cern.ch/t/stl-unarypredicates-with-tcollection/44159 "2021-04-06T18:07:52Z")

</div>

Does ROOT not support STL’s UnaryPredicates, or am I doing something wrong? Thanks for your help! root \[0\] TObjArray \*arr = new TObjArray() root \[1\] all\_of(arr-\>begin(), arr-\>end(), \[\](TObject \*obj) { return true; }) In…

---

## [Error while loading shared libraries: libCore.so.6.20 in HTcondor](https://root-forum.cern.ch/t/error-while-loading-shared-libraries-libcore-so-6-20-in-htcondor/44275)

<div class="topic-metadata">

**Author:** [@phoenixAspies](https://root-forum.cern.ch/u/phoenixAspies)\
**Replies:** 2\
**Last updated:** [April 5, 2021, 5:25am UTC](https://root-forum.cern.ch/t/error-while-loading-shared-libraries-libcore-so-6-20-in-htcondor/44275 "2021-04-05T05:25:07Z")

</div>

Dear sir/madam, I’ve got a strange problem on htcondor (or maybe g++). I wrote a cpp code and compile it with g++, such as 'g++ fullspan.cpp -o fullspan root-config --cflags --libs. When I run on linux bash using “./fu…

---

## [Plotting projections on different canvases](https://root-forum.cern.ch/t/plotting-projections-on-different-canvases/44243)

<div class="topic-metadata">

**Author:** [@iftikhar\_safi](https://root-forum.cern.ch/u/iftikhar_safi)\
**Replies:** 2\
**Last updated:** [March 31, 2021, 8:07pm UTC](https://root-forum.cern.ch/t/plotting-projections-on-different-canvases/44243 "2021-03-31T20:07:44Z")

</div>

Hello Everyone! I have a short question. I am plotting all the projections in one Canvas, However, I want to find a way in which I can plot all the projections one by one on different canvases. For example, In the pn…

---

## [Count of data points greater than a threshold](https://root-forum.cern.ch/t/count-of-data-points-greater-than-a-threshold/44245)

<div class="topic-metadata">

**Author:** [@rootNewbie](https://root-forum.cern.ch/u/rootNewbie)\
**Replies:** 3\
**Last updated:** [March 31, 2021, 7:58pm UTC](https://root-forum.cern.ch/t/count-of-data-points-greater-than-a-threshold/44245 "2021-03-31T19:58:25Z")

</div>

I have a .root file where I have written the energy deposited in an ntuple but i need to know how many data points are greater than a specific value. How can I determine this?

---

## [Editing statsbox in TGraphErrors](https://root-forum.cern.ch/t/editing-statsbox-in-tgrapherrors/44224)

<div class="topic-metadata">

**Author:** [@SandStorm](https://root-forum.cern.ch/u/SandStorm)\
**Replies:** 11\
**Last updated:** [March 30, 2021, 4:45pm UTC](https://root-forum.cern.ch/t/editing-statsbox-in-tgrapherrors/44224 "2021-03-30T16:45:22Z")

</div>

Hello everyone, So I did a linear fit using TGraphErrors, all good, just wanted to access the statsbox to add the correlation factor. I´ve been following: Can't access the "status" box of TGraph - #5 by Wile\_E\_Coyote B…

---

## [Method to plot many TGraphs from different .root files](https://root-forum.cern.ch/t/method-to-plot-many-tgraphs-from-different-root-files/44199)

<div class="topic-metadata">

**Author:** [@christopher\_green](https://root-forum.cern.ch/u/christopher_green)\
**Replies:** 2\
**Last updated:** [March 29, 2021, 8:34pm UTC](https://root-forum.cern.ch/t/method-to-plot-many-tgraphs-from-different-root-files/44199 "2021-03-29T20:34:07Z")

</div>

Hello rooters, I have many .root files with TGraph objects saved in them. What I need is a method to get some of those TGraph into a unique TCanvas. In other words, I need to compare different TGraphs stored in differen…

---

## [ClassificationKeras launching](https://root-forum.cern.ch/t/classificationkeras-launching/44183)

<div class="topic-metadata">

**Author:** [@john3](https://root-forum.cern.ch/u/john3)\
**Replies:** 17\
**Last updated:** [March 29, 2021, 3:47pm UTC](https://root-forum.cern.ch/t/classificationkeras-launching/44183 "2021-03-29T15:47:35Z")

</div>

Hello, I’m new to ROOT so I’m sorry if the answer is obvious. In the past days I have tried some TMVA tutorial files, they have all worked expect the python files. I have tried to launch the ClassificationKeras.py as I…

---

## [Make halts at 71%](https://root-forum.cern.ch/t/make-halts-at-71/44196)

<div class="topic-metadata">

**Author:** [@quirkygluon](https://root-forum.cern.ch/u/quirkygluon)\
**Replies:** 2\
**Last updated:** [March 29, 2021, 10:16am UTC](https://root-forum.cern.ch/t/make-halts-at-71/44196 "2021-03-29T10:16:50Z")

</div>

Hello, I’m trying to install Cern ROOT, following the installation guide. I cloned files from git repo, mkdir’ed buildroot folder inside cloned directory, called cmake …, later make -j8 as readme stated, making process h…

---

## [To draw TEllipse in a specific range](https://root-forum.cern.ch/t/to-draw-tellipse-in-a-specific-range/44167)

<div class="topic-metadata">

**Author:** [@vallarinosimone1992](https://root-forum.cern.ch/u/vallarinosimone1992)\
**Replies:** 7\
**Last updated:** [March 26, 2021, 8:17am UTC](https://root-forum.cern.ch/t/to-draw-tellipse-in-a-specific-range/44167 "2021-03-26T08:17:34Z")

</div>

Hi guys, i’m trying to draw a circle over a TH2D plot. My trouble is that I’d like to see the circle only inside the extremes of TH2D axes. How can I do this? To be clearer, I would not like to see the circumference st…

---

## [Storing efficiency numbers into array](https://root-forum.cern.ch/t/storing-efficiency-numbers-into-array/44150)

<div class="topic-metadata">

**Author:** [@beg1nner](https://root-forum.cern.ch/u/beg1nner)\
**Replies:** 6\
**Last updated:** [March 25, 2021, 5:26pm UTC](https://root-forum.cern.ch/t/storing-efficiency-numbers-into-array/44150 "2021-03-25T17:26:10Z")

</div>

Hi all, I am trying to store obtained values into an array, for this I thought it’s better to use vector, however when I call it, just to check - cout \<\< digitArray\[0\] \<\< endl; I get “-nan” output. The value I want to f…

---

## [Root Run Problem](https://root-forum.cern.ch/t/root-run-problem/44148)

<div class="topic-metadata">

**Author:** [@Lluvia](https://root-forum.cern.ch/u/Lluvia)\
**Replies:** 6\
**Last updated:** [March 25, 2021, 12:01pm UTC](https://root-forum.cern.ch/t/root-run-problem/44148 "2021-03-25T12:01:36Z")

</div>

I installed root and wrote source home/usrname/Downloads/root/bin/thisroot.sh in terminal. it was run. But i run root again username@Ubuntu-IP:~$ root Command 'root' not found, did you mean: command 'rootv' from de…

---

## [How to do both saving a root file and displaying](https://root-forum.cern.ch/t/how-to-do-both-saving-a-root-file-and-displaying/44153)

<div class="topic-metadata">

**Author:** [@hohshita](https://root-forum.cern.ch/u/hohshita)\
**Replies:** 2\
**Last updated:** [March 25, 2021, 8:02am UTC](https://root-forum.cern.ch/t/how-to-do-both-saving-a-root-file-and-displaying/44153 "2021-03-25T08:02:20Z")

</div>

Dear all, I’d like to save a histogram into a root file, and at the same time, to display the histogram via a x-terminal. I attach a simple example. When you execute it, you will see a blank canvas. Of course, you…

---

## [Get Histogram from root files](https://root-forum.cern.ch/t/get-histogram-from-root-files/44065)

<div class="topic-metadata">

**Author:** [@haha123](https://root-forum.cern.ch/u/haha123)\
**Replies:** 6\
**Last updated:** [March 24, 2021, 1:31am UTC](https://root-forum.cern.ch/t/get-histogram-from-root-files/44065 "2021-03-24T01:31:15Z")

</div>

Hi I am trying to read histogram from a root file. Here is my attempt: const Char\_t \*directory="/home/haha/data.root"; TFile \*f1=TFile::Open(directory1,"READ"); //TH1D \*num11=(TH1D\*)f1-\>Get(TString::Format("NumQinV;…

---

## [Root 6.22 no Python support enabled](https://root-forum.cern.ch/t/root-6-22-no-python-support-enabled/44131)

<div class="topic-metadata">

**Author:** [@manu1](https://root-forum.cern.ch/u/manu1)\
**Replies:** 14\
**Last updated:** [March 23, 2021, 5:26pm UTC](https://root-forum.cern.ch/t/root-6-22-no-python-support-enabled/44131 "2021-03-23T17:26:42Z")

</div>

ROOT Version: 6.22 Platform: Debian 10.8 Compiler: c++11 I am trying to install root from source with python support enabled. During cmake -DCMAKE\_INSTALL\_PREFIX=../root\_install ../root\_src I get “-- Looking for P…

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

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