# Newbie

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

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

---

## [Understand MINUIT](https://root-forum.cern.ch/t/understand-minuit/50446)

<div class="topic-metadata">

**Author:** [@Dil](https://root-forum.cern.ch/u/Dil)\
**Replies:** 5\
**Last updated:** [June 22, 2022, 3:30pm UTC](https://root-forum.cern.ch/t/understand-minuit/50446 "2022-06-22T15:30:51Z")

</div>

Hello Experts, I am having some trouble understanding how to use MINUIT class for minimization function. I have the following function func= TMath::Power(x,par\[0\]) \* TMath::Power((1-x),par\[1\])TMath::Power((1+ (yy)/ pa…

---

## [Have a set of point and a colored band in a MultiGraph](https://root-forum.cern.ch/t/have-a-set-of-point-and-a-colored-band-in-a-multigraph/50519)

<div class="topic-metadata">

**Author:** [@mzriu](https://root-forum.cern.ch/u/mzriu)\
**Replies:** 3\
**Last updated:** [June 22, 2022, 2:35pm UTC](https://root-forum.cern.ch/t/have-a-set-of-point-and-a-colored-band-in-a-multigraph/50519 "2022-06-22T14:35:29Z")

</div>

Hi, I am trying to draw a MultiGraph with a set of data points and their average value/error as a color band. Right now I have the following code : TCanvas \*c1 = new TCanvas("c1", "Neutron lifetime", 700, 500); c1-\>Se…

---

## [How to accumulate histogram using function](https://root-forum.cern.ch/t/how-to-accumulate-histogram-using-function/50240)

<div class="topic-metadata">

**Author:** [@LongHoa](https://root-forum.cern.ch/u/LongHoa)\
**Replies:** 6\
**Last updated:** [June 22, 2022, 12:20pm UTC](https://root-forum.cern.ch/t/how-to-accumulate-histogram-using-function/50240 "2022-06-22T12:20:01Z")

</div>

Hi Experts, I’m writing a function that accumulates histogram read from files to an empty histogram. The function function that read the histograms and accumulate the histogram is as follow: int CollectHist ( TH1D \*…

---

## [Root exiting without any error](https://root-forum.cern.ch/t/root-exiting-without-any-error/50484)

<div class="topic-metadata">

**Author:** [@hawexrutile](https://root-forum.cern.ch/u/hawexrutile)\
**Replies:** 7\
**Last updated:** [June 22, 2022, 7:25am UTC](https://root-forum.cern.ch/t/root-exiting-without-any-error/50484 "2022-06-22T07:25:03Z")

</div>

This is a duplicate of previously asked question in the forum. In my case though I don’t think its a memory issue(could be). I normally load a cpp file containing functions, call a particular function to make rapidity l…

---

## [Cling Newbie Intro Document](https://root-forum.cern.ch/t/cling-newbie-intro-document/50403)

<div class="topic-metadata">

**Author:** [@geneweber](https://root-forum.cern.ch/u/geneweber)\
**Replies:** 3\
**Last updated:** [June 21, 2022, 10:46am UTC](https://root-forum.cern.ch/t/cling-newbie-intro-document/50403 "2022-06-21T10:46:40Z")

</div>

Hi, There doesn’t seem to be a lot of introductory level information for Cling online. I learned the basics by reading the forum, asking a couple questions on the forum, exploring the code, and experimenting. I’m planni…

---

## [Consider correlation matrix of fitting parameters in TF1 before a fit](https://root-forum.cern.ch/t/consider-correlation-matrix-of-fitting-parameters-in-tf1-before-a-fit/50491)

<div class="topic-metadata">

**Author:** [@Nyx](https://root-forum.cern.ch/u/Nyx)\
**Replies:** 1\
**Last updated:** [June 21, 2022, 10:35am UTC](https://root-forum.cern.ch/t/consider-correlation-matrix-of-fitting-parameters-in-tf1-before-a-fit/50491 "2022-06-21T10:35:04Z")

</div>

I was wondering if it’s possible to include a known correlation matrix for certain fitting parameters before doing the fit. I have been reading other questions in the forum and read the documentation and I found how to g…

---

## [GetConfidenceInterval() not visible](https://root-forum.cern.ch/t/getconfidenceinterval-not-visible/50462)

<div class="topic-metadata">

**Author:** [@xinyih8](https://root-forum.cern.ch/u/xinyih8)\
**Replies:** 1\
**Last updated:** [June 20, 2022, 7:28am UTC](https://root-forum.cern.ch/t/getconfidenceinterval-not-visible/50462 "2022-06-20T07:28:23Z")

</div>

I use the code similar to ConfidenceIntervals.C File Reference. But the output image only contains scatter plot and fitting line. Do you know how to make confidence interval visible? TCanvas \*c1 = new TCanvas(“c1”,“grap…

---

## [Installing PyRoot on Windows](https://root-forum.cern.ch/t/installing-pyroot-on-windows/50470)

<div class="topic-metadata">

**Author:** [@Fabian\_Rockenwegger](https://root-forum.cern.ch/u/Fabian_Rockenwegger)\
**Replies:** 1\
**Last updated:** [June 18, 2022, 3:54pm UTC](https://root-forum.cern.ch/t/installing-pyroot-on-windows/50470 "2022-06-18T15:54:31Z")

</div>

Dear Experts, I am a student trying to analyse particle detector data. Sadly, I am helpless trying to find how to, or which guides to follow for installing PyROOT on a Windows10/11 machine. I have no specific problem a…

---

## [Reweight in tmva's bdt](https://root-forum.cern.ch/t/reweight-in-tmvas-bdt/50466)

<div class="topic-metadata">

**Author:** [@NgJunKai](https://root-forum.cern.ch/u/NgJunKai)\
**Replies:** 1\
**Last updated:** [June 18, 2022, 2:18pm UTC](https://root-forum.cern.ch/t/reweight-in-tmvas-bdt/50466 "2022-06-18T14:18:10Z")

</div>

Hi experts, I am using TMVA to do classification training with Signal and Background events from separate root file (with preselection cut so that I ended up with more signal than background, see the training output bel…

---

## [Need an example that can covert data to tevetrack and tevepointset for jsroot](https://root-forum.cern.ch/t/need-an-example-that-can-covert-data-to-tevetrack-and-tevepointset-for-jsroot/50432)

<div class="topic-metadata">

**Author:** [@iyuicu](https://root-forum.cern.ch/u/iyuicu)\
**Replies:** 4\
**Last updated:** [June 18, 2022, 11:00am UTC](https://root-forum.cern.ch/t/need-an-example-that-can-covert-data-to-tevetrack-and-tevepointset-for-jsroot/50432 "2022-06-18T11:00:37Z")

</div>

ROOT Version: 6.27/01 Platform: Ubuntu 20.04 Compiler: c++ (GCC) 11.2.0 Dear Experts! I am a beginner with root. In our group, we are working for a simulation project. I’m asked to develop a simple event displayer.…

---

## [Errors computation: general question](https://root-forum.cern.ch/t/errors-computation-general-question/50453)

<div class="topic-metadata">

**Author:** [@Lorenzo](https://root-forum.cern.ch/u/Lorenzo)\
**Replies:** 3\
**Last updated:** [June 17, 2022, 6:00pm UTC](https://root-forum.cern.ch/t/errors-computation-general-question/50453 "2022-06-17T18:00:42Z")

</div>

2 very general questions on error computation in root. When I am fitting some data in a TGraphErrors and I have such a small number of points that the NDF=0 (eg a line on two data points), how does root computes the err…

---

## [pyROOT changing and writing to subdirectory](https://root-forum.cern.ch/t/pyroot-changing-and-writing-to-subdirectory/50217)

<div class="topic-metadata">

**Author:** [@ntoikka](https://root-forum.cern.ch/u/ntoikka)\
**Replies:** 4\
**Last updated:** [June 17, 2022, 4:15pm UTC](https://root-forum.cern.ch/t/pyroot-changing-and-writing-to-subdirectory/50217 "2022-06-17T16:15:37Z")

</div>

Hi! I’m currently trying to write a histogram from a dataframe to a .root files subdirectory. The creation of the directory works and writing of the histogram, but it doesn’t go to the subdirectory. The problem is proba…

---

## [How can one use the executables stored in the /bin directory of root installation folder?](https://root-forum.cern.ch/t/how-can-one-use-the-executables-stored-in-the-bin-directory-of-root-installation-folder/50440)

<div class="topic-metadata">

**Author:** [@Rico](https://root-forum.cern.ch/u/Rico)\
**Replies:** 4\
**Last updated:** [June 17, 2022, 4:12pm UTC](https://root-forum.cern.ch/t/how-can-one-use-the-executables-stored-in-the-bin-directory-of-root-installation-folder/50440 "2022-06-17T16:12:25Z")

</div>

Hi everybody, I was trying to use the “hadd” executable to merge multiple root files in the root interface, i.e I’ve typed the following two commands on terminal: root hadd MergedOutput.root output{0…3}.root Howe…

---

## [2D fitting with python functions in pyROOT](https://root-forum.cern.ch/t/2d-fitting-with-python-functions-in-pyroot/50180)

<div class="topic-metadata">

**Author:** [@happyisland](https://root-forum.cern.ch/u/happyisland)\
**Replies:** 7\
**Last updated:** [June 17, 2022, 2:29pm UTC](https://root-forum.cern.ch/t/2d-fitting-with-python-functions-in-pyroot/50180 "2022-06-17T14:29:22Z")

</div>

Hi, I am trying to fit 2D histogram with 2D Gaussian function defined in python with pyROOT. Using Eval, I am able to display the TF2 from the python function. However, I am unable to fit with the TF2.How can I do this…

---

## [Working through ROOT primer](https://root-forum.cern.ch/t/working-through-root-primer/50426)

<div class="topic-metadata">

**Author:** [@moaningsalmon](https://root-forum.cern.ch/u/moaningsalmon)\
**Replies:** 3\
**Last updated:** [June 16, 2022, 7:27pm UTC](https://root-forum.cern.ch/t/working-through-root-primer/50426 "2022-06-16T19:27:52Z")

</div>

Hello, I’ve just finished installing ROOT. I think I’ve done it successfully… Anyway, I’m trying to work my way through the ROOT Primer, and I’m already running into problems with the .Draw function. I put in this: TF1 …

---

## [TClass::BuildRealData : Cannot find any ShowMembers function for](https://root-forum.cern.ch/t/tclass-buildrealdata-cannot-find-any-showmembers-function-for/50018)

<div class="topic-metadata">

**Author:** [@Bassam](https://root-forum.cern.ch/u/Bassam)\
**Replies:** 9\
**Last updated:** [June 16, 2022, 3:08pm UTC](https://root-forum.cern.ch/t/tclass-buildrealdata-cannot-find-any-showmembers-function-for/50018 "2022-06-16T15:08:20Z")

</div>

Hello Experts, I am trying to read a root tree that has custom class entries. I keep getting the following error, and I am not really sure what it is referring to. I could not find an answer by looking it up on the foru…

---

## [Installation Issues on virtual machine (Linux)](https://root-forum.cern.ch/t/installation-issues-on-virtual-machine-linux/50260)

<div class="topic-metadata">

**Author:** [@Andrea\_Baldassi](https://root-forum.cern.ch/u/Andrea_Baldassi)\
**Replies:** 3\
**Last updated:** [June 16, 2022, 7:33am UTC](https://root-forum.cern.ch/t/installation-issues-on-virtual-machine-linux/50260 "2022-06-16T07:33:31Z")

</div>

I’ve been trying to install root on a linux virtual machine and but i have problems completing and i receive this error message: CMake Error at XROOTD-stamp/XROOTD-download-Release.cmake:49 (message): Command failed: 1 …

---

## [Getting the color axis of a colz histogram to a log scale](https://root-forum.cern.ch/t/getting-the-color-axis-of-a-colz-histogram-to-a-log-scale/50429)

<div class="topic-metadata">

**Author:** [@anelli](https://root-forum.cern.ch/u/anelli)\
**Replies:** 1\
**Last updated:** [June 16, 2022, 4:43am UTC](https://root-forum.cern.ch/t/getting-the-color-axis-of-a-colz-histogram-to-a-log-scale/50429 "2022-06-16T04:43:38Z")

</div>

I have a 2d histogram that I would like to draw as col or colz, but I want to have the color axis be in a log scale. I have tried basically every order and permutation of the following code (moving things around, commen…

---

## [TF2 2D array](https://root-forum.cern.ch/t/tf2-2d-array/50397)

<div class="topic-metadata">

**Author:** [@Dil](https://root-forum.cern.ch/u/Dil)\
**Replies:** 2\
**Last updated:** [June 15, 2022, 6:02pm UTC](https://root-forum.cern.ch/t/tf2-2d-array/50397 "2022-06-15T18:02:04Z")

</div>

Hello Rooters, I tried to add TF2 2D array as follows.(First I tried TF2 1D array, it was working fine) Once I introduced following lines to the code.root quit unexpectedly. TF2 \* fLikeli\[nQ2\]\[nxB\]; for (int jQ2…

---

## [Get Profile X from TH2D considering average and weights](https://root-forum.cern.ch/t/get-profile-x-from-th2d-considering-average-and-weights/50402)

<div class="topic-metadata">

**Author:** [@Nyx](https://root-forum.cern.ch/u/Nyx)\
**Replies:** 1\
**Last updated:** [June 15, 2022, 1:54pm UTC](https://root-forum.cern.ch/t/get-profile-x-from-th2d-considering-average-and-weights/50402 "2022-06-15T13:54:13Z")

</div>

I have a TH2D object where for each (x,y) there is an associated variable z. This variable z is in the range \[0,1\]. I want to project this onto a TH1D histogram in 2 different ways: For each bin x, the content is the …

---

## [Trouble with fit function](https://root-forum.cern.ch/t/trouble-with-fit-function/50407)

<div class="topic-metadata">

**Author:** [@rauber1](https://root-forum.cern.ch/u/rauber1)\
**Replies:** 2\
**Last updated:** [June 15, 2022, 1:37pm UTC](https://root-forum.cern.ch/t/trouble-with-fit-function/50407 "2022-06-15T13:37:55Z")

</div>

Hello, I am new to coding and root. I am learning how to use root for a summer program and I have ran into a problem I do not understand. Below I have copied my code. (when I tried uploading a message told me new users …

---

## [Fitting Poisson](https://root-forum.cern.ch/t/fitting-poisson/50374)

<div class="topic-metadata">

**Author:** [@Gec](https://root-forum.cern.ch/u/Gec)\
**Replies:** 3\
**Last updated:** [June 14, 2022, 1:23pm UTC](https://root-forum.cern.ch/t/fitting-poisson/50374 "2022-06-14T13:23:15Z")

</div>

Getting memory leak after trying to fit histogram data to poisson function { f=new TF1(“f”, “TMath::Poisson(x,\[0\])”, 0, 16); h=new TH1D("h", "Histogram", 100, 0, 16); h-\>Fill(2,3); h-\>Fill(3, 13); h-\>Fill(4, 22); h-\>F…

---

## [Trying to use Plugin feature with ROOT6 with -std=c++17](https://root-forum.cern.ch/t/trying-to-use-plugin-feature-with-root6-with-std-c-17/49746)

<div class="topic-metadata">

**Author:** [@Rhys\_Poulton](https://root-forum.cern.ch/u/Rhys_Poulton)\
**Replies:** 14\
**Last updated:** [June 13, 2022, 10:05pm UTC](https://root-forum.cern.ch/t/trying-to-use-plugin-feature-with-root6-with-std-c-17/49746 "2022-06-13T22:05:25Z")

</div>

I am trying to run a ROOT6 code with the -std=c++17 which has a plugin feature defined as follows: extern void CWB\_Plugin(TFile\* jfile, CWB::config\*, network\*, WSeries\<double\>\*, TString, int); where this code is purpo…

---

## [Help with plotting multiple histograms in one plot with logarithmic scale with an offset](https://root-forum.cern.ch/t/help-with-plotting-multiple-histograms-in-one-plot-with-logarithmic-scale-with-an-offset/50346)

<div class="topic-metadata">

**Author:** [@Nisha](https://root-forum.cern.ch/u/Nisha)\
**Replies:** 5\
**Last updated:** [June 13, 2022, 8:25pm UTC](https://root-forum.cern.ch/t/help-with-plotting-multiple-histograms-in-one-plot-with-logarithmic-scale-with-an-offset/50346 "2022-06-13T20:25:33Z")

</div>

Hello Root Experts, I am trying to plot multiple histograms in one plot. I have converted the yaxis of each histogram to logscale individually. However, when I try to plot all these histograms in one single plot, I do n…

---

## [How to write a file in Cling non-interactive mode](https://root-forum.cern.ch/t/how-to-write-a-file-in-cling-non-interactive-mode/50380)

<div class="topic-metadata">

**Author:** [@geneweber](https://root-forum.cern.ch/u/geneweber)\
**Replies:** 2\
**Last updated:** [June 13, 2022, 6:05pm UTC](https://root-forum.cern.ch/t/how-to-write-a-file-in-cling-non-interactive-mode/50380 "2022-06-13T18:05:04Z")

</div>

Cling Version: 1.0 dev Platform: Ubuntu Linux 20.04.1 Compiler: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 Hi, I’d like to be able to do file io running Cling in non-interactive mode. Running interactively, given th…

---

## [TH1 GetRMS and GetRMSError](https://root-forum.cern.ch/t/th1-getrms-and-getrmserror/50382)

<div class="topic-metadata">

**Author:** [@EVTO](https://root-forum.cern.ch/u/EVTO)\
**Replies:** 4\
**Last updated:** [June 13, 2022, 4:47pm UTC](https://root-forum.cern.ch/t/th1-getrms-and-getrmserror/50382 "2022-06-13T16:47:10Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided Hi. Sorry for the silly question: is there a minimum number of entries…

---

## [Unable to display the histogram entries and standard deviation](https://root-forum.cern.ch/t/unable-to-display-the-histogram-entries-and-standard-deviation/50280)

<div class="topic-metadata">

**Author:** [@gini](https://root-forum.cern.ch/u/gini)\
**Replies:** 11\
**Last updated:** [June 13, 2022, 1:23pm UTC](https://root-forum.cern.ch/t/unable-to-display-the-histogram-entries-and-standard-deviation/50280 "2022-06-13T13:23:42Z")

</div>

Hi, When I run the following Macro, I am able to plot the data, unfortunately, I am not able to display the histogram entries and widths. Could someone please help me how to do this? { TTree \*MyTree = new TTree(“MyTre…

---

## [Defining when a fit fails](https://root-forum.cern.ch/t/defining-when-a-fit-fails/50364)

<div class="topic-metadata">

**Author:** [@Mitchem](https://root-forum.cern.ch/u/Mitchem)\
**Replies:** 1\
**Last updated:** [June 13, 2022, 9:53am UTC](https://root-forum.cern.ch/t/defining-when-a-fit-fails/50364 "2022-06-13T09:53:57Z")

</div>

ROOT Version: 6.22/08 Platform: Ubuntu 20.04.2 LTS Compiler: g++ I am fitting histograms with the Log-Liklihood fitting method. I am generating data sets that should represent the same physical phenomenon (radioactiv…

---

## [How to write a TTree for an existing numpy array using pyroot](https://root-forum.cern.ch/t/how-to-write-a-ttree-for-an-existing-numpy-array-using-pyroot/49777)

<div class="topic-metadata">

**Author:** [@Radwan\_Parvez](https://root-forum.cern.ch/u/Radwan_Parvez)\
**Replies:** 5\
**Last updated:** [June 13, 2022, 9:44am UTC](https://root-forum.cern.ch/t/how-to-write-a-ttree-for-an-existing-numpy-array-using-pyroot/49777 "2022-06-13T09:44:24Z")

</div>

Hey Root Experts from ROOT import \* import numpy as np file = TFile("tree.root", 'recreate') tree = TTree("tree\_name", "tree title") px = np.array(\[1,2,3.5\]) tree.Branch("px", px, 'normal/D') for i in range(len(p…

---

## [RDataFrame runtime\_error](https://root-forum.cern.ch/t/rdataframe-runtime-error/50371)

<div class="topic-metadata">

**Author:** [@CzTee](https://root-forum.cern.ch/u/CzTee)\
**Replies:** 1\
**Last updated:** [June 12, 2022, 9:01am UTC](https://root-forum.cern.ch/t/rdataframe-runtime-error/50371 "2022-06-12T09:01:17Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version:JupyROOT 6.24/06 Platform: Not Provided Compiler: Not Provided I am a newbie following the RDataFrame HiggstoFourLeptons tutoria…

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

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