# Newbie

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

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

---

## [Splitterv.xpm not found, while it is in the 'icons' folder](https://root-forum.cern.ch/t/splitterv-xpm-not-found-while-it-is-in-the-icons-folder/52139)

<div class="topic-metadata">

**Author:** [@paandre](https://root-forum.cern.ch/u/paandre)\
**Replies:** 4\
**Last updated:** [October 28, 2022, 12:57pm UTC](https://root-forum.cern.ch/t/splitterv-xpm-not-found-while-it-is-in-the-icons-folder/52139 "2022-10-28T12:57:43Z")

</div>

Hello everyone, I am installing root on my personal machine, after several successful installations on my work machine. Everything compiles fine, but when I try to open a TBrowser, I get the following seg fault: Error …

---

## [Time taken to GetEntry(i)](https://root-forum.cern.ch/t/time-taken-to-getentry-i/52129)

<div class="topic-metadata">

**Author:** [@haha123](https://root-forum.cern.ch/u/haha123)\
**Replies:** 2\
**Last updated:** [October 28, 2022, 12:27pm UTC](https://root-forum.cern.ch/t/time-taken-to-getentry-i/52129 "2022-10-28T12:27:08Z")

</div>

I am curious about the time taken in the GetEntry() and its relation with the data structure. I have a TChain with millions of entries. When I read it in ascending order, i.e. for (int i=0;i\<nevents;i++) {chain-\>GetEntr…

---

## [Support of root in IDE](https://root-forum.cern.ch/t/support-of-root-in-ide/52118)

<div class="topic-metadata">

**Author:** [@Emil\_R](https://root-forum.cern.ch/u/Emil_R)\
**Replies:** 2\
**Last updated:** [October 28, 2022, 8:36am UTC](https://root-forum.cern.ch/t/support-of-root-in-ide/52118 "2022-10-28T08:36:35Z")

</div>

Hi everybody, I have a problem which is more of an aesthetic nature but it would still be nice to find an answer. I am usually using root on a Linux machine where I use kdevelop. This is very nice, since it knows all th…

---

## [Change units of y-axis in a TH2D histogram](https://root-forum.cern.ch/t/change-units-of-y-axis-in-a-th2d-histogram/52076)

<div class="topic-metadata">

**Author:** [@Nyx](https://root-forum.cern.ch/u/Nyx)\
**Replies:** 4\
**Last updated:** [October 27, 2022, 7:24am UTC](https://root-forum.cern.ch/t/change-units-of-y-axis-in-a-th2d-histogram/52076 "2022-10-27T07:24:39Z")

</div>

I want to change the units of the y-axis of a TH2D histogram in the way of y = y\*c where c is some constant. What is the easiest and cleanest way to do this?

---

## [Disappearing Canvas](https://root-forum.cern.ch/t/disappearing-canvas/52077)

<div class="topic-metadata">

**Author:** [@Emil\_R](https://root-forum.cern.ch/u/Emil_R)\
**Replies:** 4\
**Last updated:** [October 26, 2022, 10:11am UTC](https://root-forum.cern.ch/t/disappearing-canvas/52077 "2022-10-26T10:11:40Z")

</div>

Hi everybody, I have a problem with saving my data to a root file. I am creating a several canvas in a loop all consisting of three Histogramms, which I all save to a .root file. When I am naming the canvas all the same…

---

## [Background Image in scatter plot](https://root-forum.cern.ch/t/background-image-in-scatter-plot/52036)

<div class="topic-metadata">

**Author:** [@Roy](https://root-forum.cern.ch/u/Roy)\
**Replies:** 4\
**Last updated:** [October 25, 2022, 5:46pm UTC](https://root-forum.cern.ch/t/background-image-in-scatter-plot/52036 "2022-10-25T17:46:29Z")

</div>

I am trying to add background to my scatterplot, but the background should be limited to just the pad, I tried working based on below documentation, https://root.cern/doc/master/img2pad\_8C.html But my original image ge…

---

## [TLatex not drawing in pyRoot](https://root-forum.cern.ch/t/tlatex-not-drawing-in-pyroot/52020)

<div class="topic-metadata">

**Author:** [@mhadley](https://root-forum.cern.ch/u/mhadley)\
**Replies:** 7\
**Last updated:** [October 25, 2022, 2:35pm UTC](https://root-forum.cern.ch/t/tlatex-not-drawing-in-pyroot/52020 "2022-10-25T14:35:29Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided The following code snippet does NOT result in the TLatex object being …

---

## [Convert a PDF saved root TH2 histogram to a root TH2](https://root-forum.cern.ch/t/convert-a-pdf-saved-root-th2-histogram-to-a-root-th2/52073)

<div class="topic-metadata">

**Author:** [@ROOTer1](https://root-forum.cern.ch/u/ROOTer1)\
**Replies:** 3\
**Last updated:** [October 25, 2022, 11:38am UTC](https://root-forum.cern.ch/t/convert-a-pdf-saved-root-th2-histogram-to-a-root-th2/52073 "2022-10-25T11:38:07Z")

</div>

It might be impossible, but I was wondering if there is anyway to convert a TH2 histogram that was saved as PDF to a root TH2 histogram based on the colours of the COLZ option

---

## [How to separate each element of a matrix](https://root-forum.cern.ch/t/how-to-separate-each-element-of-a-matrix/52072)

<div class="topic-metadata">

**Author:** [@Dil](https://root-forum.cern.ch/u/Dil)\
**Replies:** 2\
**Last updated:** [October 24, 2022, 6:14pm UTC](https://root-forum.cern.ch/t/how-to-separate-each-element-of-a-matrix/52072 "2022-10-24T18:14:29Z")

</div>

Hello all, Maybe this is a simple question.But I can’t figure it out. I have a TVectorD. (1).I need to store it each element separately. How can I do that? Vector (6) is as follows | 1 | 0 |0.0308705 1…

---

## [Finding differences between rows from PyROOT](https://root-forum.cern.ch/t/finding-differences-between-rows-from-pyroot/52067)

<div class="topic-metadata">

**Author:** [@atasattari](https://root-forum.cern.ch/u/atasattari)\
**Replies:** 1\
**Last updated:** [October 24, 2022, 1:05am UTC](https://root-forum.cern.ch/t/finding-differences-between-rows-from-pyroot/52067 "2022-10-24T01:05:25Z")

</div>

Hi, I tried to follow the previous post to compute some quantities between rows using PyROOT. I could declare a struct similar to the suggestion, but the output of the RDataFame is not as expected. My function: ROOT.g…

---

## [Compare TGraphs from several ROOT files](https://root-forum.cern.ch/t/compare-tgraphs-from-several-root-files/52055)

<div class="topic-metadata">

**Author:** [@alex14](https://root-forum.cern.ch/u/alex14)\
**Replies:** 5\
**Last updated:** [October 23, 2022, 2:21pm UTC](https://root-forum.cern.ch/t/compare-tgraphs-from-several-root-files/52055 "2022-10-23T14:21:19Z")

</div>

Hello, I’m a root beginner, and I would like to ask for help with the following. I want to open two or several root files where I have stored TGraphs and compare them by drawing them on the same canvas. Could you please…

---

## [Warning in \<TROOT::Append\>: Replacing existing TH1: xy\_panel (Potential memory leak)](https://root-forum.cern.ch/t/warning-in-troot-append-replacing-existing-th1-xy-panel-potential-memory-leak/52054)

<div class="topic-metadata">

**Author:** [@Firestar-Reimu](https://root-forum.cern.ch/u/Firestar-Reimu)\
**Replies:** 2\
**Last updated:** [October 22, 2022, 11:29am UTC](https://root-forum.cern.ch/t/warning-in-troot-append-replacing-existing-th1-xy-panel-potential-memory-leak/52054 "2022-10-22T11:29:41Z")

</div>

This code produces the warning because I ran DumpStep() twice in my program (If I only produce 1 eps file there is no warning): Info in \<TCanvas::Print\>: eps file poca\_median\_cache/1d.lambda.0.eps has been created Warni…

---

## [Integral over Component of composite PDF](https://root-forum.cern.ch/t/integral-over-component-of-composite-pdf/52038)

<div class="topic-metadata">

**Author:** [@Emil\_R](https://root-forum.cern.ch/u/Emil_R)\
**Replies:** 5\
**Last updated:** [October 20, 2022, 12:35pm UTC](https://root-forum.cern.ch/t/integral-over-component-of-composite-pdf/52038 "2022-10-20T12:35:00Z")

</div>

Hello, I am kind of new to root, especially to RooFit, which poses a great challenge for me. I have made a fit of a data set with a composite Model PDF consisting of several BreitWigner and a polynomial background. Now …

---

## [Root crashed after trying to analyze more events](https://root-forum.cern.ch/t/root-crashed-after-trying-to-analyze-more-events/52033)

<div class="topic-metadata">

**Author:** [@Charlie](https://root-forum.cern.ch/u/Charlie)\
**Replies:** 3\
**Last updated:** [October 20, 2022, 8:10am UTC](https://root-forum.cern.ch/t/root-crashed-after-trying-to-analyze-more-events/52033 "2022-10-20T08:10:14Z")

</div>

Hello, I’m running a simulation package in GEANT4 that simulates electron-iron atom scattering. Two events are simulated in this simulation: electron-electron scattering and electron-iron nucleus scattering. I’m using r…

---

## [Trouble with pyroot about drawing a function](https://root-forum.cern.ch/t/trouble-with-pyroot-about-drawing-a-function/52022)

<div class="topic-metadata">

**Author:** [@Mehmet\_Durgut](https://root-forum.cern.ch/u/Mehmet_Durgut)\
**Replies:** 4\
**Last updated:** [October 19, 2022, 1:04pm UTC](https://root-forum.cern.ch/t/trouble-with-pyroot-about-drawing-a-function/52022 "2022-10-19T13:04:52Z")

</div>

ROOT Version: 6.26 Platform: MacOS Catalina I am newbie in HEP and I was trying to use root with python so, when I use python prompt like below I get the graph like this Nonetheless, I am not able to get the same g…

---

## [Multiply two TVectorD](https://root-forum.cern.ch/t/multiply-two-tvectord/52004)

<div class="topic-metadata">

**Author:** [@Dil](https://root-forum.cern.ch/u/Dil)\
**Replies:** 11\
**Last updated:** [October 17, 2022, 6:50pm UTC](https://root-forum.cern.ch/t/multiply-two-tvectord/52004 "2022-10-17T18:50:55Z")

</div>

Hello all, I tried to multiply two TVectorD, that’s not working correctly. But Multiplying TMartixD \*TvectorD is properly working. void matrix\_multiplication(){ const int nx=3,nQ2=4,ntmin\_t=10,n\_weight=6; …

---

## [Errors building system PCH with cppyy's Root on Android](https://root-forum.cern.ch/t/errors-building-system-pch-with-cppyys-root-on-android/51961)

<div class="topic-metadata">

**Author:** [@hollowaya](https://root-forum.cern.ch/u/hollowaya)\
**Replies:** 10\
**Last updated:** [October 17, 2022, 2:34pm UTC](https://root-forum.cern.ch/t/errors-building-system-pch-with-cppyys-root-on-android/51961 "2022-10-17T14:34:57Z")

</div>

ROOT Version: 6.26.04 Platform: Android x86\_64 (Termux) Compiler: Clang 15.0.1 Hi, I’m trying to get cppyy working on my embedded device. I’m able to compile and run cling (installed with cpt.py), and can e.g. do i…

---

## [Store already plotted TGraphs in a root file](https://root-forum.cern.ch/t/store-already-plotted-tgraphs-in-a-root-file/51974)

<div class="topic-metadata">

**Author:** [@alex14](https://root-forum.cern.ch/u/alex14)\
**Replies:** 5\
**Last updated:** [October 15, 2022, 4:12pm UTC](https://root-forum.cern.ch/t/store-already-plotted-tgraphs-in-a-root-file/51974 "2022-10-15T16:12:06Z")

</div>

Hello, I have a question regarding TGraphs and storing them in the root file. Anyway, I have created two TGraphs separately, and I want to create a new root file and store the graphs there. I have started with a code T…

---

## [Histogram array projection](https://root-forum.cern.ch/t/histogram-array-projection/51975)

<div class="topic-metadata">

**Author:** [@alex14](https://root-forum.cern.ch/u/alex14)\
**Replies:** 4\
**Last updated:** [October 15, 2022, 2:50pm UTC](https://root-forum.cern.ch/t/histogram-array-projection/51975 "2022-10-15T14:50:24Z")

</div>

Hello, I apologize for my trivial question, and maybe it’s more related to C++, but I was hoping someone could help me, I have a root file where I have stored several TH2D histograms. I have successfully extracted 15 o…

---

## [What type should I use for long items in SetBranchAddress？](https://root-forum.cern.ch/t/what-type-should-i-use-for-long-items-in-setbranchaddress/51973)

<div class="topic-metadata">

**Author:** [@Dyson](https://root-forum.cern.ch/u/Dyson)\
**Replies:** 2\
**Last updated:** [October 15, 2022, 4:45am UTC](https://root-forum.cern.ch/t/what-type-should-i-use-for-long-items-in-setbranchaddress/51973 "2022-10-15T04:45:20Z")

</div>

In my algorithm I define these two branches using NTuple::Item m\_runNo11; NTuple::Item m\_evtNo11; Right now, I want to use SetBranchAddress to read out the data in the root file, then what type of variable should I us…

---

## [How to get a merged TMultiGraph Output from a Canvas.SaveAs](https://root-forum.cern.ch/t/how-to-get-a-merged-tmultigraph-output-from-a-canvas-saveas/51956)

<div class="topic-metadata">

**Author:** [@Taylor\_Carnahan1](https://root-forum.cern.ch/u/Taylor_Carnahan1)\
**Replies:** 3\
**Last updated:** [October 14, 2022, 1:15pm UTC](https://root-forum.cern.ch/t/how-to-get-a-merged-tmultigraph-output-from-a-canvas-saveas/51956 "2022-10-14T13:15:34Z")

</div>

Hello experts! I’m attempting to get an output from using TMultigraph, and I have tried adding a gPad.Update() after every Draw(), as I’ve seen in a few forum answers. I’ve tried leaving out the legend, which sometimes …

---

## [How to merge several TGraphAsymmErrors class objects from several repositories into one final canvas](https://root-forum.cern.ch/t/how-to-merge-several-tgraphasymmerrors-class-objects-from-several-repositories-into-one-final-canvas/51953)

<div class="topic-metadata">

**Author:** [@Taylor\_Carnahan1](https://root-forum.cern.ch/u/Taylor_Carnahan1)\
**Replies:** 3\
**Last updated:** [October 14, 2022, 6:01am UTC](https://root-forum.cern.ch/t/how-to-merge-several-tgraphasymmerrors-class-objects-from-several-repositories-into-one-final-canvas/51953 "2022-10-14T06:01:03Z")

</div>

Hello experts! I am having trouble retrieving data inside several ROOT files. I have looked at every Stack Overflow and ROOT forum, but I am still unable to resolve my issue. I am trying to go through three repositories…

---

## [Installation of ROOT on laptop running Windows 10](https://root-forum.cern.ch/t/installation-of-root-on-laptop-running-windows-10/51820)

<div class="topic-metadata">

**Author:** [@DJT](https://root-forum.cern.ch/u/DJT)\
**Replies:** 9\
**Last updated:** [October 11, 2022, 2:36pm UTC](https://root-forum.cern.ch/t/installation-of-root-on-laptop-running-windows-10/51820 "2022-10-11T14:36:32Z")

</div>

Hi, ROOT Version: 6.26.06 Platform: Windows Compiler: Not Provided I installed ROOT OK on a laboratory laptop, but when I tried to install it on my office laptop, following the same procedures, i.e. after first inst…

---

## [Unable to read root file copied from other source in wsl](https://root-forum.cern.ch/t/unable-to-read-root-file-copied-from-other-source-in-wsl/51918)

<div class="topic-metadata">

**Author:** [@gurmukh\_dhindsa](https://root-forum.cern.ch/u/gurmukh_dhindsa)\
**Replies:** 0\
**Last updated:** [October 10, 2022, 7:30pm UTC](https://root-forum.cern.ch/t/unable-to-read-root-file-copied-from-other-source-in-wsl/51918 "2022-10-10T19:30:51Z")

</div>

Hi there, I am facing a problem reading the root file generated using other sources, whenever I copy that root file and put that into wsl location folder, it gives me an error of permission denied. root file generated u…

---

## [\<TBrowser::TBrowser\>: The ROOT browser cannot run in batch mode](https://root-forum.cern.ch/t/tbrowser-tbrowser-the-root-browser-cannot-run-in-batch-mode/51908)

<div class="topic-metadata">

**Author:** [@Ijaz](https://root-forum.cern.ch/u/Ijaz)\
**Replies:** 2\
**Last updated:** [October 10, 2022, 9:33am UTC](https://root-forum.cern.ch/t/tbrowser-tbrowser-the-root-browser-cannot-run-in-batch-mode/51908 "2022-10-10T09:33:33Z")

</div>

Hi i m trying to open root file via TBrowser command but it say "Warning in TBrowser::TBrowser: The ROOT browser cannot run in batch mode (TBrowser &) Name: Browser Title: ROOT Object Browser " i m working on remote s…

---

## [Dividing 2 histograms](https://root-forum.cern.ch/t/dividing-2-histograms/51912)

<div class="topic-metadata">

**Author:** [@roriana9](https://root-forum.cern.ch/u/roriana9)\
**Replies:** 1\
**Last updated:** [October 10, 2022, 11:02am UTC](https://root-forum.cern.ch/t/dividing-2-histograms/51912 "2022-10-10T11:02:50Z")

</div>

I am trying to divide 2 histograms by using TH1F a = (TH1F)h1-\>Clone(); a-\>SetTitle(“h1/h2”); a-\>Divide(h2); a-\>Draw(); but the result I got is almost flat, how can I change the distribution ?

---

## [TH1D histogram half width at half maximum](https://root-forum.cern.ch/t/th1d-histogram-half-width-at-half-maximum/51903)

<div class="topic-metadata">

**Author:** [@alex14](https://root-forum.cern.ch/u/alex14)\
**Replies:** 1\
**Last updated:** [October 10, 2022, 3:15am UTC](https://root-forum.cern.ch/t/th1d-histogram-half-width-at-half-maximum/51903 "2022-10-10T03:15:59Z")

</div>

Hello, I’m new to root and have a question about TH1D histograms, and I was hoping you could help me. How do we get the half-width at half maximum for one or effectively for multiple histograms in a loop? Thank you. I a…

---

## [Subtracting 2 histograms using ROOT](https://root-forum.cern.ch/t/subtracting-2-histograms-using-root/51902)

<div class="topic-metadata">

**Author:** [@roriana9](https://root-forum.cern.ch/u/roriana9)\
**Replies:** 2\
**Last updated:** [October 9, 2022, 4:49pm UTC](https://root-forum.cern.ch/t/subtracting-2-histograms-using-root/51902 "2022-10-09T16:49:03Z")

</div>

Hello I am trying to subtract 2 histograms by using new-\>Add(h1, h2, -1.0, 1.0); it give me the expected number of entries, but the distribution is flat, while it is supposed to be gauss. here the code I am using, if…

---

## [Plotting multiple histograms in same canvas](https://root-forum.cern.ch/t/plotting-multiple-histograms-in-same-canvas/51877)

<div class="topic-metadata">

**Author:** [@roriana9](https://root-forum.cern.ch/u/roriana9)\
**Replies:** 8\
**Last updated:** [October 8, 2022, 2:28pm UTC](https://root-forum.cern.ch/t/plotting-multiple-histograms-in-same-canvas/51877 "2022-10-08T14:28:46Z")

</div>

I have two root files and want to plot the histograms from each one together in the same canvas; I used this code, but what I get is only the last plot and it is ignore the first plot completely, it didn’t give me any e…

---

## [TTree memory limit](https://root-forum.cern.ch/t/ttree-memory-limit/51594)

<div class="topic-metadata">

**Author:** [@OtaviusDecius](https://root-forum.cern.ch/u/OtaviusDecius)\
**Replies:** 30\
**Last updated:** [October 6, 2022, 3:29pm UTC](https://root-forum.cern.ch/t/ttree-memory-limit/51594 "2022-10-06T15:29:31Z")

</div>

Hi, I have a quite large number of histograms in my C++ code using ROOT libraries. The further the analysis progresses the greater the number of histograms. I run 12 sets of 2000 jobs, one set at a time. Recently I hav…

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

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