# Newbie

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

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

---

## [Binding energy plot](https://root-forum.cern.ch/t/binding-energy-plot/45668)

<div class="topic-metadata">

**Author:** [@Ravinder](https://root-forum.cern.ch/u/Ravinder)\
**Replies:** 2\
**Last updated:** [July 3, 2021, 10:03am UTC](https://root-forum.cern.ch/t/binding-energy-plot/45668 "2021-07-03T10:03:43Z")

</div>

in my given file,I have value of Z,A,Binding energy and error in binding energy.My teacher told me to again calculate the binding energy using code. mass\_2021.txt (123.0 KB)

---

## [Simultaneous Fit of Two Sides of ONE Histogram](https://root-forum.cern.ch/t/simultaneous-fit-of-two-sides-of-one-histogram/45662)

<div class="topic-metadata">

**Author:** [@Russell\_Marroquin](https://root-forum.cern.ch/u/Russell_Marroquin)\
**Replies:** 4\
**Last updated:** [July 2, 2021, 7:09pm UTC](https://root-forum.cern.ch/t/simultaneous-fit-of-two-sides-of-one-histogram/45662 "2021-07-02T19:09:58Z")

</div>

Hi All, I have a 1D histogram and I need to fit the background. However, I am given two specific ranges for the fit, so basically, some data needs to be left out from the fit. The only way I have managed to do that is b…

---

## [How to draw all entries in TMatrix](https://root-forum.cern.ch/t/how-to-draw-all-entries-in-tmatrix/45653)

<div class="topic-metadata">

**Author:** [@Karl007](https://root-forum.cern.ch/u/Karl007)\
**Replies:** 10\
**Last updated:** [July 2, 2021, 11:07am UTC](https://root-forum.cern.ch/t/how-to-draw-all-entries-in-tmatrix/45653 "2021-07-02T11:07:07Z")

</div>

Hi, I am trying to draw 45 entries in Tmatrix together in one canvas. I am using the following code: TFile\* outFile = new TFile("myrootfile.root"); TTree\* outTree = (TTree\*)outFile-\>Get("out\_tree"); outTree-\>Print…

---

## [Question for 1d histogram in root](https://root-forum.cern.ch/t/question-for-1d-histogram-in-root/45637)

<div class="topic-metadata">

**Author:** [@Saradindu](https://root-forum.cern.ch/u/Saradindu)\
**Replies:** 5\
**Last updated:** [July 2, 2021, 7:03am UTC](https://root-forum.cern.ch/t/question-for-1d-histogram-in-root/45637 "2021-07-02T07:03:27Z")

</div>

Hii all, I am new in root… Could you please tell me how do I can save 1d histogram using TH1D class… I know how to save pdf files, and histograms using TH1F class. But i need histogram of TH1D class… Please tell me the…

---

## [Test\_signal.root does not exist](https://root-forum.cern.ch/t/test-signal-root-does-not-exist/45628)

<div class="topic-metadata">

**Author:** [@electronheart](https://root-forum.cern.ch/u/electronheart)\
**Replies:** 2\
**Last updated:** [July 1, 2021, 7:35pm UTC](https://root-forum.cern.ch/t/test-signal-root-does-not-exist/45628 "2021-07-01T19:35:12Z")

</div>

Hi! I am an absolute newbie to all things ROOT as well as terminal commands. I am having trouble trying to run tmva101\_Training.py and tmva102\_Testing.py. The error I am getting is that “test\_signal.root does not exist” …

---

## [Filling a divided canvas with multiple TGraphs from within a for loop](https://root-forum.cern.ch/t/filling-a-divided-canvas-with-multiple-tgraphs-from-within-a-for-loop/45629)

<div class="topic-metadata">

**Author:** [@rNov77](https://root-forum.cern.ch/u/rNov77)\
**Replies:** 6\
**Last updated:** [July 1, 2021, 7:31pm UTC](https://root-forum.cern.ch/t/filling-a-divided-canvas-with-multiple-tgraphs-from-within-a-for-loop/45629 "2021-07-01T19:31:52Z")

</div>

Hi All, I am trying to get a TGraphErrors plot in each of the sub-divisions of the canvas for comparison. Unfortunately, I get only the last plot in the last subdivision after saving the canvas in a root file. I can see…

---

## [Converting TMatrix to TH2F/TH2D](https://root-forum.cern.ch/t/converting-tmatrix-to-th2f-th2d/45626)

<div class="topic-metadata">

**Author:** [@Karl007](https://root-forum.cern.ch/u/Karl007)\
**Replies:** 2\
**Last updated:** [July 1, 2021, 3:21pm UTC](https://root-forum.cern.ch/t/converting-tmatrix-to-th2f-th2d/45626 "2021-07-01T15:21:27Z")

</div>

Hi, I am using the following code for converting TMatrix to TH2F/TH2D: TH2D \*h = new TH2D(matrix1); h-\>SetNameTitle("h", "matrix;x axis;y axis;z axis"); h-\>Draw("COLZ"); But I am getting this errror: no known c…

---

## [PyRoot reading leaves](https://root-forum.cern.ch/t/pyroot-reading-leaves/45547)

<div class="topic-metadata">

**Author:** [@UneasyPlum](https://root-forum.cern.ch/u/UneasyPlum)\
**Replies:** 14\
**Last updated:** [July 1, 2021, 1:56pm UTC](https://root-forum.cern.ch/t/pyroot-reading-leaves/45547 "2021-07-01T13:56:00Z")

</div>

I’m very new to Root and I’m struggling to read a Delphes generated file in PyRoot. I need to access the leaves Tower.Eta and Tower.Phi to read their values, but I can’t for my life figure out how to use exroottreereader…

---

## [Install PyROOT with python3.6 on Ubuntu 16.04](https://root-forum.cern.ch/t/install-pyroot-with-python3-6-on-ubuntu-16-04/45288)

<div class="topic-metadata">

**Author:** [@rodrigar](https://root-forum.cern.ch/u/rodrigar)\
**Replies:** 5\
**Last updated:** [July 1, 2021, 8:54am UTC](https://root-forum.cern.ch/t/install-pyroot-with-python3-6-on-ubuntu-16-04/45288 "2021-07-01T08:54:12Z")

</div>

Dear all, After trying several solutions found in this forum and StackOverflow without success I need your help. I have tried to install root.6.22 on ubuntu 16.04 (personal laptop), python 3.6 installed, cmake 3.10.2 an…

---

## [Pad and canvas bug](https://root-forum.cern.ch/t/pad-and-canvas-bug/45608)

<div class="topic-metadata">

**Author:** [@schr0d1ng3r](https://root-forum.cern.ch/u/schr0d1ng3r)\
**Replies:** 7\
**Last updated:** [July 1, 2021, 6:47am UTC](https://root-forum.cern.ch/t/pad-and-canvas-bug/45608 "2021-07-01T06:47:42Z")

</div>

Hello everyone, I have installed root 6.22 with the next code : (found in the installation manual) wget https://root.cern/download/root\_v6.22.00.Linux-ubuntu19-x86\_64-gcc9.2.tar.gz $ tar -xzvf root\_v6.22.00.Linux-ubunt…

---

## [How to use root (6.24/00) on Visual Studio 2019 (Windows 10)?](https://root-forum.cern.ch/t/how-to-use-root-6-24-00-on-visual-studio-2019-windows-10/45610)

<div class="topic-metadata">

**Author:** [@alexsandro](https://root-forum.cern.ch/u/alexsandro)\
**Replies:** 9\
**Last updated:** [June 30, 2021, 7:22pm UTC](https://root-forum.cern.ch/t/how-to-use-root-6-24-00-on-visual-studio-2019-windows-10/45610 "2021-06-30T19:22:19Z")

</div>

Hi! I downloaded the binary built of root (6.24/00) for Microsoft Visual Studio 2019, then I installed it normally and set it to PATH. I tried to import root in a code on VS 2019 but it did not work. Is there an additio…

---

## [Stooping criterion of Minuit.migrad when EDM is larger than tolerance](https://root-forum.cern.ch/t/stooping-criterion-of-minuit-migrad-when-edm-is-larger-than-tolerance/45581)

<div class="topic-metadata">

**Author:** [@victor\_estrade](https://root-forum.cern.ch/u/victor_estrade)\
**Replies:** 11\
**Last updated:** [June 30, 2021, 9:25am UTC](https://root-forum.cern.ch/t/stooping-criterion-of-minuit-migrad-when-edm-is-larger-than-tolerance/45581 "2021-06-30T09:25:33Z")

</div>

Hi all, I am using iminuit to minimize a negative log likelihood on a toy problem. I have several question about how to be sure that I am using migrad() correctly. migrad() outputs explains that the estimated distanc…

---

## [Unable to read a TTree with leaves and a branch (TArrayS) with pyROOT](https://root-forum.cern.ch/t/unable-to-read-a-ttree-with-leaves-and-a-branch-tarrays-with-pyroot/45578)

<div class="topic-metadata">

**Author:** [@Daniel\_Lopez](https://root-forum.cern.ch/u/Daniel_Lopez)\
**Replies:** 3\
**Last updated:** [June 29, 2021, 7:21am UTC](https://root-forum.cern.ch/t/unable-to-read-a-ttree-with-leaves-and-a-branch-tarrays-with-pyroot/45578 "2021-06-29T07:21:19Z")

</div>

Hello everyone, (first post here :grinning:) I am new to ROOT, and I am trying to read a .root using pyROOT. The .root comes from a Nuclear detector (CAEN).The root Tree looks like (I can not upload the .root because it…

---

## [Write TTree out to file seems to corrupt it](https://root-forum.cern.ch/t/write-ttree-out-to-file-seems-to-corrupt-it/45553)

<div class="topic-metadata">

**Author:** [@ACalcaterra](https://root-forum.cern.ch/u/ACalcaterra)\
**Replies:** 4\
**Last updated:** [June 28, 2021, 8:28pm UTC](https://root-forum.cern.ch/t/write-ttree-out-to-file-seems-to-corrupt-it/45553 "2021-06-28T20:28:03Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 5.34/36 Platform: cygwin Compiler: 10.2.0 Hi, this is slightly embarrassing because I seem to hit something really basic that I s…

---

## [Is is possible to install ratcage with root 6.24?](https://root-forum.cern.ch/t/is-is-possible-to-install-ratcage-with-root-6-24/45570)

<div class="topic-metadata">

**Author:** [@sarthchoudhary](https://root-forum.cern.ch/u/sarthchoudhary)\
**Replies:** 2\
**Last updated:** [June 28, 2021, 8:00am UTC](https://root-forum.cern.ch/t/is-is-possible-to-install-ratcage-with-root-6-24/45570 "2021-06-28T08:00:34Z")

</div>

Hi Newbie here Problem: I am facing some issue installing ratcage on my system. System: OS: ubuntu 20.04 in a virtual box running on windows 10. I had previously installed root 6.24 in my conda environment. gcc 9.…

---

## [Parallel programing in root](https://root-forum.cern.ch/t/parallel-programing-in-root/45560)

<div class="topic-metadata">

**Author:** [@Mitchem](https://root-forum.cern.ch/u/Mitchem)\
**Replies:** 2\
**Last updated:** [June 28, 2021, 6:38am UTC](https://root-forum.cern.ch/t/parallel-programing-in-root/45560 "2021-06-28T06:38:48Z")

</div>

\_ROOT Version: 6.24/00 \_Platform: Ubuntu 20.04.2 LTS \_Compiler: g++ I want to start out this post by saying I do not know anything about parallel programing other than it lets you run a program using multiple cores. I…

---

## [TH2 polar plot without bin edges](https://root-forum.cern.ch/t/th2-polar-plot-without-bin-edges/45559)

<div class="topic-metadata">

**Author:** [@mweekes1](https://root-forum.cern.ch/u/mweekes1)\
**Replies:** 4\
**Last updated:** [June 26, 2021, 1:59pm UTC](https://root-forum.cern.ch/t/th2-polar-plot-without-bin-edges/45559 "2021-06-26T13:59:02Z")

</div>

Hi, I’d like to plot this TH2F in polar colz mode without the black bin edge lines, for easier visualisation. I haven’t found a successful method in the documentation, does anyone know if there’s a way to do this? Thank…

---

## [Cannot instance cpp class from pyroot script](https://root-forum.cern.ch/t/cannot-instance-cpp-class-from-pyroot-script/45557)

<div class="topic-metadata">

**Author:** [@AConaboy2923](https://root-forum.cern.ch/u/AConaboy2923)\
**Replies:** 5\
**Last updated:** [June 25, 2021, 2:36pm UTC](https://root-forum.cern.ch/t/cannot-instance-cpp-class-from-pyroot-script/45557 "2021-06-25T14:36:08Z")

</div>

Hi, I am trying to instance a ROOT object from a python script. The ROOT object accepts a pointer to another object as a parameter. I thought in pyroot I could just pass the object to the class without any manipulation.…

---

## [Trouble Understanding Minuit2 Output](https://root-forum.cern.ch/t/trouble-understanding-minuit2-output/45522)

<div class="topic-metadata">

**Author:** [@christianwos83](https://root-forum.cern.ch/u/christianwos83)\
**Replies:** 10\
**Last updated:** [June 25, 2021, 5:17am UTC](https://root-forum.cern.ch/t/trouble-understanding-minuit2-output/45522 "2021-06-25T05:17:27Z")

</div>

Hi all, I am running the following chisquared minimization in Minuit2. I know that as it is, Minuit does not converge, but my question is more about how Minuit explores the values of parameters during the process. Here…

---

## [All of my graphs are not shown by using 'same' option](https://root-forum.cern.ch/t/all-of-my-graphs-are-not-shown-by-using-same-option/45541)

<div class="topic-metadata">

**Author:** [@Keyvan\_Tabaei](https://root-forum.cern.ch/u/Keyvan_Tabaei)\
**Replies:** 2\
**Last updated:** [June 24, 2021, 9:32pm UTC](https://root-forum.cern.ch/t/all-of-my-graphs-are-not-shown-by-using-same-option/45541 "2021-06-24T21:32:06Z")

</div>

hi dear experts, i am trying to plot multiple graphs on the same canvas by using the ‘same’ option. all of the graphs are plotted and shown as well as i wanted except one. it is because of its data range there is a…

---

## [Histogram from txt FIle](https://root-forum.cern.ch/t/histogram-from-txt-file/45528)

<div class="topic-metadata">

**Author:** [@TheScientist](https://root-forum.cern.ch/u/TheScientist)\
**Replies:** 3\
**Last updated:** [June 24, 2021, 7:12pm UTC](https://root-forum.cern.ch/t/histogram-from-txt-file/45528 "2021-06-24T19:12:38Z")

</div>

Hello! I have a two column of data: Energy and Flux. I am trying to draw histogram with energy in x-axis and flux in y-axis. However, I am not getting the desired result as I am only getting empty canvas. Here is my cod…

---

## [Getting Histogram from Tree and adding them after Cuts](https://root-forum.cern.ch/t/getting-histogram-from-tree-and-adding-them-after-cuts/45097)

<div class="topic-metadata">

**Author:** [@matt](https://root-forum.cern.ch/u/matt)\
**Replies:** 2\
**Last updated:** [June 24, 2021, 5:26pm UTC](https://root-forum.cern.ch/t/getting-histogram-from-tree-and-adding-them-after-cuts/45097 "2021-06-24T17:26:07Z")

</div>

ROOT Version: 6.18/00 Platform: Ubuntu 20.04 Compiler: Not Provided Hello experts, With reference to this Getting the same histograms after cuts I tried the same, but I’m getting a blank histogram plot in a Canvas.…

---

## [ROOT installation and PyROOT on Windows 10](https://root-forum.cern.ch/t/root-installation-and-pyroot-on-windows-10/45534)

<div class="topic-metadata">

**Author:** [@rms](https://root-forum.cern.ch/u/rms)\
**Replies:** 2\
**Last updated:** [June 24, 2021, 11:34am UTC](https://root-forum.cern.ch/t/root-installation-and-pyroot-on-windows-10/45534 "2021-06-24T11:34:20Z")

</div>

Hi, I have tried reading previous posts, but I am having trouble with PyROOT on Windows 10. When running a python script importing ROOT (Python 3.9.5), it says No module named ‘ROOT’. I downloaded the binary of the late…

---

## [Plotting Histogram from Two Column of Data](https://root-forum.cern.ch/t/plotting-histogram-from-two-column-of-data/45453)

<div class="topic-metadata">

**Author:** [@TheScientist](https://root-forum.cern.ch/u/TheScientist)\
**Replies:** 3\
**Last updated:** [June 24, 2021, 6:41am UTC](https://root-forum.cern.ch/t/plotting-histogram-from-two-column-of-data/45453 "2021-06-24T06:41:58Z")

</div>

I have two column of data - Energy (x-axis) and Flux (y-axis) - in a txt file. I am trying to plot the histogram but I am having trouble in filling up a data. Please let me know the error in my code and how to deal with …

---

## [How to remove legend from my canvas (supplement: it was a stats box)](https://root-forum.cern.ch/t/how-to-remove-legend-from-my-canvas-supplement-it-was-a-stats-box/45508)

<div class="topic-metadata">

**Author:** [@tachyon](https://root-forum.cern.ch/u/tachyon)\
**Replies:** 2\
**Last updated:** [June 23, 2021, 8:08am UTC](https://root-forum.cern.ch/t/how-to-remove-legend-from-my-canvas-supplement-it-was-a-stats-box/45508 "2021-06-23T08:08:17Z")

</div>

Dear Root experts, I wonder how to remove a ‘legend’ from my canvas(or from my histogram). I didn’t set anything about the legend, but Root automatically draw it. How can I remove it? Thanks Please read tips for ef…

---

## [Help with reading a TTree](https://root-forum.cern.ch/t/help-with-reading-a-ttree/45475)

<div class="topic-metadata">

**Author:** [@Natilus](https://root-forum.cern.ch/u/Natilus)\
**Replies:** 4\
**Last updated:** [June 21, 2021, 10:19pm UTC](https://root-forum.cern.ch/t/help-with-reading-a-ttree/45475 "2021-06-21T22:19:51Z")

</div>

Dear experts, I have a problem that is probably very easy to solve but I don’t know how to. I will appreciate if you can help me. In my code, I make a TTree called “CharmoniumTree” and fill it after reading another TTr…

---

## [Saving TH1 histograms in root file with embeded texgt](https://root-forum.cern.ch/t/saving-th1-histograms-in-root-file-with-embeded-texgt/45474)

<div class="topic-metadata">

**Author:** [@luminociter](https://root-forum.cern.ch/u/luminociter)\
**Replies:** 3\
**Last updated:** [June 21, 2021, 4:51pm UTC](https://root-forum.cern.ch/t/saving-th1-histograms-in-root-file-with-embeded-texgt/45474 "2021-06-21T16:51:42Z")

</div>

Dear Rooters, This might be kind of a stupid and awkward question, but is there a way to save text on a histogram (eg a TPaveText object) without generating a TCanvas and a TFrame? I was wondering if there is something …

---

## [Question About Values in Correlation Matrices from Fit of TGraph](https://root-forum.cern.ch/t/question-about-values-in-correlation-matrices-from-fit-of-tgraph/45239)

<div class="topic-metadata">

**Author:** [@Lynne](https://root-forum.cern.ch/u/Lynne)\
**Replies:** 2\
**Last updated:** [June 21, 2021, 8:10am UTC](https://root-forum.cern.ch/t/question-about-values-in-correlation-matrices-from-fit-of-tgraph/45239 "2021-06-21T08:10:33Z")

</div>

Hi, So I am currently trying to fit a large amount of TGraphs with a custom function that is the inbuilt “crystalball” TF1 multiplied by a user defined generalized sigmoid function. I’ve done this and taken the correlat…

---

## [How to do a significance scan (signal-background) from a histogram in a root file](https://root-forum.cern.ch/t/how-to-do-a-significance-scan-signal-background-from-a-histogram-in-a-root-file/45484)

<div class="topic-metadata">

**Author:** [@Elias\_Malwa](https://root-forum.cern.ch/u/Elias_Malwa)\
**Replies:** 1\
**Last updated:** [June 21, 2021, 7:33am UTC](https://root-forum.cern.ch/t/how-to-do-a-significance-scan-signal-background-from-a-histogram-in-a-root-file/45484 "2021-06-21T07:33:12Z")

</div>

\_\_\_Dear Root members, I am new to c++/root and I am trying to write a code which will calculate the significance (of signal to background) by scanning through two figures (signal and background) on same plot. Here’s my…

---

## [Macro for multiple plots in one canvas](https://root-forum.cern.ch/t/macro-for-multiple-plots-in-one-canvas/45456)

<div class="topic-metadata">

**Author:** [@Mustak\_Ali](https://root-forum.cern.ch/u/Mustak_Ali)\
**Replies:** 4\
**Last updated:** [June 19, 2021, 6:52am UTC](https://root-forum.cern.ch/t/macro-for-multiple-plots-in-one-canvas/45456 "2021-06-19T06:52:35Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version: 6.22/06 \_Platform: Ubuntu Compiler: Not Provided Hi All, I want to generate a plot like the attached figure (with common x axis…

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

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