# Newbie

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

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

---

## [Cmake cannot find VDT (hdtv)](https://root-forum.cern.ch/t/cmake-cannot-find-vdt-hdtv/58153)

<div class="topic-metadata">

**Author:** [@lweisel](https://root-forum.cern.ch/u/lweisel)\
**Replies:** 2\
**Last updated:** [February 13, 2024, 3:25pm UTC](https://root-forum.cern.ch/t/cmake-cannot-find-vdt-hdtv/58153 "2024-02-13T15:25:43Z")

</div>

I am trying to install hdtv software on MacOs Sonoma and when i try to run it in the terminal i get the error message: CMake Error at /opt/homebrew/Cellar/cmake/3.28.3/share/cmake/Modules/FindPackageHandleStandardArgs.c…

---

## [How to read multiple functions in ROOT macro](https://root-forum.cern.ch/t/how-to-read-multiple-functions-in-root-macro/58148)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 4\
**Last updated:** [February 13, 2024, 1:23pm UTC](https://root-forum.cern.ch/t/how-to-read-multiple-functions-in-root-macro/58148 "2024-02-13T13:23:32Z")

</div>

Dear experts I want to use two functions in my macro func1.cxx which likes: type func2(arg3, arg4); void func1(arg1, arg2){ something; some = func2(arg3, arg4); } type func2(arg3, arg4){ otherthings; r…

---

## [Strange issue while fitting](https://root-forum.cern.ch/t/strange-issue-while-fitting/58137)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 4\
**Last updated:** [February 11, 2024, 10:32pm UTC](https://root-forum.cern.ch/t/strange-issue-while-fitting/58137 "2024-02-11T22:32:58Z")

</div>

Hi I am trying to fit TF1 \*func = new TF1("fitf","\[3\] + \[2\]\*x + \[0\]/TMath::Sqrt(x + \[1\])", 50, 1400); func-\>SetParNames("a","b","c", "d"); to a set of four (x,y) points The fit results shows \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Upper limit on size of root file with hadd](https://root-forum.cern.ch/t/upper-limit-on-size-of-root-file-with-hadd/35069)

<div class="topic-metadata">

**Author:** [@ramkrishna](https://root-forum.cern.ch/u/ramkrishna)\
**Replies:** 14\
**Last updated:** [February 11, 2024, 10:11am UTC](https://root-forum.cern.ch/t/upper-limit-on-size-of-root-file-with-hadd/35069 "2024-02-11T10:11:00Z")

</div>

Hi, I am trying to hadd 15 root files whose total size is ~18Gb. It starts hadding the root files but never finishes. These 15 root files I created from ~1500 different root files. What do you think might be the issue?…

---

## [Python \\include file not found producing fatal error in Root build install](https://root-forum.cern.ch/t/python-include-file-not-found-producing-fatal-error-in-root-build-install/58118)

<div class="topic-metadata">

**Author:** [@omarpena1](https://root-forum.cern.ch/u/omarpena1)\
**Replies:** 2\
**Last updated:** [February 10, 2024, 10:54am UTC](https://root-forum.cern.ch/t/python-include-file-not-found-producing-fatal-error-in-root-build-install/58118 "2024-02-10T10:54:20Z")

</div>

I’m building root form the source and I came across this error: \<\<\< cling interactive line includer \>\>\>:1:10: fatal error: ‘Files\\Win dowsApps\\PythonSoftwareFoundation.Python.3.11\_3.11.2032.0\_x64\_\_qbz5n2 kfra8p0\\inclu…

---

## [Get statistical uncertainty for the mean of a histograms](https://root-forum.cern.ch/t/get-statistical-uncertainty-for-the-mean-of-a-histograms/58120)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 2\
**Last updated:** [February 10, 2024, 7:04am UTC](https://root-forum.cern.ch/t/get-statistical-uncertainty-for-the-mean-of-a-histograms/58120 "2024-02-10T07:04:05Z")

</div>

Hi, Can someone please suggest how can the uncertainty in the mean of a histogram be defined, especially for a non Gaussian distribution wherein fitting and getting FWHM not possible? Thanks a lot

---

## [Is it possible to change the distance between the two dimensional fit contours](https://root-forum.cern.ch/t/is-it-possible-to-change-the-distance-between-the-two-dimensional-fit-contours/58110)

<div class="topic-metadata">

**Author:** [@gini](https://root-forum.cern.ch/u/gini)\
**Replies:** 5\
**Last updated:** [February 9, 2024, 3:31pm UTC](https://root-forum.cern.ch/t/is-it-possible-to-change-the-distance-between-the-two-dimensional-fit-contours/58110 "2024-02-09T15:31:39Z")

</div>

Hi, I have a two dimensional histogram which I fit using a two dimensional fit function (see figure below) Here for visualization is it possible to adjust the distance between the different fit contours, for better v…

---

## [Histogram stack not updating axis limits automatically](https://root-forum.cern.ch/t/histogram-stack-not-updating-axis-limits-automatically/58100)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 2\
**Last updated:** [February 9, 2024, 5:33am UTC](https://root-forum.cern.ch/t/histogram-stack-not-updating-axis-limits-automatically/58100 "2024-02-09T05:33:36Z")

</div>

Hello users, I am trying to adjust the limits of a Histogram stack { TCanvas\* c = new TCanvas("c","c",1500,800); Double\_t eps = 0.005; TPad\* p1 = new TPad("p1","p1",0.1,0.5,0.9,0.9,0); p1-\>Draw(); TPad\* p2 = new…

---

## [Writing out events larger than 1 GB](https://root-forum.cern.ch/t/writing-out-events-larger-than-1-gb/33106)

<div class="topic-metadata">

**Author:** [@kurt.biery](https://root-forum.cern.ch/u/kurt.biery)\
**Replies:** 3\
**Last updated:** [February 8, 2024, 11:34am UTC](https://root-forum.cern.ch/t/writing-out-events-larger-than-1-gb/33106 "2024-02-08T11:34:29Z")

</div>

In the protoDUNE DAQ, we occasionally run tests that produce raw data events that are larger than 1 GB (for example, 4.6 GB with a TPC readout window of 1 second). At the moment, the configuration of our ROOT/art output…

---

## [Trouble with read ROOT file in React](https://root-forum.cern.ch/t/trouble-with-read-root-file-in-react/58080)

<div class="topic-metadata">

**Author:** [@fljs825](https://root-forum.cern.ch/u/fljs825)\
**Replies:** 10\
**Last updated:** [February 7, 2024, 12:46pm UTC](https://root-forum.cern.ch/t/trouble-with-read-root-file-in-react/58080 "2024-02-07T12:46:33Z")

</div>

Dear all, I’m currently struggling to create a webpage that can handle ROOT files. Utilizing JSROOT, I managed to successfully read ROOT files and draw histograms on my webpage, thanks to the documentation available at J…

---

## [Error: redefinition of a variable](https://root-forum.cern.ch/t/error-redefinition-of-a-variable/40574)

<div class="topic-metadata">

**Author:** [@TheScientist](https://root-forum.cern.ch/u/TheScientist)\
**Replies:** 23\
**Last updated:** [February 7, 2024, 11:44am UTC](https://root-forum.cern.ch/t/error-redefinition-of-a-variable/40574 "2024-02-07T11:44:01Z")

</div>

When I try to load the same code a second time in the terminal, it shows the following error. My understanding is that if you create a variable using “new”, the memory is stored in a heap so you have to use delete com…

---

## [Appending an object of vector\<double\> to an existing TBranch](https://root-forum.cern.ch/t/appending-an-object-of-vector-double-to-an-existing-tbranch/58085)

<div class="topic-metadata">

**Author:** [@samuelb91](https://root-forum.cern.ch/u/samuelb91)\
**Replies:** 3\
**Last updated:** [February 7, 2024, 7:31am UTC](https://root-forum.cern.ch/t/appending-an-object-of-vector-double-to-an-existing-tbranch/58085 "2024-02-07T07:31:32Z")

</div>

Hi there, I’m having a bit of an issue with a rather large executable. I run a set of calculations that, while not costly to compute, take up a fair bit of memory with the current IO scheme I have. Basically, I create …

---

## [How to Pass a TTreeReaderArray\<float\> to a function](https://root-forum.cern.ch/t/how-to-pass-a-ttreereaderarray-float-to-a-function/58084)

<div class="topic-metadata">

**Author:** [@GorgeGrouse](https://root-forum.cern.ch/u/GorgeGrouse)\
**Replies:** 1\
**Last updated:** [February 7, 2024, 4:53am UTC](https://root-forum.cern.ch/t/how-to-pass-a-ttreereaderarray-float-to-a-function/58084 "2024-02-07T04:53:57Z")

</div>

I want to pass a TTreeReaderArray\<float\> to a function, and I haven’t been able to find the relevant documentation. Here’s my function: TVector3 findJetMatchReconToGen(TTreeReaderArray\<float\> genMomArrayX, TTreeReaderA…

---

## [Event count](https://root-forum.cern.ch/t/event-count/58082)

<div class="topic-metadata">

**Author:** [@alex14](https://root-forum.cern.ch/u/alex14)\
**Replies:** 1\
**Last updated:** [February 7, 2024, 4:51am UTC](https://root-forum.cern.ch/t/event-count/58082 "2024-02-07T04:51:01Z")

</div>

Hello, I need help with the histogram normalization - per-event normalization. The thing is, I have several cuts/selections in my event loop, and every time I consider an event in the filling of a TH1D (not every track),…

---

## [Classes nested in namespace](https://root-forum.cern.ch/t/classes-nested-in-namespace/58038)

<div class="topic-metadata">

**Author:** [@georgi\_petkov](https://root-forum.cern.ch/u/georgi_petkov)\
**Replies:** 3\
**Last updated:** [February 6, 2024, 11:16am UTC](https://root-forum.cern.ch/t/classes-nested-in-namespace/58038 "2024-02-06T11:16:55Z")

</div>

Hello, I have the following issue, I simple case. I have declared a class #pragma once #ifndef EsbIO\_hpp #define EsbIO\_hpp 1 #include \<string\> //#include "G4VPhysicalVolume.hh" #include "TObject.h" namespace core …

---

## [Unable to draw TLine in bottom Pad](https://root-forum.cern.ch/t/unable-to-draw-tline-in-bottom-pad/58073)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 2\
**Last updated:** [February 6, 2024, 6:34am UTC](https://root-forum.cern.ch/t/unable-to-draw-tline-in-bottom-pad/58073 "2024-02-06T06:34:27Z")

</div>

Hi all, I am trying to draw a horizontal line ay y =0 in the bottom pad, below a TGraph pad. However I am not seeing the line being drawn. Can anyone please help in this regard? Going through Need to add a horizontal …

---

## [The option W in Fit()?](https://root-forum.cern.ch/t/the-option-w-in-fit/58063)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 1\
**Last updated:** [February 5, 2024, 11:49am UTC](https://root-forum.cern.ch/t/the-option-w-in-fit/58063 "2024-02-05T11:49:00Z")

</div>

"W" \[Set\](https://root.cern.ch/root/html528/TGraph.html#TGraph:Set) all weights to 1; ignore error bars Hi, Sorry for a naive query, but can someone please help explain option W while using the Fit() method? I understa…

---

## [Fitting Gaussians without so much user input](https://root-forum.cern.ch/t/fitting-gaussians-without-so-much-user-input/58018)

<div class="topic-metadata">

**Author:** [@liliac](https://root-forum.cern.ch/u/liliac)\
**Replies:** 4\
**Last updated:** [February 5, 2024, 8:14am UTC](https://root-forum.cern.ch/t/fitting-gaussians-without-so-much-user-input/58018 "2024-02-05T08:14:29Z")

</div>

Hello! I’m new at ROOT and I’m currently working with gamma spectrums. My goal is to write a ROOT script that can find the peaks and fit them with a Gaussian. I’ve managed to find the peaks, but I’m confused when it come…

---

## [FFT in TConvolution problem](https://root-forum.cern.ch/t/fft-in-tconvolution-problem/58042)

<div class="topic-metadata">

**Author:** [@mmartin2](https://root-forum.cern.ch/u/mmartin2)\
**Replies:** 3\
**Last updated:** [February 3, 2024, 11:55pm UTC](https://root-forum.cern.ch/t/fft-in-tconvolution-problem/58042 "2024-02-03T23:55:45Z")

</div>

Hi everybody, I am using ROOT in Ubuntu 22.04.2 LTS, latest version 6.30/02 installed via snap. I am trying to use the TConvolution class. When I type the "true" option meant to use FFT and later do a Fit to a TH1D, I g…

---

## [Segmentation fault while trying to add histograms](https://root-forum.cern.ch/t/segmentation-fault-while-trying-to-add-histograms/58017)

<div class="topic-metadata">

**Author:** [@rushabhgala](https://root-forum.cern.ch/u/rushabhgala)\
**Replies:** 4\
**Last updated:** [February 2, 2024, 12:57pm UTC](https://root-forum.cern.ch/t/segmentation-fault-while-trying-to-add-histograms/58017 "2024-02-02T12:57:45Z")

</div>

\#include \<TFile.h\> #include \<TH2F.h\> #include \<TCanvas.h\> #include \<iostream\> #include \<TSystem.h\> void addhist() { // Create a canvas to display the histograms TCanvas \*canvas = new TCanvas("canvas", "Combined …

---

## [How to find out whether a data point is inside an ellipse (TEllipse)](https://root-forum.cern.ch/t/how-to-find-out-whether-a-data-point-is-inside-an-ellipse-tellipse/57960)

<div class="topic-metadata">

**Author:** [@kiesling](https://root-forum.cern.ch/u/kiesling)\
**Replies:** 9\
**Last updated:** [January 26, 2024, 4:03pm UTC](https://root-forum.cern.ch/t/how-to-find-out-whether-a-data-point-is-inside-an-ellipse-tellipse/57960 "2024-01-26T16:03:38Z")

</div>

I use the class TEllipse as 95% contour, generated from a set of points in two dimensions. How can I find out whether a new point is inside the ellipse. I want to use physical coordinates, not pixels on my screen.

---

## [Retaining multiple gaussian fits on a histogram](https://root-forum.cern.ch/t/retaining-multiple-gaussian-fits-on-a-histogram/58022)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 2\
**Last updated:** [February 1, 2024, 10:36am UTC](https://root-forum.cern.ch/t/retaining-multiple-gaussian-fits-on-a-histogram/58022 "2024-02-01T10:36:05Z")

</div>

Hi I am trying to fit the same gaussian function to multiple regions of the histogram, different peaks basically. Is there any way I can draw all the fits on the histogram simultaneously. Presently as soon as I fit the…

---

## [Newbie with root and MakeSelector class](https://root-forum.cern.ch/t/newbie-with-root-and-makeselector-class/58012)

<div class="topic-metadata">

**Author:** [@Eru\_Iluvatar](https://root-forum.cern.ch/u/Eru_Iluvatar)\
**Replies:** 3\
**Last updated:** [January 31, 2024, 9:36pm UTC](https://root-forum.cern.ch/t/newbie-with-root-and-makeselector-class/58012 "2024-01-31T21:36:01Z")

</div>

Hello, I am trying get familiar with root and especially the MakeSelector class. From the root command I have created the two files .h and .C but in my effort to analyze a branch, when I try to “Draw” a histogram with …

---

## [GLSMC Integrator](https://root-forum.cern.ch/t/glsmc-integrator/58007)

<div class="topic-metadata">

**Author:** [@dfagundes](https://root-forum.cern.ch/u/dfagundes)\
**Replies:** 4\
**Last updated:** [January 31, 2024, 8:06pm UTC](https://root-forum.cern.ch/t/glsmc-integrator/58007 "2024-01-31T20:06:53Z")

</div>

Hi guys. I’m struggling to compute integrals with the class ROOT::Math::GSLMCIntegrator lately. Here’s a piece of my code where the class is invoked: double Integrator3DRE(double \* p){ const int ndim=3; const int np…

---

## [Installing ROOT with the extension R](https://root-forum.cern.ch/t/installing-root-with-the-extension-r/57873)

<div class="topic-metadata">

**Author:** [@Tanysha](https://root-forum.cern.ch/u/Tanysha)\
**Replies:** 4\
**Last updated:** [January 31, 2024, 2:00pm UTC](https://root-forum.cern.ch/t/installing-root-with-the-extension-r/57873 "2024-01-31T14:00:15Z")

</div>

\_\_\_Hello! I am trying to install ROOT with the R option. I downloaded and installed the R, Rccp, and RInside packages. At the ROOT build stage, an error appears CMakeFiles/RInterface.dir/src/RExports.cxx.o: In function …

---

## [Issue extracting data from nested TBranchElement](https://root-forum.cern.ch/t/issue-extracting-data-from-nested-tbranchelement/58000)

<div class="topic-metadata">

**Author:** [@sbutalla](https://root-forum.cern.ch/u/sbutalla)\
**Replies:** 1\
**Last updated:** [January 30, 2024, 11:59am UTC](https://root-forum.cern.ch/t/issue-extracting-data-from-nested-tbranchelement/58000 "2024-01-30T11:59:41Z")

</div>

Hi Everyone, I am trying to extract data from a ROOT file and I am unable to retrieve the data contained in the leaves of one of the subbranches. For reference, here is screen shot of the TBrowser output of the branch/l…

---

## [Plot branch with weight from other file](https://root-forum.cern.ch/t/plot-branch-with-weight-from-other-file/57877)

<div class="topic-metadata">

**Author:** [@Annzm](https://root-forum.cern.ch/u/Annzm)\
**Replies:** 4\
**Last updated:** [January 28, 2024, 6:55am UTC](https://root-forum.cern.ch/t/plot-branch-with-weight-from-other-file/57877 "2024-01-28T06:55:38Z")

</div>

Hi, i have file1.root, having a TTree. wants to plot a branch from this try and apply weight. but the weight is in the file2.root. im stuck how to do this. or is there any way to copy the weight branch from file2.root …

---

## [How to consider uncertanities while fitting a histogarm](https://root-forum.cern.ch/t/how-to-consider-uncertanities-while-fitting-a-histogarm/57910)

<div class="topic-metadata">

**Author:** [@gini](https://root-forum.cern.ch/u/gini)\
**Replies:** 4\
**Last updated:** [January 26, 2024, 9:49am UTC](https://root-forum.cern.ch/t/how-to-consider-uncertanities-while-fitting-a-histogarm/57910 "2024-01-26T09:49:55Z")

</div>

Dear Experts , I have a histogram and for each of its bins I have the uncertainties estimated using error propagation, now I would like to fit my histogram with errors. I have the following questions : If I draw my …

---

## [ROOT 6, Ubuntu Snap installation, Access to system include directories](https://root-forum.cern.ch/t/root-6-ubuntu-snap-installation-access-to-system-include-directories/57965)

<div class="topic-metadata">

**Author:** [@m444](https://root-forum.cern.ch/u/m444)\
**Replies:** 10\
**Last updated:** [January 25, 2024, 11:59pm UTC](https://root-forum.cern.ch/t/root-6-ubuntu-snap-installation-access-to-system-include-directories/57965 "2024-01-25T23:59:22Z")

</div>

Hi all, I don’t seem to have proper access to system include directories from a Ubuntu snap installed ROOT instance: $ file /usr/include/ceres/ceres.h /usr/include/ceres/ceres.h: C source, ASCII text but root \[10\] .…

---

## [Building 32-bit ROOT on Linux EL9](https://root-forum.cern.ch/t/building-32-bit-root-on-linux-el9/54687)

<div class="topic-metadata">

**Author:** [@lgmills](https://root-forum.cern.ch/u/lgmills)\
**Replies:** 18\
**Last updated:** [January 25, 2024, 12:02am UTC](https://root-forum.cern.ch/t/building-32-bit-root-on-linux-el9/54687 "2024-01-25T00:02:03Z")

</div>

Hello ROOT community, I’m attempting to build 32-bit ROOT 6.28.02 from scratch on AlmaLinux 9.1 x86\_64. I was able to successfully build the 64-bit version, but am having a bit of difficulty building a 32-bit version. …

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

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