# Newbie

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

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

---

## [Loop in TTree with selection](https://root-forum.cern.ch/t/loop-in-ttree-with-selection/46210)

<div class="topic-metadata">

**Author:** [@PPierre](https://root-forum.cern.ch/u/PPierre)\
**Replies:** 5\
**Last updated:** [September 2, 2021, 8:44am UTC](https://root-forum.cern.ch/t/loop-in-ttree-with-selection/46210 "2021-09-02T08:44:19Z")

</div>

Hi, I am having a hard time with a Tree analysis, if someone can help me please, I will state my case : I have a TTree containing 3 leaves : flux & energy & flag. I would like to do that request in C++ : “Show me all t…

---

## [TTree::Draw to histogram but return a null-pointer \[PYROOT\]](https://root-forum.cern.ch/t/ttree-draw-to-histogram-but-return-a-null-pointer-pyroot/46493)

<div class="topic-metadata">

**Author:** [@chayanit\_nan](https://root-forum.cern.ch/u/chayanit_nan)\
**Replies:** 5\
**Last updated:** [September 2, 2021, 8:14am UTC](https://root-forum.cern.ch/t/ttree-draw-to-histogram-but-return-a-null-pointer-pyroot/46493 "2021-09-02T08:14:04Z")

</div>

Dear experts, I’m trying to draw histogram from TTree using TTree::Draw() in python and running on multiple root files as shown in a loop below. for i in range(1,100): filein = ROOT.TFile.Open("job%i.root"%i) testt…

---

## [Coincidence matrix](https://root-forum.cern.ch/t/coincidence-matrix/46622)

<div class="topic-metadata">

**Author:** [@Saradindu](https://root-forum.cern.ch/u/Saradindu)\
**Replies:** 1\
**Last updated:** [September 2, 2021, 7:03am UTC](https://root-forum.cern.ch/t/coincidence-matrix/46622 "2021-09-02T07:03:52Z")

</div>

I have root program file . I want to make gamma -gamma coincidence matrix from that . Could you please help me in that ? Thanks Saradindu Please read tips for efficient and successful posting and posting code ROOT V…

---

## [Getting data from vector\<double\> branches](https://root-forum.cern.ch/t/getting-data-from-vector-double-branches/33058)

<div class="topic-metadata">

**Author:** [@Nyx](https://root-forum.cern.ch/u/Nyx)\
**Replies:** 9\
**Last updated:** [September 1, 2021, 9:23pm UTC](https://root-forum.cern.ch/t/getting-data-from-vector-double-branches/33058 "2021-09-01T21:23:08Z")

</div>

I have a TTree with different branches like \*Br 7 :branch\_x : vector\<double\> \* \*Entries : 19996000 : Total Size= 282525118 bytes File Size = 36126745 \* \*Baskets …

---

## [Unable to draw interactive plots using jsroot magic command in jupyter](https://root-forum.cern.ch/t/unable-to-draw-interactive-plots-using-jsroot-magic-command-in-jupyter/46499)

<div class="topic-metadata">

**Author:** [@sarthchoudhary](https://root-forum.cern.ch/u/sarthchoudhary)\
**Replies:** 11\
**Last updated:** [September 1, 2021, 2:43pm UTC](https://root-forum.cern.ch/t/unable-to-draw-interactive-plots-using-jsroot-magic-command-in-jupyter/46499 "2021-09-01T14:43:05Z")

</div>

I can draw static plots (with %jsroot off) but not the interactive ones which require magic command %jsroot on. whenever I use the on command all I get is a lot of white space but no plot. Screenshot attached: Plea…

---

## [CMake error while making Garfield](https://root-forum.cern.ch/t/cmake-error-while-making-garfield/46588)

<div class="topic-metadata">

**Author:** [@Lorenzo](https://root-forum.cern.ch/u/Lorenzo)\
**Replies:** 6\
**Last updated:** [September 1, 2021, 8:26am UTC](https://root-forum.cern.ch/t/cmake-error-while-making-garfield/46588 "2021-09-01T08:26:21Z")

</div>

i am trying to install Garfiel++, but when I run cmake i get this error output: \>cmake $GARFIELD\_HOME The CXX compiler identification is GNU 9.3.0 -- The Fortran compiler identification is GNU 9.3.0 -- Check for working…

---

## [Problem with plotting TGraphErrors with ErrorBands](https://root-forum.cern.ch/t/problem-with-plotting-tgrapherrors-with-errorbands/46597)

<div class="topic-metadata">

**Author:** [@beg1nner](https://root-forum.cern.ch/u/beg1nner)\
**Replies:** 1\
**Last updated:** [September 1, 2021, 6:21am UTC](https://root-forum.cern.ch/t/problem-with-plotting-tgrapherrors-with-errorbands/46597 "2021-09-01T06:21:23Z")

</div>

Hi! I am facing a very strange problem and I would appreciate your help. I am trying to plot two TGraphErrors on the same canvas, I tried it with multigraph with Draw(“A3LP”); option and also I tried something like: g…

---

## [How to link fastjet-contrib libraries in a ROOT macro](https://root-forum.cern.ch/t/how-to-link-fastjet-contrib-libraries-in-a-root-macro/46596)

<div class="topic-metadata">

**Author:** [@kbya99](https://root-forum.cern.ch/u/kbya99)\
**Replies:** 3\
**Last updated:** [August 31, 2021, 4:43pm UTC](https://root-forum.cern.ch/t/how-to-link-fastjet-contrib-libraries-in-a-root-macro/46596 "2021-08-31T16:43:52Z")

</div>

Hi, I am trying to use the RecursiveTools, EnergyCorrelator and Nsubjettiness packages from fastjet-contrib. My goal is to calculate these features on jets clustered from tower objects read from a .root file, within a R…

---

## [\*\*\* Break \*\*\* segmentation violation while running macro](https://root-forum.cern.ch/t/break-segmentation-violation-while-running-macro/46541)

<div class="topic-metadata">

**Author:** [@Aya\_Beshr](https://root-forum.cern.ch/u/Aya_Beshr)\
**Replies:** 10\
**Last updated:** [August 31, 2021, 8:25am UTC](https://root-forum.cern.ch/t/break-segmentation-violation-while-running-macro/46541 "2021-08-31T08:25:13Z")

</div>

Hi, I am trying to run a macro test.C at first it compiled and run without any issues. When I add some piece of code from lines 616-750 and lines 798-809, it crashes with segmentation violation. I commented the lines ab…

---

## [Change Polymarkers position in histogram](https://root-forum.cern.ch/t/change-polymarkers-position-in-histogram/46349)

<div class="topic-metadata">

**Author:** [@ilomidze](https://root-forum.cern.ch/u/ilomidze)\
**Replies:** 10\
**Last updated:** [August 31, 2021, 4:09am UTC](https://root-forum.cern.ch/t/change-polymarkers-position-in-histogram/46349 "2021-08-31T04:09:51Z")

</div>

\_ROOT Version: 6.22/08 \_Platform: macosx64 Compiler: Not Provided I have a histogram TH1D \* h. It has polymarker on some position. I want to change that position. Any suggestions/help?

---

## [Problem with drawing lines using TMultiGraph with gPad -\> SetLogy()](https://root-forum.cern.ch/t/problem-with-drawing-lines-using-tmultigraph-with-gpad-setlogy/46453)

<div class="topic-metadata">

**Author:** [@jwruss](https://root-forum.cern.ch/u/jwruss)\
**Replies:** 4\
**Last updated:** [August 28, 2021, 4:13pm UTC](https://root-forum.cern.ch/t/problem-with-drawing-lines-using-tmultigraph-with-gpad-setlogy/46453 "2021-08-28T16:13:27Z")

</div>

I’m not sure if this is a bug or not, but when I run the attached macro, it looks when lines are overlaid on log scale they aren’t drawn completely or there is some sort of background associated with each graph which obs…

---

## [IncrementalExecutor::executeFunction](https://root-forum.cern.ch/t/incrementalexecutor-executefunction/46468)

<div class="topic-metadata">

**Author:** [@Aya\_Beshr](https://root-forum.cern.ch/u/Aya_Beshr)\
**Replies:** 8\
**Last updated:** [August 27, 2021, 5:36pm UTC](https://root-forum.cern.ch/t/incrementalexecutor-executefunction/46468 "2021-08-27T17:36:59Z")

</div>

Dear ROOT experts, I have created a simple macro test.C using MakeClass method doing some plots. However, when I run it using commands: .L test.C test m I get the following error: IncrementalExecutor::executeFunctio…

---

## [Reading a branch entry in a tree \[PyROOT\]](https://root-forum.cern.ch/t/reading-a-branch-entry-in-a-tree-pyroot/46472)

<div class="topic-metadata">

**Author:** [@Cesar1](https://root-forum.cern.ch/u/Cesar1)\
**Replies:** 9\
**Last updated:** [August 27, 2021, 3:43pm UTC](https://root-forum.cern.ch/t/reading-a-branch-entry-in-a-tree-pyroot/46472 "2021-08-27T15:43:02Z")

</div>

Hello Experts, I am trying to calculate the visible mass of my MC data that is stored in a ntuple, but i am having a problem. I wrote the code below to read the Tau Energy of an event, but it’s returning me zero all the…

---

## [Installation issues on MacOS](https://root-forum.cern.ch/t/installation-issues-on-macos/46479)

<div class="topic-metadata">

**Author:** [@RPaun](https://root-forum.cern.ch/u/RPaun)\
**Replies:** 4\
**Last updated:** [August 27, 2021, 9:27am UTC](https://root-forum.cern.ch/t/installation-issues-on-macos/46479 "2021-08-27T09:27:30Z")

</div>

Hi all, I’m having difficulty installing ROOT from source binaries on MacOS Big Sur 11.5.2. At some point, the installation crashes with these errors: \*\*\_ \[ 75%\] \*\*Generating G\_\_Core.cxx, ../lib/Core.pcm\*\* \*\*While bui…

---

## [Minuit1 vs Minuit2](https://root-forum.cern.ch/t/minuit1-vs-minuit2/46463)

<div class="topic-metadata">

**Author:** [@Daniel\_Duque](https://root-forum.cern.ch/u/Daniel_Duque)\
**Replies:** 2\
**Last updated:** [August 27, 2021, 9:20am UTC](https://root-forum.cern.ch/t/minuit1-vs-minuit2/46463 "2021-08-27T09:20:01Z")

</div>

I am trying to port some code from Minuit1 to Minuit2. Some times I do get the exact same result, but some others I don’t. I believe this is because I have not set everything in Minuit2 to be exactly the same as Minuit1. …

---

## [Can't open macros with ROOT](https://root-forum.cern.ch/t/cant-open-macros-with-root/46429)

<div class="topic-metadata">

**Author:** [@Leonardo](https://root-forum.cern.ch/u/Leonardo)\
**Replies:** 6\
**Last updated:** [August 26, 2021, 7:33am UTC](https://root-forum.cern.ch/t/cant-open-macros-with-root/46429 "2021-08-26T07:33:58Z")

</div>

Hi everyone I just installed ROOT 6.24/02 for Mac OS BigSur v11.4. There are no error messages when I launch ROOT, but when I try to open any macro I receive the next error message: Processing main.cpp… Error in TAppl…

---

## [Looping over dir inside a root file](https://root-forum.cern.ch/t/looping-over-dir-inside-a-root-file/46410)

<div class="topic-metadata">

**Author:** [@Aman\_Upadhyay](https://root-forum.cern.ch/u/Aman_Upadhyay)\
**Replies:** 4\
**Last updated:** [August 25, 2021, 7:50am UTC](https://root-forum.cern.ch/t/looping-over-dir-inside-a-root-file/46410 "2021-08-25T07:50:58Z")

</div>

Hello Rooters, I have a root file with many directories with names DF\_XXXXX, as shown in the attached image. They all have parts of the same tree. I am not sure why this tree was split like this, but now I have this fil…

---

## [Filling a histogram with a ntuple data \[PyROOT\]](https://root-forum.cern.ch/t/filling-a-histogram-with-a-ntuple-data-pyroot/46416)

<div class="topic-metadata">

**Author:** [@Cesar1](https://root-forum.cern.ch/u/Cesar1)\
**Replies:** 5\
**Last updated:** [August 24, 2021, 4:13pm UTC](https://root-forum.cern.ch/t/filling-a-histogram-with-a-ntuple-data-pyroot/46416 "2021-08-24T16:13:46Z")

</div>

Dear experts, I am trying to take the data from a ntuple and fill a histogram with it using pyroot. Everything that i found until now is on c++, and i wrote my script based on that. But i am having trouble with the .Se…

---

## [Error in the operation of the certificate on the AMI](https://root-forum.cern.ch/t/error-in-the-operation-of-the-certificate-on-the-ami/46216)

<div class="topic-metadata">

**Author:** [@ogavva](https://root-forum.cern.ch/u/ogavva)\
**Replies:** 1\
**Last updated:** [August 24, 2021, 9:20am UTC](https://root-forum.cern.ch/t/error-in-the-operation-of-the-certificate-on-the-ami/46216 "2021-08-24T09:20:30Z")

</div>

I’m trying to log in to site AMI, but this error comes out: Authentication failed. Client DN in session: /DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=ogavva/CN=849825/CN=Oxana Gavva. Issuer DN in session: /DC=ch/DC=cern/…

---

## [Copying a histogram to a branch of a new root file](https://root-forum.cern.ch/t/copying-a-histogram-to-a-branch-of-a-new-root-file/46292)

<div class="topic-metadata">

**Author:** [@Reshma246](https://root-forum.cern.ch/u/Reshma246)\
**Replies:** 2\
**Last updated:** [August 24, 2021, 9:16am UTC](https://root-forum.cern.ch/t/copying-a-histogram-to-a-branch-of-a-new-root-file/46292 "2021-08-24T09:16:17Z")

</div>

I had a question which might appear simple to many experienced users. I have a root file and a histogram in it.I want to create a separate new root file, add a tree in it and then a branch in it.Then I wish to copy my h…

---

## [Scan function only shows unique data values?](https://root-forum.cern.ch/t/scan-function-only-shows-unique-data-values/46071)

<div class="topic-metadata">

**Author:** [@nklaus](https://root-forum.cern.ch/u/nklaus)\
**Replies:** 4\
**Last updated:** [August 24, 2021, 7:28am UTC](https://root-forum.cern.ch/t/scan-function-only-shows-unique-data-values/46071 "2021-08-24T07:28:00Z")

</div>

Hello! I am new to ROOT and I learned how to use the Scan function to print the data entries of a leaf. I noticed, however, when I use Scan on an entire TTree then the data is printed along with the number of instances …

---

## [Creating a better contour plot](https://root-forum.cern.ch/t/creating-a-better-contour-plot/46373)

<div class="topic-metadata">

**Author:** [@fabstr](https://root-forum.cern.ch/u/fabstr)\
**Replies:** 8\
**Last updated:** [August 21, 2021, 6:33pm UTC](https://root-forum.cern.ch/t/creating-a-better-contour-plot/46373 "2021-08-21T18:33:09Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.22/00 Platform: Ubuntu 20.04.1 LTS (WSL2) Compiler: GNU or GCC Hello, I have created a contour plot of the magnetic flux dens…

---

## [Color of the confidence Interval in TRatioPlot](https://root-forum.cern.ch/t/color-of-the-confidence-interval-in-tratioplot/46351)

<div class="topic-metadata">

**Author:** [@Chandradoy\_Chatterje](https://root-forum.cern.ch/u/Chandradoy_Chatterje)\
**Replies:** 8\
**Last updated:** [August 19, 2021, 1:19pm UTC](https://root-forum.cern.ch/t/color-of-the-confidence-interval-in-tratioplot/46351 "2021-08-19T13:19:31Z")

</div>

Dear ROOT experts, I am using the TRatioPlot to see the fit residual of a fitted histogram. I was checking the code of the color and I found in line 622 and 623 of TRatioPlot.cxx the color of the intervals are swapped. …

---

## [PyROOT and TUnfold](https://root-forum.cern.ch/t/pyroot-and-tunfold/32926)

<div class="topic-metadata">

**Author:** [@AWildridge](https://root-forum.cern.ch/u/AWildridge)\
**Replies:** 7\
**Last updated:** [August 16, 2021, 9:01am UTC](https://root-forum.cern.ch/t/pyroot-and-tunfold/32926 "2021-08-16T09:01:35Z")

</div>

Hello experts, I am trying to use TUnfold within PyROOT and am having difficulties in using the ScanLcurve method with regards to the TGraph \*\* argument. When I create a TGraph in python and then try passing it with ROO…

---

## [How to add a zoomed-in inset to a histogram on a canvas?](https://root-forum.cern.ch/t/how-to-add-a-zoomed-in-inset-to-a-histogram-on-a-canvas/46356)

<div class="topic-metadata">

**Author:** [@eggsAndCoffee](https://root-forum.cern.ch/u/eggsAndCoffee)\
**Replies:** 1\
**Last updated:** [August 20, 2021, 1:56am UTC](https://root-forum.cern.ch/t/how-to-add-a-zoomed-in-inset-to-a-histogram-on-a-canvas/46356 "2021-08-20T01:56:41Z")

</div>

Hello, I have several root files that each contain a single TCanvas, and each TCanvas contains a single TH1D histogram. I would like to somehow add an inset image to the canvas that shows a zoomed-in region of a subset …

---

## [I can’t fit with TF2](https://root-forum.cern.ch/t/i-can-t-fit-with-tf2/46306)

<div class="topic-metadata">

**Author:** [@SaraP99](https://root-forum.cern.ch/u/SaraP99)\
**Replies:** 6\
**Last updated:** [August 17, 2021, 9:22pm UTC](https://root-forum.cern.ch/t/i-can-t-fit-with-tf2/46306 "2021-08-17T21:22:23Z")

</div>

I’m analyzing data representing the coordinates of a star over the year. I write the code creating a graph with TGraphError. Then I want to fit my data with the generic conic equation but when I define the function for …

---

## [Drawing ROOT Histogram from File is empty](https://root-forum.cern.ch/t/drawing-root-histogram-from-file-is-empty/46314)

<div class="topic-metadata">

**Author:** [@kiesling](https://root-forum.cern.ch/u/kiesling)\
**Replies:** 4\
**Last updated:** [August 16, 2021, 2:22pm UTC](https://root-forum.cern.ch/t/drawing-root-histogram-from-file-is-empty/46314 "2021-08-16T14:22:36Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.20/04 Platform: Ubuntu18.04 Compiler: gcc I read histogram from a root file. I make sure that the title and the number of entrie…

---

## [How to set PYTHONPATH when I obtain "Import ROOT error . No module found"](https://root-forum.cern.ch/t/how-to-set-pythonpath-when-i-obtain-import-root-error-no-module-found/39763)

<div class="topic-metadata">

**Author:** [@Liam\_hayden](https://root-forum.cern.ch/u/Liam_hayden)\
**Replies:** 4\
**Last updated:** [August 17, 2021, 6:52am UTC](https://root-forum.cern.ch/t/how-to-set-pythonpath-when-i-obtain-import-root-error-no-module-found/39763 "2021-08-17T06:52:08Z")

</div>

\_Please read tips for efficient and successful posting and \[posting code\](https://root-forum.cern.ch/t/posting-code-read-this-first/282

---

## [Adding contour lines into my contour plot](https://root-forum.cern.ch/t/adding-contour-lines-into-my-contour-plot/46321)

<div class="topic-metadata">

**Author:** [@fabstr](https://root-forum.cern.ch/u/fabstr)\
**Replies:** 2\
**Last updated:** [August 16, 2021, 1:37pm UTC](https://root-forum.cern.ch/t/adding-contour-lines-into-my-contour-plot/46321 "2021-08-16T13:37:37Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.22/00 Platform: Ubuntu 20.04.1 LTS (WSL2) Compiler: GNU or GCC Hello, I have already created a contour plot with the magnetic …

---

## [Jsroot simple gui with custom buttons](https://root-forum.cern.ch/t/jsroot-simple-gui-with-custom-buttons/46151)

<div class="topic-metadata">

**Author:** [@AndrejL](https://root-forum.cern.ch/u/AndrejL)\
**Replies:** 3\
**Last updated:** [August 13, 2021, 8:12am UTC](https://root-forum.cern.ch/t/jsroot-simple-gui-with-custom-buttons/46151 "2021-08-13T08:12:06Z")

</div>

Dear experts, I would like to know how to add buttons with js functions to the jsroot open file page that you get when using JSROOT.buildGUI(“div”). Please see the image. I am trying to use this example JavaScript ROOT…

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

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