# Newbie

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

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

---

## [Problem in RooFit](https://root-forum.cern.ch/t/problem-in-roofit/33532)

<div class="topic-metadata">

**Author:** [@Princeps10](https://root-forum.cern.ch/u/Princeps10)\
**Replies:** 2\
**Last updated:** [April 11, 2019, 9:44am UTC](https://root-forum.cern.ch/t/problem-in-roofit/33532 "2019-04-11T09:44:22Z")

</div>

Hi, everyone! I’m working on fitting a ROOT file containing data. To make it, I followed the reference RooFit in 20 minutes, but I find that the data in the reference seems to be produced by the p.d.f. (RooDataSet \*data…

---

## [Integral from fit and from terminal-differences](https://root-forum.cern.ch/t/integral-from-fit-and-from-terminal-differences/33522)

<div class="topic-metadata">

**Author:** [@Svante](https://root-forum.cern.ch/u/Svante)\
**Replies:** 5\
**Last updated:** [April 10, 2019, 3:54pm UTC](https://root-forum.cern.ch/t/integral-from-fit-and-from-terminal-differences/33522 "2019-04-10T15:54:37Z")

</div>

Dear all, I have an histogram and I’m doing a fit of part of it. I need the integral under the curve and the error, to do this I have done: Double\_t integralefit2 =fit2-\> Integral(111.,114.); Double\_t integralerrfit2= …

---

## [Increase resolution for FFT](https://root-forum.cern.ch/t/increase-resolution-for-fft/33502)

<div class="topic-metadata">

**Author:** [@Nyx](https://root-forum.cern.ch/u/Nyx)\
**Replies:** 6\
**Last updated:** [April 10, 2019, 2:14pm UTC](https://root-forum.cern.ch/t/increase-resolution-for-fft/33502 "2019-04-10T14:14:52Z")

</div>

I am trying to extract the frequency spectrum using the FFT functions. I followed the tutorial to fill an histogram from my input TGraph. I have 1e5 entries. Then I calculate the FFT: TH1 \*fourier = 0; TVirtualFFT::…

---

## [Error while reading file](https://root-forum.cern.ch/t/error-while-reading-file/33267)

<div class="topic-metadata">

**Author:** [@newbie1](https://root-forum.cern.ch/u/newbie1)\
**Replies:** 4\
**Last updated:** [April 10, 2019, 12:45pm UTC](https://root-forum.cern.ch/t/error-while-reading-file/33267 "2019-04-10T12:45:51Z")

</div>

Hello, Sorry if my post in not in the right way it should be, this is my first one. I recently stopped a job which was reading a root file, and I’m sure the file was not properly closed. So, when the job try to read it…

---

## [Only two files in the file Macro](https://root-forum.cern.ch/t/only-two-files-in-the-file-macro/33398)

<div class="topic-metadata">

**Author:** [@Princeps10](https://root-forum.cern.ch/u/Princeps10)\
**Replies:** 2\
**Last updated:** [April 9, 2019, 8:29am UTC](https://root-forum.cern.ch/t/only-two-files-in-the-file-macro/33398 "2019-04-09T08:29:46Z")

</div>

Hi, everyone. I am a new ROOT user. My confusion is that when I read the Reference Guide 2.3 - ROOT as function plotter, I found that I do not have the file slits.C on my disk. And only Dialogs.C fileopen.C in the file …

---

## [Root 6.16.00 installation problem in ubantu 18.04](https://root-forum.cern.ch/t/root-6-16-00-installation-problem-in-ubantu-18-04/33340)

<div class="topic-metadata">

**Author:** [@wajahat](https://root-forum.cern.ch/u/wajahat)\
**Replies:** 3\
**Last updated:** [April 8, 2019, 6:29pm UTC](https://root-forum.cern.ch/t/root-6-16-00-installation-problem-in-ubantu-18-04/33340 "2019-04-08T18:29:34Z")

</div>

i am trying to install root 6.16.00 on my core i3 machine with 2GB ram and 500GB space. i built all prerequisites required but i m facing the following error when i use cmake --build . --j2 command \[ 54%\] Copying /home…

---

## [Problem in building ROOT](https://root-forum.cern.ch/t/problem-in-building-root/33481)

<div class="topic-metadata">

**Author:** [@Lennart](https://root-forum.cern.ch/u/Lennart)\
**Replies:** 1\
**Last updated:** [April 8, 2019, 12:06pm UTC](https://root-forum.cern.ch/t/problem-in-building-root/33481 "2019-04-08T12:06:07Z")

</div>

Hello, I’m a physics student who wants and needs to learn how to use ROOT! I’m on a virtual machine where the host OS is Windows and the virtual one is Ubuntu 18.04.2 64 bit. I’ve been trying to build ROOT for some tim…

---

## [Problem with root Simulation](https://root-forum.cern.ch/t/problem-with-root-simulation/33477)

<div class="topic-metadata">

**Author:** [@MicheleP](https://root-forum.cern.ch/u/MicheleP)\
**Replies:** 3\
**Last updated:** [April 8, 2019, 11:58am UTC](https://root-forum.cern.ch/t/problem-with-root-simulation/33477 "2019-04-08T11:58:15Z")

</div>

Hi everybody. I have a problem with my c++ code. For a physics exam I have to create a simulation of p-p collision inside a cylindrical detector. In this code I use a Ttree to save my data simulation, the problem is the…

---

## [Displaying the best fit parameters on a plot](https://root-forum.cern.ch/t/displaying-the-best-fit-parameters-on-a-plot/33412)

<div class="topic-metadata">

**Author:** [@Thabo\_Lepota](https://root-forum.cern.ch/u/Thabo_Lepota)\
**Replies:** 3\
**Last updated:** [April 8, 2019, 8:53am UTC](https://root-forum.cern.ch/t/displaying-the-best-fit-parameters-on-a-plot/33412 "2019-04-08T08:53:42Z")

</div>

Hi everyone I’d like to display the best fit parameters on the plots, how do it do that i have attached the marco i have been working on thanks advance basichist.c (5.7 KB)

---

## [Declared but not defined](https://root-forum.cern.ch/t/declared-but-not-defined/33486)

<div class="topic-metadata">

**Author:** [@Prya13](https://root-forum.cern.ch/u/Prya13)\
**Replies:** 2\
**Last updated:** [April 7, 2019, 9:04pm UTC](https://root-forum.cern.ch/t/declared-but-not-defined/33486 "2019-04-07T21:04:12Z")

</div>

Hey All, I have a file with seven columns and am trying to plot a TGraph using only the first two columns using this macro below but this error: Processing goodrunstime.C… Error: goodrunstime() declared but not defin…

---

## [Discontinuity in distribution of fit values](https://root-forum.cern.ch/t/discontinuity-in-distribution-of-fit-values/33465)

<div class="topic-metadata">

**Author:** [@Nyx](https://root-forum.cern.ch/u/Nyx)\
**Replies:** 5\
**Last updated:** [April 7, 2019, 10:41am UTC](https://root-forum.cern.ch/t/discontinuity-in-distribution-of-fit-values/33465 "2019-04-07T10:41:49Z")

</div>

I am plotting a histogram with the results of fitting 81233 TGraph objects. For the fit I define the function TF1 \*Cosine = new TF1("Cosine", "\[0\]\*cos(\[1\]\*x\*1.e6 + \[2\])+\[3\]", 0., tmax) and then Cosine-\>SetParameters(…

---

## [Fitting some datasets with some common parameters](https://root-forum.cern.ch/t/fitting-some-datasets-with-some-common-parameters/33334)

<div class="topic-metadata">

**Author:** [@Stanislav\_Rootist](https://root-forum.cern.ch/u/Stanislav_Rootist)\
**Replies:** 4\
**Last updated:** [April 5, 2019, 1:27pm UTC](https://root-forum.cern.ch/t/fitting-some-datasets-with-some-common-parameters/33334 "2019-04-05T13:27:14Z")

</div>

Hello, everybody! I am a new Root user. My professor asked my to fit some spectras with comon peak width for all spectras. I saw beautiful example CombinedFit, written by Lorenzo Moneta and rewrote that script with my f…

---

## [Dividing one axis of a TH3D by a TH1D](https://root-forum.cern.ch/t/dividing-one-axis-of-a-th3d-by-a-th1d/33422)

<div class="topic-metadata">

**Author:** [@RootFruit](https://root-forum.cern.ch/u/RootFruit)\
**Replies:** 6\
**Last updated:** [April 4, 2019, 2:08pm UTC](https://root-forum.cern.ch/t/dividing-one-axis-of-a-th3d-by-a-th1d/33422 "2019-04-04T14:08:46Z")

</div>

Hi root experts, newbie question: I have a TH3D and I want to divide only one axis by a TH1D, while leaving the other axes unaffected. How do I do this? So far I’ve tried: void normalisation() { TFile \*file = n…

---

## [RooFit: convolution of 2 Gaussians of mean 0 has MPV less than 0](https://root-forum.cern.ch/t/roofit-convolution-of-2-gaussians-of-mean-0-has-mpv-less-than-0/33436)

<div class="topic-metadata">

**Author:** [@LongHoa](https://root-forum.cern.ch/u/LongHoa)\
**Replies:** 7\
**Last updated:** [April 4, 2019, 1:30pm UTC](https://root-forum.cern.ch/t/roofit-convolution-of-2-gaussians-of-mean-0-has-mpv-less-than-0/33436 "2019-04-04T13:30:58Z")

</div>

Hello everyone, I’m new to RooFit. I’m trying to create a convolution of 2 Gaussian function of variable x by using RooFFTConvPdf. In principle, the convolution should return a Gaussian whose mean is the sum of the mean…

---

## [Is it OK to modify different histogram bins from different threads using \`AddBinContent\`?](https://root-forum.cern.ch/t/is-it-ok-to-modify-different-histogram-bins-from-different-threads-using-addbincontent/33442)

<div class="topic-metadata">

**Author:** [@berserker](https://root-forum.cern.ch/u/berserker)\
**Replies:** 5\
**Last updated:** [April 3, 2019, 3:29pm UTC](https://root-forum.cern.ch/t/is-it-ok-to-modify-different-histogram-bins-from-different-threads-using-addbincontent/33442 "2019-04-03T15:29:03Z")

</div>

If I don’t care about mean/stddev/entries consistency.

---

## [Canvas to TeX: no markers, no transparency](https://root-forum.cern.ch/t/canvas-to-tex-no-markers-no-transparency/33426)

<div class="topic-metadata">

**Author:** [@berserker](https://root-forum.cern.ch/u/berserker)\
**Replies:** 14\
**Last updated:** [April 3, 2019, 3:10pm UTC](https://root-forum.cern.ch/t/canvas-to-tex-no-markers-no-transparency/33426 "2019-04-03T15:10:44Z")

</div>

Here are 2 files: c.pdf (20.5 KB) a canvas saved as PDF file tex.pdf (20.3 KB) a canvas saved to TeX file and then included into a \\documentclass{standalone} document. As it can be seen, in the second case there are…

---

## [Which file TTree object writes to](https://root-forum.cern.ch/t/which-file-ttree-object-writes-to/33411)

<div class="topic-metadata">

**Author:** [@Miksarus](https://root-forum.cern.ch/u/Miksarus)\
**Replies:** 3\
**Last updated:** [April 3, 2019, 9:33am UTC](https://root-forum.cern.ch/t/which-file-ttree-object-writes-to/33411 "2019-04-03T09:33:00Z")

</div>

I find big problem in how TTree works with files. I can’t connect TTree object with TFile i want to write to. If i want to read from file, it is not a problem, i just create TFile and read TTree object from it. If i wan…

---

## [Root files to csv Missing Values](https://root-forum.cern.ch/t/root-files-to-csv-missing-values/33431)

<div class="topic-metadata">

**Author:** [@ANDRES\_MENDEZ](https://root-forum.cern.ch/u/ANDRES_MENDEZ)\
**Replies:** 1\
**Last updated:** [April 3, 2019, 7:19am UTC](https://root-forum.cern.ch/t/root-files-to-csv-missing-values/33431 "2019-04-03T07:19:13Z")

</div>

I am trying to write a csv file from a root file. However, for variables like the energy of leptons, root produce a vector for such events, which of course, might differ in size depending on the number of leptons produce…

---

## [Installing root without python-devel](https://root-forum.cern.ch/t/installing-root-without-python-devel/33406)

<div class="topic-metadata">

**Author:** [@afylot](https://root-forum.cern.ch/u/afylot)\
**Replies:** 4\
**Last updated:** [April 1, 2019, 3:56pm UTC](https://root-forum.cern.ch/t/installing-root-without-python-devel/33406 "2019-04-01T15:56:37Z")

</div>

I am installing rootv6.16 on CentOS-7, I do not have root privileges and I would avoid to install many new libraries. I am using cmake. I get ‘Could NOT find PythonLibs’. I read that python-devel is optional, but I can…

---

## [Sorting ntuple by branch values](https://root-forum.cern.ch/t/sorting-ntuple-by-branch-values/33308)

<div class="topic-metadata">

**Author:** [@lynnzxz](https://root-forum.cern.ch/u/lynnzxz)\
**Replies:** 2\
**Last updated:** [March 29, 2019, 6:03pm UTC](https://root-forum.cern.ch/t/sorting-ntuple-by-branch-values/33308 "2019-03-29T18:03:38Z")

</div>

Dear ROOTers, I have ntuples containing information about a particle detector event, with branches for x,y,z postion, energy etc. and I’d like to sort it in ascending order according to the branch “time”. How do I go a…

---

## [Filling a 2D histogram](https://root-forum.cern.ch/t/filling-a-2d-histogram/33352)

<div class="topic-metadata">

**Author:** [@Aqsa\_Shaikh](https://root-forum.cern.ch/u/Aqsa_Shaikh)\
**Replies:** 2\
**Last updated:** [March 28, 2019, 2:13pm UTC](https://root-forum.cern.ch/t/filling-a-2d-histogram/33352 "2019-03-28T14:13:42Z")

</div>

I am trying to draw a 2D histogram. so for beginning I am filling it with the following command h-\>Fill(0,0,1); but I am getting the error as error: call to member function 'Fill' is ambiguous h-\>Fill(0,1,1); …

---

## [No dictionary class in singularity container](https://root-forum.cern.ch/t/no-dictionary-class-in-singularity-container/33342)

<div class="topic-metadata">

**Author:** [@Nyx](https://root-forum.cern.ch/u/Nyx)\
**Replies:** 2\
**Last updated:** [March 28, 2019, 3:10pm UTC](https://root-forum.cern.ch/t/no-dictionary-class-in-singularity-container/33342 "2019-03-28T15:10:12Z")

</div>

When running my executable with ROOT libraries I get the message: Warning in \<TClass::Init\>: no dictionary for class ROOT::TIOFeatures is available. I have never seen this error before, but my program seems to run fine a…

---

## [Why a histogram and a graph have different spacing around a marker?](https://root-forum.cern.ch/t/why-a-histogram-and-a-graph-have-different-spacing-around-a-marker/33332)

<div class="topic-metadata">

**Author:** [@berserker](https://root-forum.cern.ch/u/berserker)\
**Replies:** 9\
**Last updated:** [March 28, 2019, 1:32pm UTC](https://root-forum.cern.ch/t/why-a-histogram-and-a-graph-have-different-spacing-around-a-marker/33332 "2019-03-28T13:32:52Z")

</div>

Histograms are on the upper pad and graphs are on the bottom pad. Note the spacing between the marker and error bars.

---

## [THSTack does not stack when one histogram is scaled](https://root-forum.cern.ch/t/thstack-does-not-stack-when-one-histogram-is-scaled/33336)

<div class="topic-metadata">

**Author:** [@Marta](https://root-forum.cern.ch/u/Marta)\
**Replies:** 5\
**Last updated:** [March 28, 2019, 8:25am UTC](https://root-forum.cern.ch/t/thstack-does-not-stack-when-one-histogram-is-scaled/33336 "2019-03-28T08:25:55Z")

</div>

Hello, I have a problem when I create THStack. I have multiple histograms that I want to add together and I need to multiply one of them by a constant. It works just fine without multiplying, but when I try to add the h…

---

## [Why smaller error obtained by error weighted?](https://root-forum.cern.ch/t/why-smaller-error-obtained-by-error-weighted/33346)

<div class="topic-metadata">

**Author:** [@Li\_Huijing](https://root-forum.cern.ch/u/Li_Huijing)\
**Replies:** 2\
**Last updated:** [March 28, 2019, 8:25am UTC](https://root-forum.cern.ch/t/why-smaller-error-obtained-by-error-weighted/33346 "2019-03-28T08:25:28Z")

</div>

I just take an example to illuminate my confusions. There are six experiment results on the branching fraction of Ds+ -\> tau+ nu from PDG 2018, (1). 4.83 +/- 0.65 +/- 0.26 from BESIII (2). 5.70 +/- 0.21 +0.31(-0.30…

---

## [Permission refused while accessing eventdata.root](https://root-forum.cern.ch/t/permission-refused-while-accessing-eventdata-root/33187)

<div class="topic-metadata">

**Author:** [@Mikhail-Vaganov](https://root-forum.cern.ch/u/Mikhail-Vaganov)\
**Replies:** 2\
**Last updated:** [March 25, 2019, 5:40pm UTC](https://root-forum.cern.ch/t/permission-refused-while-accessing-eventdata-root/33187 "2019-03-25T17:40:05Z")

</div>

Hi! I am reading the introduction course Meet a TTree and trying to access the example file eventdata.root. An attempt to GET this file via browser results in 403 error message. When I try to access the file via root …

---

## [SetRangeUser is rebellious](https://root-forum.cern.ch/t/setrangeuser-is-rebellious/33286)

<div class="topic-metadata">

**Author:** [@berserker](https://root-forum.cern.ch/u/berserker)\
**Replies:** 5\
**Last updated:** [March 25, 2019, 9:29am UTC](https://root-forum.cern.ch/t/setrangeuser-is-rebellious/33286 "2019-03-25T09:29:37Z")

</div>

I try to set Z axis limits for TH2 using SetRangeUser, but it does not respect the upper limit. Actual axis limit is slightly higher than what I set and depends on draw options! When I try to set it to 1.2, what I get is…

---

## [Add 3 TH1F and save to new TH1F](https://root-forum.cern.ch/t/add-3-th1f-and-save-to-new-th1f/33282)

<div class="topic-metadata">

**Author:** [@oscar\_8a80](https://root-forum.cern.ch/u/oscar_8a80)\
**Replies:** 3\
**Last updated:** [March 22, 2019, 1:48pm UTC](https://root-forum.cern.ch/t/add-3-th1f-and-save-to-new-th1f/33282 "2019-03-22T13:48:03Z")

</div>

Dear ROOTers, Firstly and foremost, thanks so much for the time to read my query. Here’s what I want to do: I have 3 .root files, each of them containing several TH1F histograms. I want to create a new .root file whic…

---

## [Back-wards compatibility of a ROOT file](https://root-forum.cern.ch/t/back-wards-compatibility-of-a-root-file/33266)

<div class="topic-metadata">

**Author:** [@antonio.iuliano2](https://root-forum.cern.ch/u/antonio.iuliano2)\
**Replies:** 2\
**Last updated:** [March 22, 2019, 8:46am UTC](https://root-forum.cern.ch/t/back-wards-compatibility-of-a-root-file/33266 "2019-03-22T08:46:50Z")

</div>

Dear all, I need to read a file written with a recent ROOT version (6.14) in a machine where an old ROOT5 version is installed. I understand that the error ‘cannot find the StreamerInfo record in file’ is due to the di…

---

## [How do I get an object from a file?](https://root-forum.cern.ch/t/how-do-i-get-an-object-from-a-file/33260)

<div class="topic-metadata">

**Author:** [@Marta](https://root-forum.cern.ch/u/Marta)\
**Replies:** 6\
**Last updated:** [March 21, 2019, 1:59pm UTC](https://root-forum.cern.ch/t/how-do-i-get-an-object-from-a-file/33260 "2019-03-21T13:59:47Z")

</div>

Hello, I am totally new to ROOT, pretty much new to coding altogether and I need help. I need to get a histogram out of a TFile, here is what I have: (I know this program itself does not do much, but it fits into a bigg…

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

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