# Newbie

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

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

---

## [Get() on lxplus](https://root-forum.cern.ch/t/get-on-lxplus/49035)

<div class="topic-metadata">

**Author:** [@Wurzel](https://root-forum.cern.ch/u/Wurzel)\
**Replies:** 7\
**Last updated:** [March 8, 2022, 11:40pm UTC](https://root-forum.cern.ch/t/get-on-lxplus/49035 "2022-03-08T23:40:30Z")

</div>

Hello, after writing a script with pyroot that runs as intended on my local machine, I have problems running it on lxplus. I essentially want to draw all histograms in a given directory inside a file. To get the names o…

---

## [Need code for .lhe file reading and ploting graphs for eta and pt](https://root-forum.cern.ch/t/need-code-for-lhe-file-reading-and-ploting-graphs-for-eta-and-pt/49099)

<div class="topic-metadata">

**Author:** [@Anees\_Khan](https://root-forum.cern.ch/u/Anees_Khan)\
**Replies:** 2\
**Last updated:** [March 9, 2022, 10:39am UTC](https://root-forum.cern.ch/t/need-code-for-lhe-file-reading-and-ploting-graphs-for-eta-and-pt/49099 "2022-03-09T10:39:17Z")

</div>

Hello. Anybody have macro for LHE file reading and plot particle eta and Pt ? If someone have please share. Thanks

---

## [Problem into attaching a file in the forum discussion](https://root-forum.cern.ch/t/problem-into-attaching-a-file-in-the-forum-discussion/48724)

<div class="topic-metadata">

**Author:** [@Chris90](https://root-forum.cern.ch/u/Chris90)\
**Replies:** 2\
**Last updated:** [March 8, 2022, 3:17pm UTC](https://root-forum.cern.ch/t/problem-into-attaching-a-file-in-the-forum-discussion/48724 "2022-03-08T15:17:05Z")

</div>

Dear all, I’m a new user and I just joined the community. In the first discussion that I opened, I was asked to attach a file and I can’t do it as a new user. Any suggestion, please, to solve this issue related to my in…

---

## [Throwing an instance of 'std::length\_error'](https://root-forum.cern.ch/t/throwing-an-instance-of-std-length-error/48872)

<div class="topic-metadata">

**Author:** [@subham73](https://root-forum.cern.ch/u/subham73)\
**Replies:** 2\
**Last updated:** [March 7, 2022, 11:20am UTC](https://root-forum.cern.ch/t/throwing-an-instance-of-std-length-error/48872 "2022-03-07T11:20:50Z")

</div>

I’m trying to convert RooStats tutorial “rs101\_limitexample.C” to python but getting terminate called after throwing an instance of 'std::length\_error' what(): vector::reserve \*\*\* Break \*\*\* abort at the end of the exe…

---

## [Configure: error: ROOT could be initialised](https://root-forum.cern.ch/t/configure-error-root-could-be-initialised/45647)

<div class="topic-metadata">

**Author:** [@wsy-123](https://root-forum.cern.ch/u/wsy-123)\
**Replies:** 13\
**Last updated:** [March 7, 2022, 3:40am UTC](https://root-forum.cern.ch/t/configure-error-root-could-be-initialised/45647 "2022-03-07T03:40:56Z")

</div>

When I use the command of ./configure during the process of install checkmate , this error appeared configure: error: ROOT could be initialised but apparently it has been configured without Python functionality. Checkou…

---

## [Inconsistencies of number of entries for each branch](https://root-forum.cern.ch/t/inconsistencies-of-number-of-entries-for-each-branch/49049)

<div class="topic-metadata">

**Author:** [@CzTee](https://root-forum.cern.ch/u/CzTee)\
**Replies:** 2\
**Last updated:** [March 5, 2022, 7:27pm UTC](https://root-forum.cern.ch/t/inconsistencies-of-number-of-entries-for-each-branch/49049 "2022-03-05T19:27:40Z")

</div>

Please read tips for efficient and successful posting and posting code I am reading a root file using two methods: Print the branches of the TTree named “Events” Use TBrowser and check the number of entries The roo…

---

## [TMap with Int\_t](https://root-forum.cern.ch/t/tmap-with-int-t/49046)

<div class="topic-metadata">

**Author:** [@acgc99](https://root-forum.cern.ch/u/acgc99)\
**Replies:** 1\
**Last updated:** [March 5, 2022, 11:41am UTC](https://root-forum.cern.ch/t/tmap-with-int-t/49046 "2022-03-05T11:41:26Z")

</div>

Hi, It is the first time I use TMap, so I’m not sure if I’m using it properly or is better to use std::map. The question is that if I do: TMap\* map = new TMap(); map-\>Add("R", 3); I get: In file included from in…

---

## [Memory leak when projecting a THnSparseD](https://root-forum.cern.ch/t/memory-leak-when-projecting-a-thnsparsed/48853)

<div class="topic-metadata">

**Author:** [@Eddy\_Glezz](https://root-forum.cern.ch/u/Eddy_Glezz)\
**Replies:** 2\
**Last updated:** [March 4, 2022, 9:53am UTC](https://root-forum.cern.ch/t/memory-leak-when-projecting-a-thnsparsed/48853 "2022-03-04T09:53:41Z")

</div>

Hi, I want to project a many dimensional sparse histogram to 1 dimensional sparse histo. While doing this I found a memory leak in my program when calling the Projection function. I provide with a simple code example …

---

## [Loop over leaves from root file](https://root-forum.cern.ch/t/loop-over-leaves-from-root-file/48575)

<div class="topic-metadata">

**Author:** [@eddymaoui](https://root-forum.cern.ch/u/eddymaoui)\
**Replies:** 3\
**Last updated:** [March 3, 2022, 8:33pm UTC](https://root-forum.cern.ch/t/loop-over-leaves-from-root-file/48575 "2022-03-03T20:33:31Z")

</div>

I am trying to loop over leaves from a root file such as most of those leaves are declared as vectors T-\>GetEntry(i) // show some errors Note that the objective of this script is to calculate the number of hits by an e…

---

## [Setting up an IDE for ROOT](https://root-forum.cern.ch/t/setting-up-an-ide-for-root/35875)

<div class="topic-metadata">

**Author:** [@renyhp](https://root-forum.cern.ch/u/renyhp)\
**Replies:** 9\
**Last updated:** [March 3, 2022, 6:56pm UTC](https://root-forum.cern.ch/t/setting-up-an-ide-for-root/35875 "2022-03-03T18:56:54Z")

</div>

Hello everyone, I have worked a bit with ROOT macros and always used simple text editors. I would really love to setup an IDE, but I am not very familiar with similar tasks. I have found this post by @behrenhoff suggest…

---

## [Multiple (similar) plots on Divided TCanvas](https://root-forum.cern.ch/t/multiple-similar-plots-on-divided-tcanvas/49004)

<div class="topic-metadata">

**Author:** [@JunKai](https://root-forum.cern.ch/u/JunKai)\
**Replies:** 5\
**Last updated:** [March 3, 2022, 11:14am UTC](https://root-forum.cern.ch/t/multiple-similar-plots-on-divided-tcanvas/49004 "2022-03-03T11:14:04Z")

</div>

Hi all, I am using PyROOT to plot mutiple (similar) histograms using TCanvas:: Divide(): I used TF1 for testing (see the following code). import ROOT as r N = 2 canvas = r.TCanvas("canvas object name","function",600,4…

---

## [Problem with reading complex data structure as a sub-branch of a root tree](https://root-forum.cern.ch/t/problem-with-reading-complex-data-structure-as-a-sub-branch-of-a-root-tree/48765)

<div class="topic-metadata">

**Author:** [@Fabio\_Crespi](https://root-forum.cern.ch/u/Fabio_Crespi)\
**Replies:** 7\
**Last updated:** [March 3, 2022, 9:06am UTC](https://root-forum.cern.ch/t/problem-with-reading-complex-data-structure-as-a-sub-branch-of-a-root-tree/48765 "2022-03-03T09:06:49Z")

</div>

We are trying to read data from a .root file with a tree having a sub-branch that is a vector\<g2IntPt\> xtals\_intpts\[kMaxxtals\]. We are doing so by producing “.C” and “.h” files using datatree-\>MakeClass(“analysis”) a…

---

## [Multithreading on Minuit](https://root-forum.cern.ch/t/multithreading-on-minuit/46225)

<div class="topic-metadata">

**Author:** [@Mattia\_Lopresti](https://root-forum.cern.ch/u/Mattia_Lopresti)\
**Replies:** 16\
**Last updated:** [March 2, 2022, 2:06pm UTC](https://root-forum.cern.ch/t/multithreading-on-minuit/46225 "2022-03-02T14:06:25Z")

</div>

Dear all, currently, I am working on a macro in which Minuit/Migrad is the default minimization engine for fitting and with big data matrices it is really slow. On both this forum, on many .ppt files across the internet…

---

## [Vim keybinding for ROOT in interactive mode](https://root-forum.cern.ch/t/vim-keybinding-for-root-in-interactive-mode/48948)

<div class="topic-metadata">

**Author:** [@LongHoa](https://root-forum.cern.ch/u/LongHoa)\
**Replies:** 2\
**Last updated:** [March 1, 2022, 7:14am UTC](https://root-forum.cern.ch/t/vim-keybinding-for-root-in-interactive-mode/48948 "2022-03-01T07:14:25Z")

</div>

Dear expert, In the bash shell, I can enable the vi mode for modify text using set -o vi I would like to ask if ROOT also support a vi mode for editing the command in the interactive mode. Thank you. Please read ti…

---

## [How to add multiple files created over multi threads in TThread into one file](https://root-forum.cern.ch/t/how-to-add-multiple-files-created-over-multi-threads-in-tthread-into-one-file/48918)

<div class="topic-metadata">

**Author:** [@Siddharth\_Parashari](https://root-forum.cern.ch/u/Siddharth_Parashari)\
**Replies:** 1\
**Last updated:** [February 28, 2022, 12:12pm UTC](https://root-forum.cern.ch/t/how-to-add-multiple-files-created-over-multi-threads-in-tthread-into-one-file/48918 "2022-02-28T12:12:53Z")

</div>

Hi, I am using TThreads to perform a calibration process over multiple threads. My primary input file is around 5 GB and I am spawning my threads to fill the histograms over 1024 channels quickly and then calibrating th…

---

## [How to merge TFiles created over different threads](https://root-forum.cern.ch/t/how-to-merge-tfiles-created-over-different-threads/48834)

<div class="topic-metadata">

**Author:** [@Siddharth\_Parashari](https://root-forum.cern.ch/u/Siddharth_Parashari)\
**Replies:** 4\
**Last updated:** [February 28, 2022, 11:47am UTC](https://root-forum.cern.ch/t/how-to-merge-tfiles-created-over-different-threads/48834 "2022-02-28T11:47:36Z")

</div>

Hi, I am writing multiple TFiles created over different threads. Now in the end I want to merge all these files into one to be processed in another script. What would be the best way to do that?? Thanks. ROOT Version: …

---

## [How to run Unit Test for roofit](https://root-forum.cern.ch/t/how-to-run-unit-test-for-roofit/48969)

<div class="topic-metadata">

**Author:** [@subham73](https://root-forum.cern.ch/u/subham73)\
**Replies:** 1\
**Last updated:** [February 28, 2022, 7:07am UTC](https://root-forum.cern.ch/t/how-to-run-unit-test-for-roofit/48969 "2022-02-28T07:07:57Z")

</div>

I have build root from source with the testing . Im not able to know how to run unit test for RooFit alone. Now i am just using ctest -j4 , which is running all the tests. ROOT Version: Not Provided Platform: Ubuntu …

---

## [One out of four TCanvas missing](https://root-forum.cern.ch/t/one-out-of-four-tcanvas-missing/48966)

<div class="topic-metadata">

**Author:** [@CzTee](https://root-forum.cern.ch/u/CzTee)\
**Replies:** 1\
**Last updated:** [February 28, 2022, 3:55am UTC](https://root-forum.cern.ch/t/one-out-of-four-tcanvas-missing/48966 "2022-02-28T03:55:16Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.24/02 Platform: Ubuntu Compiler: Not Provided I wish to create 4 different TCanvas and draw histograms on each of them separate…

---

## [Crash in a little code](https://root-forum.cern.ch/t/crash-in-a-little-code/48916)

<div class="topic-metadata">

**Author:** [@Dil](https://root-forum.cern.ch/u/Dil)\
**Replies:** 3\
**Last updated:** [February 23, 2022, 12:21pm UTC](https://root-forum.cern.ch/t/crash-in-a-little-code/48916 "2022-02-23T12:21:16Z")

</div>

Hello Rooters, Could you please help me to find why I am getting a crash in this little code? #include "Normalized\_factor.hpp" #include \<TFile.h\> #include \<TH1.h\> #include \<TH1F.h\> #include \<TCanvas.h\> #include \<TLegen…

---

## [How to set range of X-axis in multigraph](https://root-forum.cern.ch/t/how-to-set-range-of-x-axis-in-multigraph/48907)

<div class="topic-metadata">

**Author:** [@Anees\_Khan](https://root-forum.cern.ch/u/Anees_Khan)\
**Replies:** 7\
**Last updated:** [February 23, 2022, 7:28am UTC](https://root-forum.cern.ch/t/how-to-set-range-of-x-axis-in-multigraph/48907 "2022-02-23T07:28:10Z")

</div>

How to set range of X-axis as 0.114 0.116 0.118 0.12. Please need quick guide if possible. Thanks.

---

## [THttpServer with FastCGI](https://root-forum.cern.ch/t/thttpserver-with-fastcgi/48917)

<div class="topic-metadata">

**Author:** [@hohshita](https://root-forum.cern.ch/u/hohshita)\
**Replies:** 1\
**Last updated:** [February 23, 2022, 6:55am UTC](https://root-forum.cern.ch/t/thttpserver-with-fastcgi/48917 "2022-02-23T06:55:53Z")

</div>

Dear all, I’d like to use THttpServer with FastCGI. After source build with cmake option of ‘-Dfcgi=ON’, I executed a HTTP server example (‘$ROOTSYS/tutorials/http/httpserver.C’). In the case of the original, some ROO…

---

## [I created a memory leak?](https://root-forum.cern.ch/t/i-created-a-memory-leak/48887)

<div class="topic-metadata">

**Author:** [@NikkieD](https://root-forum.cern.ch/u/NikkieD)\
**Replies:** 9\
**Last updated:** [February 22, 2022, 10:15am UTC](https://root-forum.cern.ch/t/i-created-a-memory-leak/48887 "2022-02-22T10:15:09Z")

</div>

Dear All, I think I created a memory leak, in any case, I’m sure that I created a mess, so hopefully you can help me :slight\_smile: I’m trying to plot data from several .csv files that contain time-stamped data from di…

---

## [Extended fit with RooHistPdf results in 'function value is NAN'](https://root-forum.cern.ch/t/extended-fit-with-roohistpdf-results-in-function-value-is-nan/48881)

<div class="topic-metadata">

**Author:** [@khsmith](https://root-forum.cern.ch/u/khsmith)\
**Replies:** 1\
**Last updated:** [February 21, 2022, 10:50am UTC](https://root-forum.cern.ch/t/extended-fit-with-roohistpdf-results-in-function-value-is-nan/48881 "2022-02-21T10:50:20Z")

</div>

ROOT Version: 6.24 Platform: Red Hat Enterprise Linux 7.9 Compiler: GCC 10.2.0 Dear experts, I am trying to create a composite PDF from two RooHistPdf’s and then perform a fit to a RooDataHist. Each RooHistPdf is …

---

## [How to draw a graph of crossection with uncertainies showing by color](https://root-forum.cern.ch/t/how-to-draw-a-graph-of-crossection-with-uncertainies-showing-by-color/48820)

<div class="topic-metadata">

**Author:** [@Anees\_Khan](https://root-forum.cern.ch/u/Anees_Khan)\
**Replies:** 22\
**Last updated:** [February 20, 2022, 4:52pm UTC](https://root-forum.cern.ch/t/how-to-draw-a-graph-of-crossection-with-uncertainies-showing-by-color/48820 "2022-02-20T16:52:43Z")

</div>

How to draw a line at some specific value of cross-section at x-axis having a color region showing uncertainties ? I am new so i can’t be able to add picture of graph.if anyone know please help me. Thanks

---

## [Compiling Macro Error Linking Issue](https://root-forum.cern.ch/t/compiling-macro-error-linking-issue/48706)

<div class="topic-metadata">

**Author:** [@Bisness36](https://root-forum.cern.ch/u/Bisness36)\
**Replies:** 6\
**Last updated:** [February 19, 2022, 8:19pm UTC](https://root-forum.cern.ch/t/compiling-macro-error-linking-issue/48706 "2022-02-19T20:19:08Z")

</div>

Hi I recently downloaded the ROOT 6.24.06 Windows binary .exe with a Visual Studio 2022 as my compiler. I am new to both Root and c++ in general attempting to compile a macro that had been sent to me by others who had be…

---

## [Internal vs External covariance matrices](https://root-forum.cern.ch/t/internal-vs-external-covariance-matrices/48841)

<div class="topic-metadata">

**Author:** [@tappourc](https://root-forum.cern.ch/u/tappourc)\
**Replies:** 2\
**Last updated:** [February 18, 2022, 1:40pm UTC](https://root-forum.cern.ch/t/internal-vs-external-covariance-matrices/48841 "2022-02-18T13:40:22Z")

</div>

Hi guys, In Minuit2, we set limits to some parameters avoiding some parameters to go wild outside the boundaries. We noticed that the internal covariance matrix when used would return error bars that would scale with t…

---

## [Help with plot conversion and zooming](https://root-forum.cern.ch/t/help-with-plot-conversion-and-zooming/48827)

<div class="topic-metadata">

**Author:** [@Nisha](https://root-forum.cern.ch/u/Nisha)\
**Replies:** 2\
**Last updated:** [February 18, 2022, 1:37am UTC](https://root-forum.cern.ch/t/help-with-plot-conversion-and-zooming/48827 "2022-02-18T01:37:06Z")

</div>

Hello, I am in the process of learning root. I came across the following issues I am having a little trouble with. I have a histogram with multiple peaks, Is there a way to convert the histogram to a graph? Can anyone…

---

## [Write .txt file by TFile](https://root-forum.cern.ch/t/write-txt-file-by-tfile/48777)

<div class="topic-metadata">

**Author:** [@Sima\_Bashiri](https://root-forum.cern.ch/u/Sima_Bashiri)\
**Replies:** 7\
**Last updated:** [February 15, 2022, 2:33pm UTC](https://root-forum.cern.ch/t/write-txt-file-by-tfile/48777 "2022-02-15T14:33:53Z")

</div>

Please read tips for efficient and successful posting and posting code Hi, I want to create a .txt file, then write a number to it using TFile. How can I do this? Thanks in Advance, \_ROOT Version:6.22 Platform: Not…

---

## [Errors Installing ROOT with TMVA SOFIE on Mac OS](https://root-forum.cern.ch/t/errors-installing-root-with-tmva-sofie-on-mac-os/48783)

<div class="topic-metadata">

**Author:** [@dilne](https://root-forum.cern.ch/u/dilne)\
**Replies:** 3\
**Last updated:** [February 15, 2022, 8:33am UTC](https://root-forum.cern.ch/t/errors-installing-root-with-tmva-sofie-on-mac-os/48783 "2022-02-15T08:33:08Z")

</div>

Hi, I’m trying to install ROOT with TMVA SOFIE, however I’m met with an error before building. Initially, I did the following line-by-line to install protobuf: brew update brew upgrade brew install protobuf brew upgra…

---

## [Doubt with ROOT and M1 Mac](https://root-forum.cern.ch/t/doubt-with-root-and-m1-mac/42467)

<div class="topic-metadata">

**Author:** [@VicenteGT](https://root-forum.cern.ch/u/VicenteGT)\
**Replies:** 15\
**Last updated:** [February 14, 2022, 4:19pm UTC](https://root-forum.cern.ch/t/doubt-with-root-and-m1-mac/42467 "2022-02-14T16:19:06Z")

</div>

Hi, I just started my PhD in Nuclear Physics and I’m thinking about buy a new pc, like the new Mac, but I’m not sure if ROOT actually work for OS11 Big Sur with M1 processor. All info related to that will help. Thanks! …

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

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