# Newbie

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

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

---

## [Start up tutorial for using CERN data for simulation](https://root-forum.cern.ch/t/start-up-tutorial-for-using-cern-data-for-simulation/39123)

<div class="topic-metadata">

**Author:** [@Ram\_C](https://root-forum.cern.ch/u/Ram_C)\
**Replies:** 1\
**Last updated:** [April 27, 2020, 2:12pm UTC](https://root-forum.cern.ch/t/start-up-tutorial-for-using-cern-data-for-simulation/39123 "2020-04-27T14:12:47Z")

</div>

Dear Developers! I have used DEM codes and others simulation codes for running simulations for condensed matter physics. Now I am very interested in neutrino physics (neutrino flavor oscillation etc). I want to run the …

---

## [How to calculate efficiency at a specific energy](https://root-forum.cern.ch/t/how-to-calculate-efficiency-at-a-specific-energy/39117)

<div class="topic-metadata">

**Author:** [@robertfroast](https://root-forum.cern.ch/u/robertfroast)\
**Replies:** 8\
**Last updated:** [April 27, 2020, 1:56pm UTC](https://root-forum.cern.ch/t/how-to-calculate-efficiency-at-a-specific-energy/39117 "2020-04-27T13:56:24Z")

</div>

I plotted the efficiency vs energy curve using a user defined function. Now, I am trying to calculate efficiency at specific values e.g. 200kev, 500kev, 700kev. How should I proceed further?? I also tried tooltip Info…

---

## [Ntuple or TTree](https://root-forum.cern.ch/t/ntuple-or-ttree/39060)

<div class="topic-metadata">

**Author:** [@Fateme](https://root-forum.cern.ch/u/Fateme)\
**Replies:** 7\
**Last updated:** [April 27, 2020, 1:49pm UTC](https://root-forum.cern.ch/t/ntuple-or-ttree/39060 "2020-04-27T13:49:42Z")

</div>

\_\_\_Hi every body. I wanna use Ntuple for create a two dimension array in Visual Studio. Actually I have a text file and I wanna to read it line by line and put them in an array. Is Ntuple suitable or I should use TTree…

---

## [\[question\] GetBinContent](https://root-forum.cern.ch/t/question-getbincontent/39118)

<div class="topic-metadata">

**Author:** [@Shaggylee](https://root-forum.cern.ch/u/Shaggylee)\
**Replies:** 2\
**Last updated:** [April 27, 2020, 9:54am UTC](https://root-forum.cern.ch/t/question-getbincontent/39118 "2020-04-27T09:54:12Z")

</div>

Hello ROOTers… TCanvas \*c3 = new TCanvas("c3", "residual", 1200, 900); TH1F \*h1 = new TH1F("h1", "residual", 40, 400, 1200); hQtot\_Bi-\>SetNormFactor(1); hQtot\_Bi\_d-\>SetNormFactor(1); for(Int\_t i=1; i\<=1200; i++) { …

---

## [\[question\] residual plot and chi2test](https://root-forum.cern.ch/t/question-residual-plot-and-chi2test/39107)

<div class="topic-metadata">

**Author:** [@Shaggylee](https://root-forum.cern.ch/u/Shaggylee)\
**Replies:** 3\
**Last updated:** [April 27, 2020, 8:08am UTC](https://root-forum.cern.ch/t/question-residual-plot-and-chi2test/39107 "2020-04-27T08:08:14Z")

</div>

{ TCanvas \*c2 = new TCanvas("c2", "My Canavas", 1200, 450); c2-\>Divide(2,1); c2-\>cd(1); hQtot\_Bi-\>SetNormFactor(1); hQtot\_Bi-\>SetLineColor(kBlue); hQtot\_Bi-\>SetLineWidth(2); hQtot\_Bi-\>Draw("HIST"); hQt…

---

## [Error with libvectorDict.so](https://root-forum.cern.ch/t/error-with-libvectordict-so/39097)

<div class="topic-metadata">

**Author:** [@Nattend](https://root-forum.cern.ch/u/Nattend)\
**Replies:** 2\
**Last updated:** [April 26, 2020, 12:44pm UTC](https://root-forum.cern.ch/t/error-with-libvectordict-so/39097 "2020-04-26T12:44:36Z")

</div>

Hello I’m new to Root and I need to install it to work for home but I have a problem every time I perform this installation : Make Error at core/clingutils/cmake\_install.cmake:60 (file): file INSTALL cannot find "/…

---

## [Any way of getting background data?](https://root-forum.cern.ch/t/any-way-of-getting-background-data/38992)

<div class="topic-metadata">

**Author:** [@robertfroast](https://root-forum.cern.ch/u/robertfroast)\
**Replies:** 10\
**Last updated:** [April 26, 2020, 8:42am UTC](https://root-forum.cern.ch/t/any-way-of-getting-background-data/38992 "2020-04-26T08:42:50Z")

</div>

@Wile\_E\_Coyote @couet fithisto.C (3.6 KB) eu\_gu\_1.txt (44.1 KB) The above code gives final spectrum which subtract background from raw data. I am unable to understand how can i extract any data that was subtracted fr…

---

## [TH1F LabelsOption("\>","X"); NOT working sometimes](https://root-forum.cern.ch/t/th1f-labelsoption-x-not-working-sometimes/38968)

<div class="topic-metadata">

**Author:** [@cbungau](https://root-forum.cern.ch/u/cbungau)\
**Replies:** 4\
**Last updated:** [April 25, 2020, 9:05am UTC](https://root-forum.cern.ch/t/th1f-labelsoption-x-not-working-sometimes/38968 "2020-04-25T09:05:59Z")

</div>

Hello, I am trying to draw a tree containing string entries in descending order of the bin contents. This sometimes works using the LabelsOption("\>",“X”), and sometimes it does not. I am attaching a script and a root fi…

---

## [Adding histograms to already made .root file](https://root-forum.cern.ch/t/adding-histograms-to-already-made-root-file/39055)

<div class="topic-metadata">

**Author:** [@Conor\_McGee](https://root-forum.cern.ch/u/Conor_McGee)\
**Replies:** 5\
**Last updated:** [April 24, 2020, 6:22am UTC](https://root-forum.cern.ch/t/adding-histograms-to-already-made-root-file/39055 "2020-04-24T06:22:18Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided Hi so I am trying to add some new histograms to an already made .root …

---

## [Problem with Class Event](https://root-forum.cern.ch/t/problem-with-class-event/38677)

<div class="topic-metadata">

**Author:** [@pure](https://root-forum.cern.ch/u/pure)\
**Replies:** 19\
**Last updated:** [April 24, 2020, 6:41am UTC](https://root-forum.cern.ch/t/problem-with-class-event/38677 "2020-04-24T06:41:02Z")

</div>

Hello I’m new to ROOT. I want to run examples of tutorials (tree), but when I try to run tree4.C I get this: Error: cannot open file “…/test/libEvent.dll” how can I fix this? I use root\_v5.32.36 on windows7.

---

## [Is there a big difference between TFitter and TMinuit?](https://root-forum.cern.ch/t/is-there-a-big-difference-between-tfitter-and-tminuit/39023)

<div class="topic-metadata">

**Author:** [@eggsAndCoffee](https://root-forum.cern.ch/u/eggsAndCoffee)\
**Replies:** 4\
**Last updated:** [April 23, 2020, 12:43pm UTC](https://root-forum.cern.ch/t/is-there-a-big-difference-between-tfitter-and-tminuit/39023 "2020-04-23T12:43:55Z")

</div>

Hello all. @moneta I’m trying to appreciate if there is a big difference between the TFitter and TMinuit classes, and when one should be used over the other (or if one should always be used over the other?). I see from …

---

## [Problem in calculating areas under fitted peak](https://root-forum.cern.ch/t/problem-in-calculating-areas-under-fitted-peak/38519)

<div class="topic-metadata">

**Author:** [@robertfroast](https://root-forum.cern.ch/u/robertfroast)\
**Replies:** 26\
**Last updated:** [April 22, 2020, 7:01pm UTC](https://root-forum.cern.ch/t/problem-in-calculating-areas-under-fitted-peak/38519 "2020-04-22T19:01:09Z")

</div>

A question that is still a mystery for me is fithisto.C (4.2 KB) (code) eu\_gu\_1.txt (44.1 KB) (data ) In the above code, i have written //Area1 and //Area2 Area1 is calculating the area of the fitted peaks but // Are…

---

## [Root v6-20-00-patches on Catalina 10.15.2](https://root-forum.cern.ch/t/root-v6-20-00-patches-on-catalina-10-15-2/37811)

<div class="topic-metadata">

**Author:** [@kemizio](https://root-forum.cern.ch/u/kemizio)\
**Replies:** 2\
**Last updated:** [February 2, 2020, 1:32pm UTC](https://root-forum.cern.ch/t/root-v6-20-00-patches-on-catalina-10-15-2/37811 "2020-02-02T13:32:50Z")

</div>

Hi, So I’m trying to get ROOT setup on Catalina 10.15.2. But it keeps giving me the following error: Linking CXX shared library …/…/lib/libNet.so Undefined symbols for architecture x86\_64: “\_OPENSSL\_init\_ssl”, refere…

---

## [Trying to change the box width in a TH3](https://root-forum.cern.ch/t/trying-to-change-the-box-width-in-a-th3/39005)

<div class="topic-metadata">

**Author:** [@juliangb](https://root-forum.cern.ch/u/juliangb)\
**Replies:** 5\
**Last updated:** [April 21, 2020, 11:49pm UTC](https://root-forum.cern.ch/t/trying-to-change-the-box-width-in-a-th3/39005 "2020-04-21T23:49:12Z")

</div>

Hello, I’d like to make a TH3 using the option BOX but with the box size fixed. To do this I tried to boost each bin “heigth” to a value from where the box seemed to have its volume fixed, like shown in the first pictur…

---

## [RDataFrame and TMVA in pyroot](https://root-forum.cern.ch/t/rdataframe-and-tmva-in-pyroot/38930)

<div class="topic-metadata">

**Author:** [@dertexaner](https://root-forum.cern.ch/u/dertexaner)\
**Replies:** 4\
**Last updated:** [April 21, 2020, 9:08pm UTC](https://root-forum.cern.ch/t/rdataframe-and-tmva-in-pyroot/38930 "2020-04-21T21:08:57Z")

</div>

Dear experts, I was wondering if you could provide a pyROOT implementation of the experimental RReader example provided in https://root-forum.cern.ch/t/rdataframe-tmva/37709. In particular, it is not clear to me how to…

---

## [Merging TChain object with Merge method results in "\*\*\* Break \*\*\* segmentation fault"](https://root-forum.cern.ch/t/merging-tchain-object-with-merge-method-results-in-break-segmentation-fault/39018)

<div class="topic-metadata">

**Author:** [@Galdiano](https://root-forum.cern.ch/u/Galdiano)\
**Replies:** 2\
**Last updated:** [April 21, 2020, 6:28pm UTC](https://root-forum.cern.ch/t/merging-tchain-object-with-merge-method-results-in-break-segmentation-fault/39018 "2020-04-21T18:28:30Z")

</div>

Hello there! I’m trying to merge two TTrees located in two root files. Through some research, I figure the following should work: TChain chain("reco"); chain.Add("runs/run\_1520.root"); chain.Add("runs/run\_1519.roo…

---

## [String on TGraph axis](https://root-forum.cern.ch/t/string-on-tgraph-axis/39003)

<div class="topic-metadata">

**Author:** [@Mapse](https://root-forum.cern.ch/u/Mapse)\
**Replies:** 1\
**Last updated:** [April 20, 2020, 6:58pm UTC](https://root-forum.cern.ch/t/string-on-tgraph-axis/39003 "2020-04-20T18:58:29Z")

</div>

Hi all, It is possible to plot a string on the X axis of a TGraph? I want to plot current against date time (e.g 20/01/2020). Thanks in advance. Please read tips for efficient and successful posting and posting code …

---

## [Can't zoom in TH1D - x-axis region](https://root-forum.cern.ch/t/cant-zoom-in-th1d-x-axis-region/38998)

<div class="topic-metadata">

**Author:** [@marcogobbo](https://root-forum.cern.ch/u/marcogobbo)\
**Replies:** 1\
**Last updated:** [April 20, 2020, 1:59pm UTC](https://root-forum.cern.ch/t/cant-zoom-in-th1d-x-axis-region/38998 "2020-04-20T13:59:30Z")

</div>

Hi, I’m a student in physics and I have some trouble with my code. It works but when I change the value of limInf and limSup, the data doesn’t zoom into the range that I want, it resizes itself. I’m using histoHV-\>GetX…

---

## [Graphically representing constraint on TF2](https://root-forum.cern.ch/t/graphically-representing-constraint-on-tf2/38974)

<div class="topic-metadata">

**Author:** [@seamus](https://root-forum.cern.ch/u/seamus)\
**Replies:** 6\
**Last updated:** [April 20, 2020, 2:55pm UTC](https://root-forum.cern.ch/t/graphically-representing-constraint-on-tf2/38974 "2020-04-20T14:55:08Z")

</div>

Hi, I have a surface color contour plot made using a TF2 object, but above a certain line of y = f(x), the x and y variables represent unphysical situations and I basically want to not show anything in these areas or in…

---

## [Problem in adjusting the parameters](https://root-forum.cern.ch/t/problem-in-adjusting-the-parameters/38937)

<div class="topic-metadata">

**Author:** [@robertfroast](https://root-forum.cern.ch/u/robertfroast)\
**Replies:** 11\
**Last updated:** [April 20, 2020, 9:00am UTC](https://root-forum.cern.ch/t/problem-in-adjusting-the-parameters/38937 "2020-04-20T09:00:13Z")

</div>

Hi @Wile\_E\_Coyote @couet A plot is made by me and i am fitting this plot by a user defined function. Below are the files that I’m working on: eu\_gu\_1.txt (44.1 KB) rough.C (1.1 KB) I want this red line to pass from…

---

## [Syntax error in thisroot.csh during installation?](https://root-forum.cern.ch/t/syntax-error-in-thisroot-csh-during-installation/38981)

<div class="topic-metadata">

**Author:** [@Tanguy1](https://root-forum.cern.ch/u/Tanguy1)\
**Replies:** 3\
**Last updated:** [April 19, 2020, 9:14pm UTC](https://root-forum.cern.ch/t/syntax-error-in-thisroot-csh-during-installation/38981 "2020-04-19T21:14:46Z")

</div>

Greetings, I recently installed root\_v6.20.04 on my macbook pro (Version 10.14.6) from the https://root.cern/content/release-62004 website. There I downloaded the “Macos 10.14 clang100” .pkg file and followed the instal…

---

## [Newbie: Graphing error](https://root-forum.cern.ch/t/newbie-graphing-error/38966)

<div class="topic-metadata">

**Author:** [@Kilo\_Victor\_Papa](https://root-forum.cern.ch/u/Kilo_Victor_Papa)\
**Replies:** 10\
**Last updated:** [April 18, 2020, 6:30pm UTC](https://root-forum.cern.ch/t/newbie-graphing-error/38966 "2020-04-18T18:30:23Z")

</div>

Hi, I’m a newbie and I’ve been trying to graph a set of data written in a txt file. I think Everything has been set up correctly in my program yet whenever I run it on root with .x function, it gives me as a feedback an…

---

## [How to change the titles of pads in a canvas?](https://root-forum.cern.ch/t/how-to-change-the-titles-of-pads-in-a-canvas/38958)

<div class="topic-metadata">

**Author:** [@scippsean](https://root-forum.cern.ch/u/scippsean)\
**Replies:** 2\
**Last updated:** [April 18, 2020, 6:02pm UTC](https://root-forum.cern.ch/t/how-to-change-the-titles-of-pads-in-a-canvas/38958 "2020-04-18T18:02:42Z")

</div>

Hi everyone, I am having some serious issues with customizing pads in a canvas. First of all, I am using python to run root. Now for some background. I have a TH2F histogram from which I have taken several projections us…

---

## [Can I save the data points from the histogram](https://root-forum.cern.ch/t/can-i-save-the-data-points-from-the-histogram/38936)

<div class="topic-metadata">

**Author:** [@robertfroast](https://root-forum.cern.ch/u/robertfroast)\
**Replies:** 9\
**Last updated:** [April 18, 2020, 3:45pm UTC](https://root-forum.cern.ch/t/can-i-save-the-data-points-from-the-histogram/38936 "2020-04-18T15:45:12Z")

</div>

Usually what we do is make a histogram from a given set of data points. By adding two histograms i have a final histogram. Does root offers to allow the saving of data points of the final histogram? ROOT Version: Not …

---

## [I can't run root on my computer(Windows 10, not Linux)](https://root-forum.cern.ch/t/i-cant-run-root-on-my-computer-windows-10-not-linux/38960)

<div class="topic-metadata">

**Author:** [@wwdws1](https://root-forum.cern.ch/u/wwdws1)\
**Replies:** 2\
**Last updated:** [April 18, 2020, 3:10pm UTC](https://root-forum.cern.ch/t/i-cant-run-root-on-my-computer-windows-10-not-linux/38960 "2020-04-18T15:10:19Z")

</div>

Last year, I installed root 6.18 / 04 on my computer, it reported an error, but it can be used normally.Yesterday I uninstalled the old one and installed the latest version 6.20 / 04. This time I got an error and it was …

---

## [Offset in height for a TH2](https://root-forum.cern.ch/t/offset-in-height-for-a-th2/38865)

<div class="topic-metadata">

**Author:** [@juliangb](https://root-forum.cern.ch/u/juliangb)\
**Replies:** 10\
**Last updated:** [April 17, 2020, 4:15pm UTC](https://root-forum.cern.ch/t/offset-in-height-for-a-th2/38865 "2020-04-17T16:15:44Z")

</div>

Hello, I want to draw one 2D histogram that doesn’t start at 0 when the bin is empty, but at a fixed height on the z axis, let’s say z0, so that the space between 0 an z0 in the z axis is empty. The reason I want to do…

---

## [Error When Making Local Copy of ROOT](https://root-forum.cern.ch/t/error-when-making-local-copy-of-root/38822)

<div class="topic-metadata">

**Author:** [@madisd](https://root-forum.cern.ch/u/madisd)\
**Replies:** 2\
**Last updated:** [April 16, 2020, 2:03am UTC](https://root-forum.cern.ch/t/error-when-making-local-copy-of-root/38822 "2020-04-16T02:03:09Z")

</div>

\_ROOT Version: 6.20.02 \_Platform: Linux \_Compiler: GCC verison 9 Hello! When trying to make/compile a local copy of ROOT, I get a very odd-looking and rather long error with which I am not familiar at about 97% of th…

---

## [Opening ROOT display(TBrowser) causes XQuartz to unexpectedly quit](https://root-forum.cern.ch/t/opening-root-display-tbrowser-causes-xquartz-to-unexpectedly-quit/38898)

<div class="topic-metadata">

**Author:** [@heljarra](https://root-forum.cern.ch/u/heljarra)\
**Replies:** 7\
**Last updated:** [April 15, 2020, 8:19pm UTC](https://root-forum.cern.ch/t/opening-root-display-tbrowser-causes-xquartz-to-unexpectedly-quit/38898 "2020-04-15T20:19:52Z")

</div>

Dear ROOT community I am working on an ssh connection to (lxplus) and I have XQuartz installed on my macbook. It used to work without any error but now it crashes whenever I launch TBrowser or TCanvas or Draw option whi…

---

## [Plotting multiple 1D profile histograms (TProfile) on one canvas](https://root-forum.cern.ch/t/plotting-multiple-1d-profile-histograms-tprofile-on-one-canvas/38859)

<div class="topic-metadata">

**Author:** [@Joanna-Gao](https://root-forum.cern.ch/u/Joanna-Gao)\
**Replies:** 4\
**Last updated:** [April 14, 2020, 3:44pm UTC](https://root-forum.cern.ch/t/plotting-multiple-1d-profile-histograms-tprofile-on-one-canvas/38859 "2020-04-14T15:44:46Z")

</div>

Hi, I have three separate 1D profile plots that I want to plot on one canvas, I defined three separate TProfile objects all have empty titles with the same number of bins and the same ranges for x and for y. I also put …

---

## [How does TGraph::Eval() find interpolation points and how fast is it?](https://root-forum.cern.ch/t/how-does-tgraph-eval-find-interpolation-points-and-how-fast-is-it/38825)

<div class="topic-metadata">

**Author:** [@Nyx](https://root-forum.cern.ch/u/Nyx)\
**Replies:** 1\
**Last updated:** [April 14, 2020, 8:58am UTC](https://root-forum.cern.ch/t/how-does-tgraph-eval-find-interpolation-points-and-how-fast-is-it/38825 "2020-04-14T08:58:31Z")

</div>

Let’s say I have 2 arrays (set of coordinates): x\[\]={x0,...,xN} y\[\]={y0,....,yN} If I want to know some y(x) I can just calculate the linear interpolation between some points of the array. x is the position of moving p…

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

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