# Newbie

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

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

---

## [Copy tree to new file and rename it](https://root-forum.cern.ch/t/copy-tree-to-new-file-and-rename-it/44022)

<div class="topic-metadata">

**Author:** [@JanEric](https://root-forum.cern.ch/u/JanEric)\
**Replies:** 26\
**Last updated:** [March 23, 2021, 4:48pm UTC](https://root-forum.cern.ch/t/copy-tree-to-new-file-and-rename-it/44022 "2021-03-23T16:48:05Z")

</div>

I am trying to do something that i think should be extremely simple. The big picture is that i have multiple (20+) files that each contain multiple trees (for different systematic variations) each with two cycles due to…

---

## [Reading a branch of arrays in PyROOT](https://root-forum.cern.ch/t/reading-a-branch-of-arrays-in-pyroot/44076)

<div class="topic-metadata">

**Author:** [@ChilufyaM](https://root-forum.cern.ch/u/ChilufyaM)\
**Replies:** 3\
**Last updated:** [March 23, 2021, 9:14am UTC](https://root-forum.cern.ch/t/reading-a-branch-of-arrays-in-pyroot/44076 "2021-03-23T09:14:51Z")

</div>

Dear experts, I’m trying to read a TBranch that was created with something like the following lines: L = ROOT.TTree('name','name') v=array('i',\[0\]) L.Branch('fibre',v, 'fibre/I') for i in range(48): v\[0\] = i …

---

## [Histogram with \[x,y) bin and store in tree](https://root-forum.cern.ch/t/histogram-with-x-y-bin-and-store-in-tree/44045)

<div class="topic-metadata">

**Author:** [@matt](https://root-forum.cern.ch/u/matt)\
**Replies:** 22\
**Last updated:** [March 22, 2021, 6:45pm UTC](https://root-forum.cern.ch/t/histogram-with-x-y-bin-and-store-in-tree/44045 "2021-03-22T18:45:30Z")

</div>

ROOT Version: 6.18/00 Platform: Ubuntu 20.04.2 LTS Compiler: C++/ROOT Hello everyone , I’m new to root. I would like to make a histogram from data file (below is the images) and store in a tree in a ROOT file. Als…

---

## [Get Random Points following a given TF1 distribution](https://root-forum.cern.ch/t/get-random-points-following-a-given-tf1-distribution/44114)

<div class="topic-metadata">

**Author:** [@AdvaitDhingra](https://root-forum.cern.ch/u/AdvaitDhingra)\
**Replies:** 2\
**Last updated:** [March 22, 2021, 4:33pm UTC](https://root-forum.cern.ch/t/get-random-points-following-a-given-tf1-distribution/44114 "2021-03-22T16:33:35Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Latest as of 22/03/2021 Platform: Windows Compiler: Not Provided I have a TF1, where the x axis is a value and the y axis is the …

---

## [Change z-axis limits of a 2D TEfficiency graph](https://root-forum.cern.ch/t/change-z-axis-limits-of-a-2d-tefficiency-graph/44099)

<div class="topic-metadata">

**Author:** [@keom](https://root-forum.cern.ch/u/keom)\
**Replies:** 6\
**Last updated:** [March 22, 2021, 9:30am UTC](https://root-forum.cern.ch/t/change-z-axis-limits-of-a-2d-tefficiency-graph/44099 "2021-03-22T09:30:14Z")

</div>

Hello, I am making a 2D TEfficiency plot and I would like the range of the z-axis (on the color palette) to be from 0 to 1.2. I tried to use SetMinimum and SetMaximum but they wouldn’t work as ‘TEfficiency’ object has n…

---

## [How to inherit some parameters from a main class to a function object](https://root-forum.cern.ch/t/how-to-inherit-some-parameters-from-a-main-class-to-a-function-object/44063)

<div class="topic-metadata">

**Author:** [@DBoni](https://root-forum.cern.ch/u/DBoni)\
**Replies:** 4\
**Last updated:** [March 22, 2021, 9:08am UTC](https://root-forum.cern.ch/t/how-to-inherit-some-parameters-from-a-main-class-to-a-function-object/44063 "2021-03-22T09:08:20Z")

</div>

Dear all, I am developing a c++ code using ROOT to fit a graph with a function. I created a TF1 from a C++ function object (functor) with parameters. Therefore, I coded a C++ class implementing this member function: cl…

---

## [Launching ROOT problem](https://root-forum.cern.ch/t/launching-root-problem/44088)

<div class="topic-metadata">

**Author:** [@Lluvia](https://root-forum.cern.ch/u/Lluvia)\
**Replies:** 1\
**Last updated:** [March 20, 2021, 11:43pm UTC](https://root-forum.cern.ch/t/launching-root-problem/44088 "2021-03-20T23:43:31Z")

</div>

hi ! I get error massage when launching ROOT; root ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths! Invoking: LC\_ALL=C x86\_64-linux-gnu-g++-9 -O3 -DNDEBUG -xc++ -E -v /dev/null 2\>…

---

## [MINUIT2 and Makefiles](https://root-forum.cern.ch/t/minuit2-and-makefiles/44074)

<div class="topic-metadata">

**Author:** [@smd](https://root-forum.cern.ch/u/smd)\
**Replies:** 12\
**Last updated:** [March 19, 2021, 7:06pm UTC](https://root-forum.cern.ch/t/minuit2-and-makefiles/44074 "2021-03-19T19:06:54Z")

</div>

Hello, I’m trying to make a Makefile to compile some .cc code some of which uses Minuit2. I was able to run the code in ROOT by .L class.cc and then running the main code from a .C macro. However, as the framework gets…

---

## [Clang unable to find ROOT headers](https://root-forum.cern.ch/t/clang-unable-to-find-root-headers/44061)

<div class="topic-metadata">

**Author:** [@al\_bohr](https://root-forum.cern.ch/u/al_bohr)\
**Replies:** 19\
**Last updated:** [March 19, 2021, 2:09pm UTC](https://root-forum.cern.ch/t/clang-unable-to-find-root-headers/44061 "2021-03-19T14:09:29Z")

</div>

ROOT Version: 6.22.08 Platform: MaxOSX 11.2.3 Big Sur Compiler: Clang Hello! Newbie here, I recently installed ROOT via the binary on the site (clang 12 for Xcode 12) and I am able to use it after having set the co…

---

## [C++ programs unable to find header files](https://root-forum.cern.ch/t/c-programs-unable-to-find-header-files/44013)

<div class="topic-metadata">

**Author:** [@Swarada\_Deshpande](https://root-forum.cern.ch/u/Swarada_Deshpande)\
**Replies:** 3\
**Last updated:** [March 19, 2021, 2:00pm UTC](https://root-forum.cern.ch/t/c-programs-unable-to-find-header-files/44013 "2021-03-19T14:00:35Z")

</div>

I’ve been using GATE for almost a year for generating simulations. However, I did not face this issue until now. Whenever I run my c++ file, it shows an error for all the root header files stating " No such file or direc…

---

## [The constant of decay function?](https://root-forum.cern.ch/t/the-constant-of-decay-function/44054)

<div class="topic-metadata">

**Author:** [@iftikhar\_safi](https://root-forum.cern.ch/u/iftikhar_safi)\
**Replies:** 6\
**Last updated:** [March 18, 2021, 4:05pm UTC](https://root-forum.cern.ch/t/the-constant-of-decay-function/44054 "2021-03-18T16:05:23Z")

</div>

Hello Everyone, I am working on the exponential decay fitting. After fitting I got the value of the constant \[N\_{0}\], (guessed parameter). The fitting equation is given here. "\[N\_{0}\]/\[#tau\].\*exp(-x/\[#tau\])+\[Constant\]…

---

## [Problem with Fitting Data using Fit Panel](https://root-forum.cern.ch/t/problem-with-fitting-data-using-fit-panel/44018)

<div class="topic-metadata">

**Author:** [@rraut](https://root-forum.cern.ch/u/rraut)\
**Replies:** 8\
**Last updated:** [March 18, 2021, 4:31am UTC](https://root-forum.cern.ch/t/problem-with-fitting-data-using-fit-panel/44018 "2021-03-18T04:31:24Z")

</div>

Hello ! Respectful Greetings ! I’m trying to fit a data set, plotted through TGraph, using the Fit Panel and with a “user” defined function. The same is a Lorentzian and is being expressed as (\[0\]\*\[1\]\*\*2)/(\[1\]\*\*2+(x-\[2…

---

## [Problems with SetBranchAddress](https://root-forum.cern.ch/t/problems-with-setbranchaddress/44026)

<div class="topic-metadata">

**Author:** [@Kristian](https://root-forum.cern.ch/u/Kristian)\
**Replies:** 5\
**Last updated:** [March 17, 2021, 1:03pm UTC](https://root-forum.cern.ch/t/problems-with-setbranchaddress/44026 "2021-03-17T13:03:41Z")

</div>

Hi, I’m currently writing a script which merges two trees. Both trees contains mainly vectors; for ta they are strictly of length 3, while for tm they are of varying length \> 3. To actually do this, I’m using .SetBran…

---

## [Cumulative variable](https://root-forum.cern.ch/t/cumulative-variable/44004)

<div class="topic-metadata">

**Author:** [@Marooz\_Malik](https://root-forum.cern.ch/u/Marooz_Malik)\
**Replies:** 7\
**Last updated:** [March 17, 2021, 8:13am UTC](https://root-forum.cern.ch/t/cumulative-variable/44004 "2021-03-17T08:13:39Z")

</div>

I have an eta distribution that I want to convert to a distribution of a new cumulative variable Chi(eta), so that the new distribution becomes flat. I can’t figure out the block of code that can be used for cumulative …

---

## [$HOME/.rootrc not working](https://root-forum.cern.ch/t/home-rootrc-not-working/39824)

<div class="topic-metadata">

**Author:** [@marty1885](https://root-forum.cern.ch/u/marty1885)\
**Replies:** 2\
**Last updated:** [June 8, 2020, 9:28am UTC](https://root-forum.cern.ch/t/home-rootrc-not-working/39824 "2020-06-08T09:28:14Z")

</div>

I’m not sure if this is a issue specific to me. I’m setting up ROOT using $HOME/.rootrc but the file seems not be executed: ❯ cat ~/.rootrc gStyle-\>SetCanvasPreferGL(kTRUE); int foobar = 90; But ❯ root root \[0\] foobar…

---

## [Using SetLimits() changes the histogram](https://root-forum.cern.ch/t/using-setlimits-changes-the-histogram/43194)

<div class="topic-metadata">

**Author:** [@jemarq04](https://root-forum.cern.ch/u/jemarq04)\
**Replies:** 11\
**Last updated:** [January 21, 2021, 5:33pm UTC](https://root-forum.cern.ch/t/using-setlimits-changes-the-histogram/43194 "2021-01-21T17:33:23Z")

</div>

In trying to compare two histograms, I notice that when I change the limits of the histogram so that I can draw them on the same canvas that it changes their distribution and maxima. I thought maybe this was a problem wi…

---

## [MINOS error problems, negative error is positive](https://root-forum.cern.ch/t/minos-error-problems-negative-error-is-positive/43778)

<div class="topic-metadata">

**Author:** [@eggsAndCoffee](https://root-forum.cern.ch/u/eggsAndCoffee)\
**Replies:** 35\
**Last updated:** [March 16, 2021, 12:53pm UTC](https://root-forum.cern.ch/t/minos-error-problems-negative-error-is-positive/43778 "2021-03-16T12:53:42Z")

</div>

Hello. I am using ROOT::Math::Minimizer with Minuit2 to perform some fits, and I need to calculate asymmetric errors using Minos. My understanding is that the errors reported by Minos should be negative for the lower er…

---

## [Question of C++](https://root-forum.cern.ch/t/question-of-c/43981)

<div class="topic-metadata">

**Author:** [@WAQ](https://root-forum.cern.ch/u/WAQ)\
**Replies:** 6\
**Last updated:** [March 16, 2021, 7:16am UTC](https://root-forum.cern.ch/t/question-of-c/43981 "2021-03-16T07:16:27Z")

</div>

\_\_\_There was a crash. This is the entire stack trace of all threads: =========================================================== #0 0x00000035148ac89e in waitpid () from /lib64/libc.so.6 #1 0x000000351483e4e9 in do\_sys…

---

## [How do I read data from a .dat file in root?](https://root-forum.cern.ch/t/how-do-i-read-data-from-a-dat-file-in-root/43929)

<div class="topic-metadata">

**Author:** [@fabstr](https://root-forum.cern.ch/u/fabstr)\
**Replies:** 4\
**Last updated:** [March 15, 2021, 8:41am UTC](https://root-forum.cern.ch/t/how-do-i-read-data-from-a-dat-file-in-root/43929 "2021-03-15T08:41:56Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.22/00 Platform: Ubuntu 20.04.1 LTS (WSL2) Compiler: GNU or GCC Hello, I have a .dat file with 11 rows and 42 columns that I wa…

---

## [Install ROOT5.34.34](https://root-forum.cern.ch/t/install-root5-34-34/43862)

<div class="topic-metadata">

**Author:** [@xiaojiye](https://root-forum.cern.ch/u/xiaojiye)\
**Replies:** 2\
**Last updated:** [March 13, 2021, 10:38pm UTC](https://root-forum.cern.ch/t/install-root5-34-34/43862 "2021-03-13T22:38:14Z")

</div>

hello,My system is centos8, gcc8.3.1. Due to the need of work, I need to install root5.34.34. What should I do? Please read tips for efficient and successful posting and posting code ROOT Version: root5.34.34 Platform…

---

## [What to the numbers after an object name in a ROOT file indicate?](https://root-forum.cern.ch/t/what-to-the-numbers-after-an-object-name-in-a-root-file-indicate/43969)

<div class="topic-metadata">

**Author:** [@KAM](https://root-forum.cern.ch/u/KAM)\
**Replies:** 2\
**Last updated:** [March 13, 2021, 4:53pm UTC](https://root-forum.cern.ch/t/what-to-the-numbers-after-an-object-name-in-a-root-file-indicate/43969 "2021-03-13T16:53:09Z")

</div>

For example, I might create a ROOT file example.root, and store in it a single TNtuple with name “N”. If I were to then open example.root in a TBrowser, for example, I may find that “two” TNtuples are listed, “N;somenumb…

---

## [Integrator problem](https://root-forum.cern.ch/t/integrator-problem/43900)

<div class="topic-metadata">

**Author:** [@nmmalikroot](https://root-forum.cern.ch/u/nmmalikroot)\
**Replies:** 8\
**Last updated:** [March 13, 2021, 10:22am UTC](https://root-forum.cern.ch/t/integrator-problem/43900 "2021-03-13T10:22:42Z")

</div>

Warning in \<TF1::IntegralOneDim\>: Error found in integrating function voigtian in \[1.431000,1.700000\] using AdaptiveSingular. Result = 3.434634 +/- 0.000000 - status = 18 Info in \<TF1::IntegralOneDim\>: this warning sho…

---

## [Question on vector\<vector\<int\>\> using RDataFrame](https://root-forum.cern.ch/t/question-on-vector-vector-int-using-rdataframe/43864)

<div class="topic-metadata">

**Author:** [@kjohns](https://root-forum.cern.ch/u/kjohns)\
**Replies:** 3\
**Last updated:** [March 12, 2021, 6:04pm UTC](https://root-forum.cern.ch/t/question-on-vector-vector-int-using-rdataframe/43864 "2021-03-12T18:04:42Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided CentOS Linux release 7.9.2009 (Core)q /cvmfs/sft.cern.ch/lcg/releases…

---

## [HypoTestInverterPlot: Change Axis Label](https://root-forum.cern.ch/t/hypotestinverterplot-change-axis-label/43888)

<div class="topic-metadata">

**Author:** [@bibsession](https://root-forum.cern.ch/u/bibsession)\
**Replies:** 4\
**Last updated:** [March 12, 2021, 9:51am UTC](https://root-forum.cern.ch/t/hypotestinverterplot-change-axis-label/43888 "2021-03-12T09:51:39Z")

</div>

Hello experts, Is there a way to change the axis label in a HypoTestInverterPlot? I looked into the documentation and the class does not have any members along the lines of GetXaxis()-\>SetTitle("Energy \[keV\]"). Is there…

---

## [Print only certain canvases](https://root-forum.cern.ch/t/print-only-certain-canvases/43923)

<div class="topic-metadata">

**Author:** [@Alan\_H](https://root-forum.cern.ch/u/Alan_H)\
**Replies:** 1\
**Last updated:** [March 11, 2021, 9:15am UTC](https://root-forum.cern.ch/t/print-only-certain-canvases/43923 "2021-03-11T09:15:33Z")

</div>

Hi, Is there a way to only print certain canvases? I have several stacked histograms (for each I created a canvas because I need them separated) but when my program ends I will like to just see 3 or 4 of them, and leav…

---

## [Silly question about plots in Browser](https://root-forum.cern.ch/t/silly-question-about-plots-in-browser/43914)

<div class="topic-metadata">

**Author:** [@TimFulcher](https://root-forum.cern.ch/u/TimFulcher)\
**Replies:** 1\
**Last updated:** [March 10, 2021, 6:03pm UTC](https://root-forum.cern.ch/t/silly-question-about-plots-in-browser/43914 "2021-03-10T18:03:00Z")

</div>

Hi all, silly question but does Browser attempt to fit a plot using a Gaussian resulting in the mean and std dev in the legend? Regards Tim

---

## [Import a Date and Time from txt file into a Tree](https://root-forum.cern.ch/t/import-a-date-and-time-from-txt-file-into-a-tree/43882)

<div class="topic-metadata">

**Author:** [@Fabi](https://root-forum.cern.ch/u/Fabi)\
**Replies:** 1\
**Last updated:** [March 9, 2021, 10:22am UTC](https://root-forum.cern.ch/t/import-a-date-and-time-from-txt-file-into-a-tree/43882 "2021-03-09T10:22:55Z")

</div>

Dear all, I would like to ask your help to read a txt file into a Tree if I have date and time. my txt file is like 27 60 8.82E+04 0.016 2021-1-18 12:00:00 55 137 8.07E+03 0.028 2021-1-18 12:00:00 and I’m able to rea…

---

## [Fitting two different data sets with the same parameters](https://root-forum.cern.ch/t/fitting-two-different-data-sets-with-the-same-parameters/43873)

<div class="topic-metadata">

**Author:** [@iftikhar\_safi](https://root-forum.cern.ch/u/iftikhar_safi)\
**Replies:** 2\
**Last updated:** [March 8, 2021, 2:24pm UTC](https://root-forum.cern.ch/t/fitting-two-different-data-sets-with-the-same-parameters/43873 "2021-03-08T14:24:42Z")

</div>

Hello Everyone, I have a question about fitting two different datasets with the same fitting parameters. I have a decay plot for two different peaks, individually if I fit them I get two different decay times from the …

---

## [Minimize using Minuit and measured values from a Tree](https://root-forum.cern.ch/t/minimize-using-minuit-and-measured-values-from-a-tree/43816)

<div class="topic-metadata">

**Author:** [@Alan\_H](https://root-forum.cern.ch/u/Alan_H)\
**Replies:** 9\
**Last updated:** [March 8, 2021, 12:34pm UTC](https://root-forum.cern.ch/t/minimize-using-minuit-and-measured-values-from-a-tree/43816 "2021-03-08T12:34:42Z")

</div>

Hi, I am working with a Tree that contains several properties of my particles, pT, energies, etc. creating a class from it, and working with the .C file. I am trying to perform a chi2 minimization for each event of my …

---

## [Modify username](https://root-forum.cern.ch/t/modify-username/43870)

<div class="topic-metadata">

**Author:** [@ah77](https://root-forum.cern.ch/u/ah77)\
**Replies:** 1\
**Last updated:** [March 8, 2021, 10:39am UTC](https://root-forum.cern.ch/t/modify-username/43870 "2021-03-08T10:39:23Z")

</div>

Hello, Maybe a stupid question: is there a way to modify my @username after created my account? I couldn’t find anything online yet and don’t see any options in my preferences. Best regards.

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

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