# Newbie

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

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

---

## [How to make histogram in root from excel data?](https://root-forum.cern.ch/t/how-to-make-histogram-in-root-from-excel-data/42223)

<div class="topic-metadata">

**Author:** [@Rabiya](https://root-forum.cern.ch/u/Rabiya)\
**Replies:** 5\
**Last updated:** [November 24, 2020, 4:52pm UTC](https://root-forum.cern.ch/t/how-to-make-histogram-in-root-from-excel-data/42223 "2020-11-24T16:52:46Z")

</div>

\_\_\_how to make histogram in root from excel data??? \_

---

## [Help in program which read a data from excel file](https://root-forum.cern.ch/t/help-in-program-which-read-a-data-from-excel-file/42224)

<div class="topic-metadata">

**Author:** [@Asad\_Munir](https://root-forum.cern.ch/u/Asad_Munir)\
**Replies:** 3\
**Last updated:** [November 24, 2020, 4:14pm UTC](https://root-forum.cern.ch/t/help-in-program-which-read-a-data-from-excel-file/42224 "2020-11-24T16:14:09Z")

</div>

Hi All, I need a c++ program which read a data from excel file and and make a histogram on root. I shall be thankful to you thanks

---

## [How to use "Form" command in TString class](https://root-forum.cern.ch/t/how-to-use-form-command-in-tstring-class/42421)

<div class="topic-metadata">

**Author:** [@meixue](https://root-forum.cern.ch/u/meixue)\
**Replies:** 1\
**Last updated:** [November 24, 2020, 3:45pm UTC](https://root-forum.cern.ch/t/how-to-use-form-command-in-tstring-class/42421 "2020-11-24T15:45:27Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided What is the meaning of the “Form” command in the class TString? like…

---

## [Memory leak relating to TFiles?](https://root-forum.cern.ch/t/memory-leak-relating-to-tfiles/41990)

<div class="topic-metadata">

**Author:** [@jwruss](https://root-forum.cern.ch/u/jwruss)\
**Replies:** 20\
**Last updated:** [November 21, 2020, 3:14pm UTC](https://root-forum.cern.ch/t/memory-leak-relating-to-tfiles/41990 "2020-11-21T15:14:48Z")

</div>

In an effort to save processing time in the following project: test\_map\_pointing.zip (28.3 KB) I created the files “makeAntSphericalCosineProductsFiles.cxx” and “makeDeltaTMapFiles.cxx” to generate TFiles containing hi…

---

## [Error with TH1::GetEntries()](https://root-forum.cern.ch/t/error-with-th1-getentries/42385)

<div class="topic-metadata">

**Author:** [@hammiu](https://root-forum.cern.ch/u/hammiu)\
**Replies:** 2\
**Last updated:** [November 21, 2020, 2:16pm UTC](https://root-forum.cern.ch/t/error-with-th1-getentries/42385 "2020-11-21T14:16:54Z")

</div>

Hi everyone. I want to return the entries of my histogram, but I see that it return not correct result. #include \<iostream\> #include \<TH1.h\> using namespace std; void anh() { delete gROOT-\>FindObject("h"); //dele…

---

## [Segmentation violation - Geant4 MT Build + FairRunSim](https://root-forum.cern.ch/t/segmentation-violation-geant4-mt-build-fairrunsim/42376)

<div class="topic-metadata">

**Author:** [@aleksey](https://root-forum.cern.ch/u/aleksey)\
**Replies:** 2\
**Last updated:** [November 20, 2020, 6:10pm UTC](https://root-forum.cern.ch/t/segmentation-violation-geant4-mt-build-fairrunsim/42376 "2020-11-20T18:10:11Z")

</div>

Hi, everyone. I have some segmentation violation when i use FairRunSim and Geant4 MT build. I have segmentation violation in both modes - MT and not. Could anyone prompt place of problem based on stack trace? Thank you…

---

## [CMake macros/functions](https://root-forum.cern.ch/t/cmake-macros-functions/42365)

<div class="topic-metadata">

**Author:** [@kurbatov1](https://root-forum.cern.ch/u/kurbatov1)\
**Replies:** 1\
**Last updated:** [November 19, 2020, 9:33am UTC](https://root-forum.cern.ch/t/cmake-macros-functions/42365 "2020-11-19T09:33:47Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version:6.22/01 \_Platform:18.04.1-Ubuntu \_Compiler:g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 Where may I find a list of all CMake macros/fu…

---

## [Plotting multiple histograms on the same canvas in PyROOT Jupyter notebook](https://root-forum.cern.ch/t/plotting-multiple-histograms-on-the-same-canvas-in-pyroot-jupyter-notebook/42356)

<div class="topic-metadata">

**Author:** [@slipper](https://root-forum.cern.ch/u/slipper)\
**Replies:** 2\
**Last updated:** [November 19, 2020, 9:24am UTC](https://root-forum.cern.ch/t/plotting-multiple-histograms-on-the-same-canvas-in-pyroot-jupyter-notebook/42356 "2020-11-19T09:24:43Z")

</div>

Hello! I’m using ROOT on a Jupyter notebook and I’m having some trouble plotting histograms on the same axes. I only started using ROOT 2 days ago so I’m still very new! I’ve tried two methods: canv = ROOT.TCanvas(“newc…

---

## [Save a TGraph in a root file](https://root-forum.cern.ch/t/save-a-tgraph-in-a-root-file/42361)

<div class="topic-metadata">

**Author:** [@sanjeeda](https://root-forum.cern.ch/u/sanjeeda)\
**Replies:** 1\
**Last updated:** [November 19, 2020, 8:38am UTC](https://root-forum.cern.ch/t/save-a-tgraph-in-a-root-file/42361 "2020-11-19T08:38:18Z")

</div>

Dear Experts, I have a root file with leaves and I am trying to draw a TGraph using two variables (x & y) which are present in the root file. I can make the TGraph directly on the ubuntu terminal using the command line: …

---

## [Solve equation with RootFinder](https://root-forum.cern.ch/t/solve-equation-with-rootfinder/42286)

<div class="topic-metadata">

**Author:** [@hammiu](https://root-forum.cern.ch/u/hammiu)\
**Replies:** 7\
**Last updated:** [November 19, 2020, 2:01am UTC](https://root-forum.cern.ch/t/solve-equation-with-rootfinder/42286 "2020-11-19T02:01:53Z")

</div>

Hi everyone. I have problem to deal, in which I have to solve a complicated non-linear equation. I plan to solve it with Bisection method (numerical algorithms). Firstly, I try solving a very simple equation with Bisecti…

---

## [Dividing Histograms - Output seems wrong](https://root-forum.cern.ch/t/dividing-histograms-output-seems-wrong/42342)

<div class="topic-metadata">

**Author:** [@jfrancis](https://root-forum.cern.ch/u/jfrancis)\
**Replies:** 3\
**Last updated:** [November 18, 2020, 2:31pm UTC](https://root-forum.cern.ch/t/dividing-histograms-output-seems-wrong/42342 "2020-11-18T14:31:19Z")

</div>

I’m trying to divide two histograms, “top” by “bottom”, to produce a third histogram, “Forward-Backward Asymmetry…”. However, checking individual bins shows a discrepancy between the third histogram and what the division…

---

## [Integral not working?](https://root-forum.cern.ch/t/integral-not-working/42329)

<div class="topic-metadata">

**Author:** [@Edward\_Finkelstein](https://root-forum.cern.ch/u/Edward_Finkelstein)\
**Replies:** 2\
**Last updated:** [November 18, 2020, 4:33am UTC](https://root-forum.cern.ch/t/integral-not-working/42329 "2020-11-18T04:33:33Z")

</div>

I am trying to compute the integral of my data by running the following script: auto graph = new TGraphErrors("./true\_spectra\_110deg\_28.txt","%lg %lg %lg %lg"); graph-\>SetTitle("Compton Scattering for CS-137 (Ac…

---

## [Attaching vector as a branch to an existing TTree](https://root-forum.cern.ch/t/attaching-vector-as-a-branch-to-an-existing-ttree/42193)

<div class="topic-metadata">

**Author:** [@jparlone](https://root-forum.cern.ch/u/jparlone)\
**Replies:** 13\
**Last updated:** [November 16, 2020, 3:53pm UTC](https://root-forum.cern.ch/t/attaching-vector-as-a-branch-to-an-existing-ttree/42193 "2020-11-16T15:53:20Z")

</div>

Hi all, hopefully, a simple question for someone who knows it, but something I’ve spent ages banging away at. I want to clone an existing TTree then create a new branch, filling it from a vector. Below is my attempt so …

---

## [PtEtaPhi for dimuon](https://root-forum.cern.ch/t/ptetaphi-for-dimuon/42315)

<div class="topic-metadata">

**Author:** [@odylalalaaa](https://root-forum.cern.ch/u/odylalalaaa)\
**Replies:** 5\
**Last updated:** [November 16, 2020, 4:02pm UTC](https://root-forum.cern.ch/t/ptetaphi-for-dimuon/42315 "2020-11-16T16:02:22Z")

</div>

hi, im trying to modify the http://opendata.cern.ch/record/5500 its a zz4l exercise, mixing muon and electron combination for make the Z (Za) and Zb (Z\*) then form the H im using Delphes tree which only contains PtEtaPh…

---

## [Problems after ROOT installation/update](https://root-forum.cern.ch/t/problems-after-root-installation-update/41810)

<div class="topic-metadata">

**Author:** [@EVTO](https://root-forum.cern.ch/u/EVTO)\
**Replies:** 20\
**Last updated:** [November 16, 2020, 1:38pm UTC](https://root-forum.cern.ch/t/problems-after-root-installation-update/41810 "2020-11-16T13:38:55Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.22/02 Platform: Bash in Ubuntu on Windows (WLS, Windows 10, Ubuntu 16) Compiler: 5.4.0 Hi. Sorry for annoying you again. I thi…

---

## [Reading file form NTuple and drawing histogram](https://root-forum.cern.ch/t/reading-file-form-ntuple-and-drawing-histogram/42304)

<div class="topic-metadata">

**Author:** [@Ada](https://root-forum.cern.ch/u/Ada)\
**Replies:** 5\
**Last updated:** [November 15, 2020, 11:40am UTC](https://root-forum.cern.ch/t/reading-file-form-ntuple-and-drawing-histogram/42304 "2020-11-15T11:40:45Z")

</div>

Hi! Recently I’ve started learning Root. Now I’m supposed to draw histograms form NTuple file. Well, maybe it sounds trivial, but I’ve got some problems. My program doesn’t show any erros but also any histograms… I’ve …

---

## [Trouble with cmake (installing ROOT from source)](https://root-forum.cern.ch/t/trouble-with-cmake-installing-root-from-source/42298)

<div class="topic-metadata">

**Author:** [@Aggelos\_T](https://root-forum.cern.ch/u/Aggelos_T)\
**Replies:** 2\
**Last updated:** [November 14, 2020, 6:30pm UTC](https://root-forum.cern.ch/t/trouble-with-cmake-installing-root-from-source/42298 "2020-11-14T18:30:12Z")

</div>

Hello! I’m trying to install ROOT from source to my system (Linux Mint 19.3 Cinnamon), since I encountered some problems trying to install it differently (see post here). Now, I’m following the steps found here. I downl…

---

## [Problem with the installation of ROOT- Unable to locate package libtinfo6](https://root-forum.cern.ch/t/problem-with-the-installation-of-root-unable-to-locate-package-libtinfo6/42294)

<div class="topic-metadata">

**Author:** [@Aggelos\_T](https://root-forum.cern.ch/u/Aggelos_T)\
**Replies:** 10\
**Last updated:** [November 14, 2020, 1:35pm UTC](https://root-forum.cern.ch/t/problem-with-the-installation-of-root-unable-to-locate-package-libtinfo6/42294 "2020-11-14T13:35:40Z")

</div>

Hello! I’m trying to install ROOT in my system (Linux Mint 19.3 Cinnamon), but I have the same problem as chiara described in their post. I tried installing both versions of ROOT (root\_v6.22.02.Linux-ubuntu18-x86\_64-gcc…

---

## [How does one draw TMatrix?](https://root-forum.cern.ch/t/how-does-one-draw-tmatrix/42266)

<div class="topic-metadata">

**Author:** [@Karl007](https://root-forum.cern.ch/u/Karl007)\
**Replies:** 8\
**Last updated:** [November 13, 2020, 3:10pm UTC](https://root-forum.cern.ch/t/how-does-one-draw-tmatrix/42266 "2020-11-13T15:10:48Z")

</div>

I have a tree with four branches. The branches are saved in TMatrixD form, this is why normal TreeViewer doesn’t work in that case. Anyway, I would like to have 4 histograms for these 4 branches. I came across this: …

---

## [Plotting field lines](https://root-forum.cern.ch/t/plotting-field-lines/42284)

<div class="topic-metadata">

**Author:** [@dsubhro](https://root-forum.cern.ch/u/dsubhro)\
**Replies:** 3\
**Last updated:** [November 13, 2020, 2:47pm UTC](https://root-forum.cern.ch/t/plotting-field-lines/42284 "2020-11-13T14:47:24Z")

</div>

ROOT Version: 6.22 Platform: Ubuntu Compiler: G++ Let’s say, I have a field equation E = E(x,y,z) as a vector form. How do I plot field lines in root. Because for TGraphs I can only put f(x,y,z) =0 graph for 3D visua…

---

## [Error on Root Installation](https://root-forum.cern.ch/t/error-on-root-installation/42273)

<div class="topic-metadata">

**Author:** [@nikos\_tilkeridis](https://root-forum.cern.ch/u/nikos_tilkeridis)\
**Replies:** 3\
**Last updated:** [November 13, 2020, 10:54am UTC](https://root-forum.cern.ch/t/error-on-root-installation/42273 "2020-11-13T10:54:09Z")

</div>

\_\_\_I’m trying to install Root following the instructions on README files but after “make -j8” command the process stops at 77% and it showing me 2 errors. The last lines on terminal is this: make\[2\]: \*\*\* \[core/rootclin…

---

## [Plotting equation and datapoints on same graph](https://root-forum.cern.ch/t/plotting-equation-and-datapoints-on-same-graph/42187)

<div class="topic-metadata">

**Author:** [@dsubhro](https://root-forum.cern.ch/u/dsubhro)\
**Replies:** 4\
**Last updated:** [November 13, 2020, 8:52am UTC](https://root-forum.cern.ch/t/plotting-equation-and-datapoints-on-same-graph/42187 "2020-11-13T08:52:45Z")

</div>

ROOT Version: 6.22 Platform: Root Compiler: Root compiler I want to plot the cylinder of equation x^2+y^2 = 25 and some data points(for example: 500 sample points with values of x,y,z) in a same 3D graph using TMult…

---

## [Reading events from a TFile that is being written](https://root-forum.cern.ch/t/reading-events-from-a-tfile-that-is-being-written/42241)

<div class="topic-metadata">

**Author:** [@leonardi](https://root-forum.cern.ch/u/leonardi)\
**Replies:** 3\
**Last updated:** [November 12, 2020, 6:52pm UTC](https://root-forum.cern.ch/t/reading-events-from-a-tfile-that-is-being-written/42241 "2020-11-12T18:52:25Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 5.34.36 Platform: CentOS 7 Compiler: gcc 4.9 My data acquisition system writes data to ROOT files using the following code: fT…

---

## [Creating a TH1 type branch error](https://root-forum.cern.ch/t/creating-a-th1-type-branch-error/42239)

<div class="topic-metadata">

**Author:** [@jparlone](https://root-forum.cern.ch/u/jparlone)\
**Replies:** 8\
**Last updated:** [November 12, 2020, 4:58pm UTC](https://root-forum.cern.ch/t/creating-a-th1-type-branch-error/42239 "2020-11-12T16:58:54Z")

</div>

Hi all, my program is throwing the error: Error in \<TClass::New\>: cannot create object of class TH1 but seems to be producing the expected output, which also behaves correctly. However, I believe this is causing some pro…

---

## [Fill TH2D with 2 TH1D data sets](https://root-forum.cern.ch/t/fill-th2d-with-2-th1d-data-sets/42213)

<div class="topic-metadata">

**Author:** [@TimFulcher](https://root-forum.cern.ch/u/TimFulcher)\
**Replies:** 4\
**Last updated:** [November 12, 2020, 4:35pm UTC](https://root-forum.cern.ch/t/fill-th2d-with-2-th1d-data-sets/42213 "2020-11-12T16:35:59Z")

</div>

Hi all, I’m reading and plotting two 1D histograms from a root file successfully and would like to create a TH2D histogram with the data in those 2 TH1D objects. How can I fill the TH2D histo with that data? Regards T…

---

## [File not closed after writing a tree to it with CloneTree()](https://root-forum.cern.ch/t/file-not-closed-after-writing-a-tree-to-it-with-clonetree/42251)

<div class="topic-metadata">

**Author:** [@Maria\_Evanthia\_Tsopo](https://root-forum.cern.ch/u/Maria_Evanthia_Tsopo)\
**Replies:** 1\
**Last updated:** [November 12, 2020, 10:20am UTC](https://root-forum.cern.ch/t/file-not-closed-after-writing-a-tree-to-it-with-clonetree/42251 "2020-11-12T10:20:27Z")

</div>

Hi, I have a problem with my code and I’d like for your help. In my code I read a tree, I rename some of its branches and then I try to write it to a file using CloneTree()-\>Write(). The problem is that when I try to p…

---

## [How to convert CSV file to root file for further analysis](https://root-forum.cern.ch/t/how-to-convert-csv-file-to-root-file-for-further-analysis/42253)

<div class="topic-metadata">

**Author:** [@Manu\_Francis](https://root-forum.cern.ch/u/Manu_Francis)\
**Replies:** 1\
**Last updated:** [November 12, 2020, 5:43am UTC](https://root-forum.cern.ch/t/how-to-convert-csv-file-to-root-file-for-further-analysis/42253 "2020-11-12T05:43:07Z")

</div>

Hi, I am new to ROOT. I used ROOT in GATE simulation (http://www.opengatecollaboration.org/UsersGuide) for analysing the radiation counts in the detector. Now I have some data as CSV file from another simulation softwa…

---

## [Error in gROOT-\>GetVersion()](https://root-forum.cern.ch/t/error-in-groot-getversion/42247)

<div class="topic-metadata">

**Author:** [@gleck](https://root-forum.cern.ch/u/gleck)\
**Replies:** 3\
**Last updated:** [November 11, 2020, 8:27pm UTC](https://root-forum.cern.ch/t/error-in-groot-getversion/42247 "2020-11-11T20:27:16Z")

</div>

Hi there. In trying to post a topic about the problem I am actually having, I tried to find my version of ROOT using gROOT-\>GetVersion() suggested in this post. However, I get the following errors. root \[0\] gROOT-\>GetVe…

---

## [Can somebody help me figure out what the error is? I am using emacs as Text editor. I am using root version v6.22.06](https://root-forum.cern.ch/t/can-somebody-help-me-figure-out-what-the-error-is-i-am-using-emacs-as-text-editor-i-am-using-root-version-v6-22-06/41678)

<div class="topic-metadata">

**Author:** [@SGutaudg](https://root-forum.cern.ch/u/SGutaudg)\
**Replies:** 3\
**Last updated:** [November 11, 2020, 3:26pm UTC](https://root-forum.cern.ch/t/can-somebody-help-me-figure-out-what-the-error-is-i-am-using-emacs-as-text-editor-i-am-using-root-version-v6-22-06/41678 "2020-11-11T15:26:00Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided

---

## [Error in \<TRint::HandleTermInput()\>: std::out\_of\_range caught: vector](https://root-forum.cern.ch/t/error-in-trint-handleterminput-std-out-of-range-caught-vector/42229)

<div class="topic-metadata">

**Author:** [@odylalalaaa](https://root-forum.cern.ch/u/odylalalaaa)\
**Replies:** 3\
**Last updated:** [November 11, 2020, 11:31am UTC](https://root-forum.cern.ch/t/error-in-trint-handleterminput-std-out-of-range-caught-vector/42229 "2020-11-11T11:31:29Z")

</div>

hi, im trying to da a HZZ4L exercise with delphes tree and came upon this error since it does not show which line is the problem, im not quite sure where i should fix attached is my macro file, thanks! Please read ti…

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

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