# Newbie

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

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

---

## [Error Propagation on a Fit](https://root-forum.cern.ch/t/error-propagation-on-a-fit/34644)

<div class="topic-metadata">

**Author:** [@Alessandro\_Breghi](https://root-forum.cern.ch/u/Alessandro_Breghi)\
**Replies:** 6\
**Last updated:** [June 17, 2019, 9:31pm UTC](https://root-forum.cern.ch/t/error-propagation-on-a-fit/34644 "2019-06-17T21:31:21Z")

</div>

Hi everyone, I’m Doing An Experiment to calculate the elastic constant of a spring. Now I’ve used TGraphErros and fitted data with the formula: T=2\*TMath::Pi()\*TMath::Sqrt((x+(0.0507/3))/\[k\] creating a TF1 class func…

---

## [TEfficiency output versus posterior distribution](https://root-forum.cern.ch/t/tefficiency-output-versus-posterior-distribution/34643)

<div class="topic-metadata">

**Author:** [@cvergis](https://root-forum.cern.ch/u/cvergis)\
**Replies:** 1\
**Last updated:** [June 17, 2019, 7:19pm UTC](https://root-forum.cern.ch/t/tefficiency-output-versus-posterior-distribution/34643 "2019-06-17T19:19:53Z")

</div>

Hi all, I have a question about the TEfficiency class. I am trying to calculate the error given by the division of two efficiencies (data and simulation) and for that I will try to generate random numbers using the post…

---

## [Root problems during installation](https://root-forum.cern.ch/t/root-problems-during-installation/34638)

<div class="topic-metadata">

**Author:** [@raisan](https://root-forum.cern.ch/u/raisan)\
**Replies:** 1\
**Last updated:** [June 17, 2019, 6:38am UTC](https://root-forum.cern.ch/t/root-problems-during-installation/34638 "2019-06-17T06:38:40Z")

</div>

After I run the tar xfzv code, it seem no configure in the root folder. How can I solve this problem

---

## [CMake Error - Could Not Find X11 when trying trying to install ROOT 6.16/00](https://root-forum.cern.ch/t/cmake-error-could-not-find-x11-when-trying-trying-to-install-root-6-16-00/34587)

<div class="topic-metadata">

**Author:** [@jack42164](https://root-forum.cern.ch/u/jack42164)\
**Replies:** 3\
**Last updated:** [June 17, 2019, 6:36am UTC](https://root-forum.cern.ch/t/cmake-error-could-not-find-x11-when-trying-trying-to-install-root-6-16-00/34587 "2019-06-17T06:36:41Z")

</div>

Hello! I’m having some issues trying to install ROOT onto my computer. My OS is Linux Mint 18.2. When I create the build directory obj, enter obj, and then execute cmake … the terminal works for a bit before saying: –…

---

## [Drawing a TH3D Histogram](https://root-forum.cern.ch/t/drawing-a-th3d-histogram/34619)

<div class="topic-metadata">

**Author:** [@Marisa\_P](https://root-forum.cern.ch/u/Marisa_P)\
**Replies:** 6\
**Last updated:** [June 14, 2019, 6:33pm UTC](https://root-forum.cern.ch/t/drawing-a-th3d-histogram/34619 "2019-06-14T18:33:10Z")

</div>

Hello! I am trying to fill a histogram with x, y, and z variables, and I would like the color of each bin to reflect the number of entries in the bin. I am trying to use a TH3D, defined by the following: // Histograms …

---

## [Occuring errors while trying to build ROOT from source](https://root-forum.cern.ch/t/occuring-errors-while-trying-to-build-root-from-source/34577)

<div class="topic-metadata">

**Author:** [@LKaufmann](https://root-forum.cern.ch/u/LKaufmann)\
**Replies:** 2\
**Last updated:** [June 14, 2019, 6:59am UTC](https://root-forum.cern.ch/t/occuring-errors-while-trying-to-build-root-from-source/34577 "2019-06-14T06:59:48Z")

</div>

Hello! I was trying to build ROOT from source. While making the cmake command, some errors occured: – The C compiler identification is GNU 7.4.0 – The CXX compiler identification is GNU 7.4.0 – Check for working C co…

---

## [2D Histograms directly from two branches in the rootfile](https://root-forum.cern.ch/t/2d-histograms-directly-from-two-branches-in-the-rootfile/34592)

<div class="topic-metadata">

**Author:** [@sanjeeda](https://root-forum.cern.ch/u/sanjeeda)\
**Replies:** 1\
**Last updated:** [June 14, 2019, 6:26am UTC](https://root-forum.cern.ch/t/2d-histograms-directly-from-two-branches-in-the-rootfile/34592 "2019-06-14T06:26:36Z")

</div>

I have two trees in my root file, named ncandidates and events. How do I plot a histogram with ncandidates on the x axis and events on the y axis by writing a command directly on the terminal instead of the ROOT macro?

---

## [Problem with libGui.so.6.14](https://root-forum.cern.ch/t/problem-with-libgui-so-6-14/34435)

<div class="topic-metadata">

**Author:** [@NikkieD](https://root-forum.cern.ch/u/NikkieD)\
**Replies:** 4\
**Last updated:** [June 13, 2019, 2:25pm UTC](https://root-forum.cern.ch/t/problem-with-libgui-so-6-14/34435 "2019-06-13T14:25:52Z")

</div>

Hi All, I’m not very good with linking libraries and so on, so here is a newbie question. I have a program that uses root to plot some data from a lab power supply on two computers. On one computer it works, and on the…

---

## [Finding error of a TH1F plot](https://root-forum.cern.ch/t/finding-error-of-a-th1f-plot/34544)

<div class="topic-metadata">

**Author:** [@Prya13](https://root-forum.cern.ch/u/Prya13)\
**Replies:** 4\
**Last updated:** [June 13, 2019, 1:32pm UTC](https://root-forum.cern.ch/t/finding-error-of-a-th1f-plot/34544 "2019-06-13T13:32:23Z")

</div>

Dear All, I have a distribution and I am trying to find the error associated with this histogram. I used h\_pt -\>Sumw2() before filling then I have a loop but I am getting zero for the error value. Sample code: double…

---

## [Optical photon tracks in ROOT?](https://root-forum.cern.ch/t/optical-photon-tracks-in-root/34571)

<div class="topic-metadata">

**Author:** [@ideaisgenerator](https://root-forum.cern.ch/u/ideaisgenerator)\
**Replies:** 1\
**Last updated:** [June 13, 2019, 10:45am UTC](https://root-forum.cern.ch/t/optical-photon-tracks-in-root/34571 "2019-06-13T10:45:22Z")

</div>

How to visualize optical photon tracks in ROOT?

---

## [ID Histograms y axis](https://root-forum.cern.ch/t/id-histograms-y-axis/34566)

<div class="topic-metadata">

**Author:** [@sanjeeda](https://root-forum.cern.ch/u/sanjeeda)\
**Replies:** 6\
**Last updated:** [June 13, 2019, 9:38am UTC](https://root-forum.cern.ch/t/id-histograms-y-axis/34566 "2019-06-13T09:38:19Z")

</div>

What is it that we see on the y axis when we plot a 1D Histogram?

---

## [Data Structures that can hold TH1F object](https://root-forum.cern.ch/t/data-structures-that-can-hold-th1f-object/34446)

<div class="topic-metadata">

**Author:** [@Juan\_Sanchez](https://root-forum.cern.ch/u/Juan_Sanchez)\
**Replies:** 5\
**Last updated:** [June 12, 2019, 6:40pm UTC](https://root-forum.cern.ch/t/data-structures-that-can-hold-th1f-object/34446 "2019-06-12T18:40:19Z")

</div>

Hello, It’s that I have been storing different histograms objects in a vector and an array but I always end up getting a seg faults when I try to pass a property of the histogram object to any ROOT function. Is there a …

---

## [Converting root histogram to text file](https://root-forum.cern.ch/t/converting-root-histogram-to-text-file/34556)

<div class="topic-metadata">

**Author:** [@sanchitsharma](https://root-forum.cern.ch/u/sanchitsharma)\
**Replies:** 1\
**Last updated:** [June 12, 2019, 4:09pm UTC](https://root-forum.cern.ch/t/converting-root-histogram-to-text-file/34556 "2019-06-12T16:09:03Z")

</div>

I am using below commands to convert my histogram to a text file. $ root -l modules.root DefaultDigitizer-\>cd(); my\_detector-\>cd(); pixelcharge-\>Print("all"); \> pixelcharge.txt The last line gives me two errors: root …

---

## [Error in \<FillNtupleFromStream\>: only whitespace and new line can follow the last number on the line](https://root-forum.cern.ch/t/error-in-fillntuplefromstream-only-whitespace-and-new-line-can-follow-the-last-number-on-the-line/34553)

<div class="topic-metadata">

**Author:** [@bomben](https://root-forum.cern.ch/u/bomben)\
**Replies:** 2\
**Last updated:** [June 12, 2019, 2:45pm UTC](https://root-forum.cern.ch/t/error-in-fillntuplefromstream-only-whitespace-and-new-line-can-follow-the-last-number-on-the-line/34553 "2019-06-12T14:45:50Z")

</div>

Dear all, I get the error I have indicated in the subject when using TNtuple::ReadFile. Here is what I am doing: root \[0\] TNtuple nt("nt","","%d %d %d %f") root \[1\] nt.ReadFile("Potential\_map.txt") and I get: Error…

---

## [Installation error](https://root-forum.cern.ch/t/installation-error/34490)

<div class="topic-metadata">

**Author:** [@Silversgit](https://root-forum.cern.ch/u/Silversgit)\
**Replies:** 1\
**Last updated:** [June 9, 2019, 9:17am UTC](https://root-forum.cern.ch/t/installation-error/34490 "2019-06-09T09:17:06Z")

</div>

I am getting this error while using cmake …/root-6.16.00 CMake Error: CMake was unable to find a build program corresponding to “Ninja”. CMAKE\_MAKE\_PROGRAM is not set. You probably need to select a different build too…

---

## [Failing to install ROOT on Windows](https://root-forum.cern.ch/t/failing-to-install-root-on-windows/34471)

<div class="topic-metadata">

**Author:** [@Andor](https://root-forum.cern.ch/u/Andor)\
**Replies:** 4\
**Last updated:** [June 7, 2019, 1:21pm UTC](https://root-forum.cern.ch/t/failing-to-install-root-on-windows/34471 "2019-06-07T13:21:56Z")

</div>

After the installer finished, I tried to run ROOT for the first time, but it seems not working…

---

## [Sorting branch entries](https://root-forum.cern.ch/t/sorting-branch-entries/34460)

<div class="topic-metadata">

**Author:** [@julia\_49](https://root-forum.cern.ch/u/julia_49)\
**Replies:** 1\
**Last updated:** [June 6, 2019, 2:03pm UTC](https://root-forum.cern.ch/t/sorting-branch-entries/34460 "2019-06-06T14:03:05Z")

</div>

Hello! I want to read different branch entries, sort them and fill them into another root file. My code looks like this: void sort(){ UInt\_t read\_branch1, read\_branch2; UInt\_t write\_branch1, write\_branch2; // 1…

---

## [Setting Color Palette for TH2D](https://root-forum.cern.ch/t/setting-color-palette-for-th2d/34406)

<div class="topic-metadata">

**Author:** [@Derek\_Brehm](https://root-forum.cern.ch/u/Derek_Brehm)\
**Replies:** 3\
**Last updated:** [June 6, 2019, 8:42am UTC](https://root-forum.cern.ch/t/setting-color-palette-for-th2d/34406 "2019-06-06T08:42:50Z")

</div>

I am having trouble setting the color palette for a TH2D. I am only mildly familiar with making my own ColorGradientTable and I am having trouble creating one for the specifications I want. I want to create one that show…

---

## [Segmentation Fault (core dumped) python3](https://root-forum.cern.ch/t/segmentation-fault-core-dumped-python3/34325)

<div class="topic-metadata">

**Author:** [@M.Sawa51](https://root-forum.cern.ch/u/M.Sawa51)\
**Replies:** 14\
**Last updated:** [June 6, 2019, 3:01am UTC](https://root-forum.cern.ch/t/segmentation-fault-core-dumped-python3/34325 "2019-06-06T03:01:17Z")

</div>

\_ROOT Version:root-6.16.00 \_Platform: Windows Subsystem for Linux(Ubuntu 18.04 LTE) Compiler: cmake (3.10.2) Hello everyone, I’m a beginner of ROOT and all computing analysis. I’ve already compiled ROOT with cmake…

---

## [Problem with .CopyTree("cuts") PyRoot](https://root-forum.cern.ch/t/problem-with-copytree-cuts-pyroot/34384)

<div class="topic-metadata">

**Author:** [@zimmik44](https://root-forum.cern.ch/u/zimmik44)\
**Replies:** 7\
**Last updated:** [June 5, 2019, 7:05pm UTC](https://root-forum.cern.ch/t/problem-with-copytree-cuts-pyroot/34384 "2019-06-05T19:05:23Z")

</div>

Hellp there! I have been trying to use the copytree algorithm with cuts to get rid of a lot of event that I do not need, but for some reason the same code works in certain circumstances and it doesn’t in other. It is ve…

---

## ["Warning: invalid memory pointer passed to a callee: t\_T-\>GetEntry(ievt);"](https://root-forum.cern.ch/t/warning-invalid-memory-pointer-passed-to-a-callee-t-t-getentry-ievt/34445)

<div class="topic-metadata">

**Author:** [@Marisa\_P](https://root-forum.cern.ch/u/Marisa_P)\
**Replies:** 1\
**Last updated:** [June 5, 2019, 7:03pm UTC](https://root-forum.cern.ch/t/warning-invalid-memory-pointer-passed-to-a-callee-t-t-getentry-ievt/34445 "2019-06-05T19:03:28Z")

</div>

Hello, I am unsure of why I am receiving the error in the title. In addition to that message, it says “Trying to access a pointer that points to an invalid memory address…” It’s weird that it doesn’t have a problem with l…

---

## [TH1F combine spectra](https://root-forum.cern.ch/t/th1f-combine-spectra/34432)

<div class="topic-metadata">

**Author:** [@jbrummer](https://root-forum.cern.ch/u/jbrummer)\
**Replies:** 1\
**Last updated:** [June 5, 2019, 10:32am UTC](https://root-forum.cern.ch/t/th1f-combine-spectra/34432 "2019-06-05T10:32:44Z")

</div>

Hello I have a question about a piece of code. I have various 1D histograms and want to combine. Now I have been able to do this successfully but I want to know why I cannot include the code in the same script. e.g. #…

---

## [Python help function on ROOT class methods](https://root-forum.cern.ch/t/python-help-function-on-root-class-methods/34328)

<div class="topic-metadata">

**Author:** [@antonio.iuliano2](https://root-forum.cern.ch/u/antonio.iuliano2)\
**Replies:** 2\
**Last updated:** [June 4, 2019, 7:00am UTC](https://root-forum.cern.ch/t/python-help-function-on-root-class-methods/34328 "2019-06-04T07:00:36Z")

</div>

Dear ROOT experts, I am learning how to write a ROOT C++ class and load it in a Python script. It works fine, but I am wondering if I can add documentation to be intercepted by the help python function. Explaining, is…

---

## [Compilation on Linux - RConfig.h missing error](https://root-forum.cern.ch/t/compilation-on-linux-rconfig-h-missing-error/34370)

<div class="topic-metadata">

**Author:** [@quentinduc33](https://root-forum.cern.ch/u/quentinduc33)\
**Replies:** 2\
**Last updated:** [June 3, 2019, 4:12pm UTC](https://root-forum.cern.ch/t/compilation-on-linux-rconfig-h-missing-error/34370 "2019-06-03T16:12:51Z")

</div>

Hi there, I got an UBUNTU 16.04 LTS distribution. I installed ROOT on it. When I am running an example (.x hsimple.C for example) : no problem, it’s working. But when I try to compile (.L hsimple.C+) here is what I ge…

---

## [How to hide the splash screen when launching root?](https://root-forum.cern.ch/t/how-to-hide-the-splash-screen-when-launching-root/34367)

<div class="topic-metadata">

**Author:** [@lineage](https://root-forum.cern.ch/u/lineage)\
**Replies:** 1\
**Last updated:** [June 1, 2019, 11:54am UTC](https://root-forum.cern.ch/t/how-to-hide-the-splash-screen-when-launching-root/34367 "2019-06-01T11:54:00Z")

</div>

I am trying to learn root and couldn’t find a way to turn off the splash screen when launching root from terminal (on ubuntu). Is there any command line option or other way to do this?

---

## [Learning about trees, tutorial not working](https://root-forum.cern.ch/t/learning-about-trees-tutorial-not-working/34331)

<div class="topic-metadata">

**Author:** [@rstew](https://root-forum.cern.ch/u/rstew)\
**Replies:** 3\
**Last updated:** [May 30, 2019, 3:58pm UTC](https://root-forum.cern.ch/t/learning-about-trees-tutorial-not-working/34331 "2019-05-30T15:58:57Z")

</div>

I have the ROOT tutorial chapter 14, attempting to learn how to make and use TTree classes but all the examples and the tutorial data is missing and/or different in the $ROOTSYS/tutorial/tree file. Does anyone know if th…

---

## [Using minuit to minimize chi2 and estimate errors](https://root-forum.cern.ch/t/using-minuit-to-minimize-chi2-and-estimate-errors/34223)

<div class="topic-metadata">

**Author:** [@afylot](https://root-forum.cern.ch/u/afylot)\
**Replies:** 10\
**Last updated:** [May 29, 2019, 4:22pm UTC](https://root-forum.cern.ch/t/using-minuit-to-minimize-chi2-and-estimate-errors/34223 "2019-05-29T16:22:02Z")

</div>

I am using Minuit with pyroot. I have learnt how to define a function in python and pass it to the fitting method, using ROOT::Fit::Fitter for example. Now I would like to use all the functionality provided by Minuit to …

---

## [What is the meaning of weight of events?](https://root-forum.cern.ch/t/what-is-the-meaning-of-weight-of-events/34270)

<div class="topic-metadata">

**Author:** [@m\_cern313](https://root-forum.cern.ch/u/m_cern313)\
**Replies:** 1\
**Last updated:** [May 28, 2019, 8:14am UTC](https://root-forum.cern.ch/t/what-is-the-meaning-of-weight-of-events/34270 "2019-05-28T08:14:25Z")

</div>

Hi friends I newly joined the high energy physics group. Every time I used to deal with the “weight of events”. Can you please anyone clarify me what does this really mean? Thanks

---

## [Pythia version compatible with the latest version of ROOT (and including histograms in Pythia!)](https://root-forum.cern.ch/t/pythia-version-compatible-with-the-latest-version-of-root-and-including-histograms-in-pythia/34247)

<div class="topic-metadata">

**Author:** [@jialvarez](https://root-forum.cern.ch/u/jialvarez)\
**Replies:** 1\
**Last updated:** [May 27, 2019, 7:12am UTC](https://root-forum.cern.ch/t/pythia-version-compatible-with-the-latest-version-of-root-and-including-histograms-in-pythia/34247 "2019-05-27T07:12:03Z")

</div>

Good day! I installed version pythia8240 and ROOT version 6.16.00 afterwards. I want to use the histogram found in ROOT in one of the examples (main91.cc). I can’t seem to find a way to “linked” those two versions to ma…

---

## [Change x-axis of histogram from channels to energy](https://root-forum.cern.ch/t/change-x-axis-of-histogram-from-channels-to-energy/34240)

<div class="topic-metadata">

**Author:** [@JorgeM](https://root-forum.cern.ch/u/JorgeM)\
**Replies:** 1\
**Last updated:** [May 24, 2019, 6:27pm UTC](https://root-forum.cern.ch/t/change-x-axis-of-histogram-from-channels-to-energy/34240 "2019-05-24T18:27:33Z")

</div>

Hi! I have a histogram and the x axis is set on the channels from a file. Is there a way to change (or calibrate) the x axis if we have a simple linear function that converts: E(KeV)=m\*(channel)+b Here is my macro: {…

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

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