# Newbie

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

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

---

## [TRatioPlot confidence bands - limiting, asymmetry](https://root-forum.cern.ch/t/tratioplot-confidence-bands-limiting-asymmetry/58045)

<div class="topic-metadata">

**Author:** [@SRLeX](https://root-forum.cern.ch/u/SRLeX)\
**Replies:** 10\
**Last updated:** [February 27, 2024, 3:49pm UTC](https://root-forum.cern.ch/t/tratioplot-confidence-bands-limiting-asymmetry/58045 "2024-02-27T15:49:04Z")

</div>

\_ROOT Version: 6.30/04 Platform: Windows10 Compiler: Precompiled, downloaded from official site Hello everyone! I’m trying to better understand the TRatioPlot class. I’m interested in the case of fitting a histogram…

---

## [About the name of ROOT](https://root-forum.cern.ch/t/about-the-name-of-root/58316)

<div class="topic-metadata">

**Author:** [@LongHoa](https://root-forum.cern.ch/u/LongHoa)\
**Replies:** 2\
**Last updated:** [February 27, 2024, 1:58pm UTC](https://root-forum.cern.ch/t/about-the-name-of-root/58316 "2024-02-27T13:58:33Z")

</div>

Hello, I hope my question here does not violate the rules of the forum, as it not about technical problem. I’m always curious about the meaning of the name ROOT. i read somewhere that ROOT stand for R with Object Orien…

---

## [Uncertainity in the integral of a histogram?](https://root-forum.cern.ch/t/uncertainity-in-the-integral-of-a-histogram/58259)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 3\
**Last updated:** [February 27, 2024, 12:52pm UTC](https://root-forum.cern.ch/t/uncertainity-in-the-integral-of-a-histogram/58259 "2024-02-27T12:52:41Z")

</div>

Hello everyone, I am trying to get the error on the Integral of a TH1F histogram. hist1-\>Integral(bin1, bin2) Is there any pre-defined functionality to achieve this? Thanks a lot !

---

## [Two scales defined by a function](https://root-forum.cern.ch/t/two-scales-defined-by-a-function/58273)

<div class="topic-metadata">

**Author:** [@SRLeX](https://root-forum.cern.ch/u/SRLeX)\
**Replies:** 7\
**Last updated:** [February 27, 2024, 12:11pm UTC](https://root-forum.cern.ch/t/two-scales-defined-by-a-function/58273 "2024-02-27T12:11:26Z")

</div>

ROOT Version: 6.30/04 Platform: Windows10 Compiler: Precompiled, downloaded from official site Hello everyone! I’m trying to do draw a histogram with two axis. I have checked the twoscales example and the TGaxis refe…

---

## [Replicating fatjet clustering done by Delphes using fastjet](https://root-forum.cern.ch/t/replicating-fatjet-clustering-done-by-delphes-using-fastjet/58304)

<div class="topic-metadata">

**Author:** [@igouveia](https://root-forum.cern.ch/u/igouveia)\
**Replies:** 1\
**Last updated:** [February 26, 2024, 7:08pm UTC](https://root-forum.cern.ch/t/replicating-fatjet-clustering-done-by-delphes-using-fastjet/58304 "2024-02-26T19:08:07Z")

</div>

I am acessing Delphes output rootfile and extracting EFlowTracks , EFlowNeutralHadrons and EFlowPhotons pt , eta and phi and clustering these particles using fastjet (antikt algorithm, R=0.8) and I am not obtaining the s…

---

## [Proper way to display a RootCanvas from within a Qt GUI app?](https://root-forum.cern.ch/t/proper-way-to-display-a-rootcanvas-from-within-a-qt-gui-app/58297)

<div class="topic-metadata">

**Author:** [@jakub-witkowski](https://root-forum.cern.ch/u/jakub-witkowski)\
**Replies:** 4\
**Last updated:** [February 26, 2024, 2:04pm UTC](https://root-forum.cern.ch/t/proper-way-to-display-a-rootcanvas-from-within-a-qt-gui-app/58297 "2024-02-26T14:04:29Z")

</div>

Greetings ROOT community, I am developing a small desktop app that relies on Qt for the GUI, and uses ROOT for generating scatter plots representing geological data. I use ROOT TApplication instance for visualizing a pr…

---

## [How could I go about creating a heatmap?](https://root-forum.cern.ch/t/how-could-i-go-about-creating-a-heatmap/47127)

<div class="topic-metadata">

**Author:** [@abunka](https://root-forum.cern.ch/u/abunka)\
**Replies:** 2\
**Last updated:** [October 6, 2021, 8:05am UTC](https://root-forum.cern.ch/t/how-could-i-go-about-creating-a-heatmap/47127 "2021-10-06T08:05:41Z")

</div>

Hello What would be the best way to create a heat map of variables using root? The x and y axes would be lists of the variable names and the values would be some calculated quantity between the two variables (such as co…

---

## [TH2D working like a TGraph](https://root-forum.cern.ch/t/th2d-working-like-a-tgraph/58280)

<div class="topic-metadata">

**Author:** [@Andrea\_Frassa1](https://root-forum.cern.ch/u/Andrea_Frassa1)\
**Replies:** 2\
**Last updated:** [February 26, 2024, 12:08pm UTC](https://root-forum.cern.ch/t/th2d-working-like-a-tgraph/58280 "2024-02-26T12:08:47Z")

</div>

Hi, I have a problem, maybe a silly one, with TH2D. In this macro I just need a simple TH2D filled with points previously calculated. TCanvas\* t3 = new TCanvas(); t3-\>SetCanvasSize(1500, 1500); t3-\>SetWindowSize(150…

---

## [RootFit Warning Plotting](https://root-forum.cern.ch/t/rootfit-warning-plotting/58214)

<div class="topic-metadata">

**Author:** [@liyanpeng](https://root-forum.cern.ch/u/liyanpeng)\
**Replies:** 3\
**Last updated:** [February 26, 2024, 10:11am UTC](https://root-forum.cern.ch/t/rootfit-warning-plotting/58214 "2024-02-26T10:11:19Z")

</div>

Hi, I’m a beginner in ROOT. The ROOT version is ROOT 6.24/08. The platform is Linux and Compiler is C++. When I use RooFit to fit data, some warning message occurs: WARNING:Plotting -- At observable \[x\]=3.67 RooRealIn…

---

## [TVector2: output phi range from -pi to pi?](https://root-forum.cern.ch/t/tvector2-output-phi-range-from-pi-to-pi/58283)

<div class="topic-metadata">

**Author:** [@clemahieu](https://root-forum.cern.ch/u/clemahieu)\
**Replies:** 1\
**Last updated:** [February 24, 2024, 5:17pm UTC](https://root-forum.cern.ch/t/tvector2-output-phi-range-from-pi-to-pi/58283 "2024-02-24T17:17:35Z")

</div>

Hello, I constructed a TVector2 and I notice that the phi output, TVector2.Phi(), is in the range 0 to 2pi. How can I make this match CMS notation so that the phi output range is instead -pi to pi? I see there is a " P…

---

## [Overlaying multiple trials in histogram](https://root-forum.cern.ch/t/overlaying-multiple-trials-in-histogram/58254)

<div class="topic-metadata">

**Author:** [@Raye\_Qtie](https://root-forum.cern.ch/u/Raye_Qtie)\
**Replies:** 2\
**Last updated:** [February 24, 2024, 3:35pm UTC](https://root-forum.cern.ch/t/overlaying-multiple-trials-in-histogram/58254 "2024-02-24T15:35:31Z")

</div>

ROOT Version: 6.22/08 Hi i’m very very newbie and I’m working on a project where I need to visually compare three main histograms, each representing different conditions, on a single canvas. For each condition, I have d…

---

## [Error while attempting to write output of Integral() to text file in a bash script](https://root-forum.cern.ch/t/error-while-attempting-to-write-output-of-integral-to-text-file-in-a-bash-script/58282)

<div class="topic-metadata">

**Author:** [@Alexwilliams](https://root-forum.cern.ch/u/Alexwilliams)\
**Replies:** 2\
**Last updated:** [February 24, 2024, 1:43pm UTC](https://root-forum.cern.ch/t/error-while-attempting-to-write-output-of-integral-to-text-file-in-a-bash-script/58282 "2024-02-24T13:43:53Z")

</div>

ROOT Version: 6.28/06 Platform: WSL Ubuntu Compiler: Not Provided Hi, relatively new to root and I’m currently attempting to use a bash script to complete a task, and within the code is: root B4.root \<\<-EOF #open…

---

## [Crash problem](https://root-forum.cern.ch/t/crash-problem/58278)

<div class="topic-metadata">

**Author:** [@sakzai](https://root-forum.cern.ch/u/sakzai)\
**Replies:** 2\
**Last updated:** [February 24, 2024, 1:01pm UTC](https://root-forum.cern.ch/t/crash-problem/58278 "2024-02-24T13:01:17Z")

</div>

I am trying to read two histogram from .root file and plot it after rescaling but i am getting the following error Root \> .L plotHistograms.C root \[4\] plotHistograms() Warning in TCanvas::Constructor: Deleting canvas …

---

## [ROOT installing problems](https://root-forum.cern.ch/t/root-installing-problems/58275)

<div class="topic-metadata">

**Author:** [@Lollo21](https://root-forum.cern.ch/u/Lollo21)\
**Replies:** 1\
**Last updated:** [February 24, 2024, 9:10am UTC](https://root-forum.cern.ch/t/root-installing-problems/58275 "2024-02-24T09:10:11Z")

</div>

ROOT Version: 6.30/04 Everytime I try to run a macro it shows me this error, I don’t know what to do. Yesterday i tried to add the code line “source root/bin/thisroot.sh” to the .bashrc and everything seemed to work…

---

## [Rerunning root macro in an already active session](https://root-forum.cern.ch/t/rerunning-root-macro-in-an-already-active-session/58268)

<div class="topic-metadata">

**Author:** [@juwack](https://root-forum.cern.ch/u/juwack)\
**Replies:** 1\
**Last updated:** [February 23, 2024, 12:25pm UTC](https://root-forum.cern.ch/t/rerunning-root-macro-in-an-already-active-session/58268 "2024-02-23T12:25:15Z")

</div>

ROOT Version: 6.30/04 Platform: lxplus Compiler: g++ 11.4.1 Hi all, I run my root macro (see below) via root test.C works as expected. When however running it again from the root prompt with .x test.C, the followin…

---

## [ROOT installation: opening in batch mode](https://root-forum.cern.ch/t/root-installation-opening-in-batch-mode/58182)

<div class="topic-metadata">

**Author:** [@tadolphus](https://root-forum.cern.ch/u/tadolphus)\
**Replies:** 3\
**Last updated:** [February 23, 2024, 9:27am UTC](https://root-forum.cern.ch/t/root-installation-opening-in-batch-mode/58182 "2024-02-23T09:27:48Z")

</div>

Hello, I am trying to install ROOT 6.30.04 on Ubuntu 22.04.03 for Windows. I installed ROOT from source, following the steps in the Youtube video “CERN ROOT Tutorial 2: Installing ROOT” (but installing the later versio…

---

## [Error saving TH1F histogram in TDirectory](https://root-forum.cern.ch/t/error-saving-th1f-histogram-in-tdirectory/58235)

<div class="topic-metadata">

**Author:** [@helton](https://root-forum.cern.ch/u/helton)\
**Replies:** 2\
**Last updated:** [February 22, 2024, 7:26pm UTC](https://root-forum.cern.ch/t/error-saving-th1f-histogram-in-tdirectory/58235 "2024-02-22T19:26:04Z")

</div>

ROOT Version:JupyROOT 6.30/02\_ Hello experts, I am trying to save a TH1F histogram in a TDirectory of a .root file. When I then try to open this .root file with TBrowser for example, I get these error lines: Error in T…

---

## [Problem in fitting same histogram](https://root-forum.cern.ch/t/problem-in-fitting-same-histogram/57962)

<div class="topic-metadata">

**Author:** [@gini](https://root-forum.cern.ch/u/gini)\
**Replies:** 12\
**Last updated:** [February 22, 2024, 10:38am UTC](https://root-forum.cern.ch/t/problem-in-fitting-same-histogram/57962 "2024-02-22T10:38:11Z")

</div>

Hi, I try to fill the same histogram using two different methods ie., the " histogram fill option " h2-\>Fill(y,x); “the set bin content of the histogram” h3-\>SetBinContent(i,x); (please see the attached macr…

---

## [Root File Size not decreasing after deleting its directory and contents inside it](https://root-forum.cern.ch/t/root-file-size-not-decreasing-after-deleting-its-directory-and-contents-inside-it/58241)

<div class="topic-metadata">

**Author:** [@rahul.verma](https://root-forum.cern.ch/u/rahul.verma)\
**Replies:** 1\
**Last updated:** [February 22, 2024, 10:22am UTC](https://root-forum.cern.ch/t/root-file-size-not-decreasing-after-deleting-its-directory-and-contents-inside-it/58241 "2024-02-22T10:22:14Z")

</div>

Dear Experts, I have a large root file for my analysis, I needed to delete some directories and their contents which i did using TFile \*InputFile = new TFile(“input.root”,“UPDATE”); dir = (TDirectory \*)InputFile-\>Get(…

---

## [User-defined TF1 plotting only in certain range, not all ranges](https://root-forum.cern.ch/t/user-defined-tf1-plotting-only-in-certain-range-not-all-ranges/58239)

<div class="topic-metadata">

**Author:** [@Shailesh](https://root-forum.cern.ch/u/Shailesh)\
**Replies:** 1\
**Last updated:** [February 22, 2024, 9:59am UTC](https://root-forum.cern.ch/t/user-defined-tf1-plotting-only-in-certain-range-not-all-ranges/58239 "2024-02-22T09:59:49Z")

</div>

Hi All I am trying to fit a user-defined function on some points using TF1. But by plotting it in certain ranges (I need -150 to -110 but I have tried other range as well), it gives the errors: Warning in \<TCanvas::Re…

---

## [I need to compile a specific root library, but have no compile directory](https://root-forum.cern.ch/t/i-need-to-compile-a-specific-root-library-but-have-no-compile-directory/58229)

<div class="topic-metadata">

**Author:** [@omarpena1](https://root-forum.cern.ch/u/omarpena1)\
**Replies:** 4\
**Last updated:** [February 22, 2024, 6:07am UTC](https://root-forum.cern.ch/t/i-need-to-compile-a-specific-root-library-but-have-no-compile-directory/58229 "2024-02-22T06:07:12Z")

</div>

So, I’ve installed root onto a linux vm on my computer. I need to compile a specific library for my uni I get stuck at the step where I have to write the make setup commands because my root doesn’t have a compile di…

---

## [Pedestal subtraction](https://root-forum.cern.ch/t/pedestal-subtraction/58237)

<div class="topic-metadata">

**Author:** [@Elena\_Veli](https://root-forum.cern.ch/u/Elena_Veli)\
**Replies:** 1\
**Last updated:** [February 22, 2024, 5:34am UTC](https://root-forum.cern.ch/t/pedestal-subtraction/58237 "2024-02-22T05:34:47Z")

</div>

Hello, I have some data with pedestal is there an efficient way to subtract the pedestal? Do I fit gaussian and subtract the sigma? Do I do average and subtract the mean? I have a root file with a tree and the branches a…

---

## [ROOT.TTreeReaderValue function doesn't recognize double and ctypes.c\_double type](https://root-forum.cern.ch/t/root-ttreereadervalue-function-doesnt-recognize-double-and-ctypes-c-double-type/58221)

<div class="topic-metadata">

**Author:** [@Kirill\_Sm](https://root-forum.cern.ch/u/Kirill_Sm)\
**Replies:** 2\
**Last updated:** [February 20, 2024, 3:27pm UTC](https://root-forum.cern.ch/t/root-ttreereadervalue-function-doesnt-recognize-double-and-ctypes-c-double-type/58221 "2024-02-20T15:27:52Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.26.10 Platform: Windows Hello everyone! I’m trying to use the ROOT.TTreeReaderValue function in pyROOT for a branch that contai…

---

## [Improving fitting](https://root-forum.cern.ch/t/improving-fitting/58196)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 5\
**Last updated:** [February 20, 2024, 9:38am UTC](https://root-forum.cern.ch/t/improving-fitting/58196 "2024-02-20T09:38:06Z")

</div>

Hello all, I am struggling to fit a function.having four parameters to a set of 5 data points The key issue I am trying to resolve is the abnormally hight chi^2 value of 845 The minimizer is Minuit / Migrad Chi2 …

---

## [How to do a better fit?](https://root-forum.cern.ch/t/how-to-do-a-better-fit/58203)

<div class="topic-metadata">

**Author:** [@Vikas\_Raj](https://root-forum.cern.ch/u/Vikas_Raj)\
**Replies:** 1\
**Last updated:** [February 19, 2024, 7:02am UTC](https://root-forum.cern.ch/t/how-to-do-a-better-fit/58203 "2024-02-19T07:02:29Z")

</div>

I have used RooFit on the above distribution with a chi2/ndf value ~ 1.7. However, the 3 points above are being left behind always. I can’t seem to incorporate them without too much distortion. What can I do?( or should …

---

## [pyROOT doesn't recognize "SAME" in histogram plot](https://root-forum.cern.ch/t/pyroot-doesnt-recognize-same-in-histogram-plot/58198)

<div class="topic-metadata">

**Author:** [@Kirill\_Sm](https://root-forum.cern.ch/u/Kirill_Sm)\
**Replies:** 2\
**Last updated:** [February 17, 2024, 12:17pm UTC](https://root-forum.cern.ch/t/pyroot-doesnt-recognize-same-in-histogram-plot/58198 "2024-02-17T12:17:04Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.26.10 Platform: Windows Hi everyone! I was trying to plot two histograms on the same canvas in python: canvas = ROOT.TCanvas(“…

---

## [THStack not working](https://root-forum.cern.ch/t/thstack-not-working/58199)

<div class="topic-metadata">

**Author:** [@RootFruit](https://root-forum.cern.ch/u/RootFruit)\
**Replies:** 2\
**Last updated:** [February 16, 2024, 3:46pm UTC](https://root-forum.cern.ch/t/thstack-not-working/58199 "2024-02-16T15:46:30Z")

</div>

ROOT Version: 6.24/06 Platform: Ubuntu Compiler: Not Provided I want to save a single object that contains multiple histograms that are overlayed. To be specific: I do not want to DRAW them with -\>Draw(“same”), I w…

---

## [Undefined reference when using Raspbian compile root based program](https://root-forum.cern.ch/t/undefined-reference-when-using-raspbian-compile-root-based-program/58074)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 12\
**Last updated:** [February 16, 2024, 7:59am UTC](https://root-forum.cern.ch/t/undefined-reference-when-using-raspbian-compile-root-based-program/58074 "2024-02-16T07:59:21Z")

</div>

Dear experts I tried to compile some program on my Raspberry pi which is using Raspbian system. And I installed root from source. I set the r++ as: alias r++="\`root-config --cxx --cflags --libs\` -lMinuit2" then I run…

---

## [Problems with Background()](https://root-forum.cern.ch/t/problems-with-background/58145)

<div class="topic-metadata">

**Author:** [@liliac](https://root-forum.cern.ch/u/liliac)\
**Replies:** 2\
**Last updated:** [February 15, 2024, 11:40pm UTC](https://root-forum.cern.ch/t/problems-with-background/58145 "2024-02-15T23:40:37Z")

</div>

Hello! I have a gamma spec histogram which I’d like to fit & remove the background of. I tried using the Background() function from TSpectrum, following the class reference example (ROOT: TSpectrum Class Reference), but …

---

## [Draw surfaces and lines in 3D?](https://root-forum.cern.ch/t/draw-surfaces-and-lines-in-3d/58164)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 3\
**Last updated:** [February 15, 2024, 8:11am UTC](https://root-forum.cern.ch/t/draw-surfaces-and-lines-in-3d/58164 "2024-02-15T08:11:49Z")

</div>

Dear experts I want to draw some cylindrical structure and a line passing through it, with a TGraph2D inside the structure. Maybe TPolyLine3D can draw the line in 3D, but I can not find how to draw a surface in 3D. Any …

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

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