# Newbie

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

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

---

## [Issue running same macro multiple times (segmentation violation)](https://root-forum.cern.ch/t/issue-running-same-macro-multiple-times-segmentation-violation/31896)

<div class="topic-metadata">

**Author:** [@Zeno](https://root-forum.cern.ch/u/Zeno)\
**Replies:** 10\
**Last updated:** [December 5, 2018, 2:42pm UTC](https://root-forum.cern.ch/t/issue-running-same-macro-multiple-times-segmentation-violation/31896 "2018-12-05T14:42:38Z")

</div>

Hi all, I made a macro to retrieve data from a .root file and analyse the histograms inside it. Until today, it worked flawlessly. However, after I made a backup of the file today, the file doesn’t want to run multiple …

---

## [How to access directories within root files](https://root-forum.cern.ch/t/how-to-access-directories-within-root-files/31866)

<div class="topic-metadata">

**Author:** [@LoekMeijers](https://root-forum.cern.ch/u/LoekMeijers)\
**Replies:** 4\
**Last updated:** [December 5, 2018, 9:31am UTC](https://root-forum.cern.ch/t/how-to-access-directories-within-root-files/31866 "2018-12-05T09:31:11Z")

</div>

Dear root users, Within a root file I have, there’s a histogram inside a directory, inside a directory. A screenshot of the way the directories are stacked is posted below: I have been using root files with histogram…

---

## [Integrate function for histograms](https://root-forum.cern.ch/t/integrate-function-for-histograms/31785)

<div class="topic-metadata">

**Author:** [@LoekMeijers](https://root-forum.cern.ch/u/LoekMeijers)\
**Replies:** 2\
**Last updated:** [December 4, 2018, 12:39pm UTC](https://root-forum.cern.ch/t/integrate-function-for-histograms/31785 "2018-12-04T12:39:29Z")

</div>

Hi all, A quick question: say I have defined and filled a histogram called h1. What happens if I use h1-\>Integrate(0,10). Do I get the integral of the contents of bin 1 to bin 10, or do I get the integral from histogra…

---

## [Get content from TRatioPlot](https://root-forum.cern.ch/t/get-content-from-tratioplot/31864)

<div class="topic-metadata">

**Author:** [@gugi](https://root-forum.cern.ch/u/gugi)\
**Replies:** 1\
**Last updated:** [December 3, 2018, 4:18pm UTC](https://root-forum.cern.ch/t/get-content-from-tratioplot/31864 "2018-12-03T16:18:13Z")

</div>

Is there a way to print the values of the ratio of the two histograms that is calculated by TRatioPlot?

---

## [Cling repl syntax to add libraries & compilation flags?](https://root-forum.cern.ch/t/cling-repl-syntax-to-add-libraries-compilation-flags/31826)

<div class="topic-metadata">

**Author:** [@forrest](https://root-forum.cern.ch/u/forrest)\
**Replies:** 2\
**Last updated:** [November 29, 2018, 10:37pm UTC](https://root-forum.cern.ch/t/cling-repl-syntax-to-add-libraries-compilation-flags/31826 "2018-11-29T22:37:01Z")

</div>

I’m merely using cling as a c++ coding tool (on Ubuntu 18)… but I’m not finding a way to feed it .a or .so libraries. \[Yes, I’ve looked – but so far have not found this sufficiently clearly laid out. Example?\] ?

---

## [Pythia at low energy](https://root-forum.cern.ch/t/pythia-at-low-energy/31799)

<div class="topic-metadata">

**Author:** [@wellatiger](https://root-forum.cern.ch/u/wellatiger)\
**Replies:** 1\
**Last updated:** [November 29, 2018, 2:31pm UTC](https://root-forum.cern.ch/t/pythia-at-low-energy/31799 "2018-11-29T14:31:06Z")

</div>

Hello all, sorry for asking this question here, it is related to Pythia. Is it possible to generate a process like (p p --\> p k+ lambda) at low energy (e.g sqrt(s) = 4 or 5 GeV)?!, if yes how?. Many thanks in advance,

---

## [Can we divide TGraphAssymErrors to TH1](https://root-forum.cern.ch/t/can-we-divide-tgraphassymerrors-to-th1/31786)

<div class="topic-metadata">

**Author:** [@Aayushi14](https://root-forum.cern.ch/u/Aayushi14)\
**Replies:** 3\
**Last updated:** [November 28, 2018, 8:45am UTC](https://root-forum.cern.ch/t/can-we-divide-tgraphassymerrors-to-th1/31786 "2018-11-28T08:45:08Z")

</div>

Hi, I have some data root file, which is in TGraphAssymErrors form. Also I have generated mc simulation data, which is in TH1 form. I want to form ratio plot of Data/MC. Also I have to add the uncertainties on this plot…

---

## [Error setting environment variables 6.14/06](https://root-forum.cern.ch/t/error-setting-environment-variables-6-14-06/31788)

<div class="topic-metadata">

**Author:** [@dominik\_clemente](https://root-forum.cern.ch/u/dominik_clemente)\
**Replies:** 1\
**Last updated:** [November 28, 2018, 8:36am UTC](https://root-forum.cern.ch/t/error-setting-environment-variables-6-14-06/31788 "2018-11-28T08:36:45Z")

</div>

Hi everyone, I’m using an Ubuntu 18.04 image running on VirtualBox in Windows 10, and I’m trying to install ROOT. So far I’ve downloaded ROOT 6.14/06 run the . \<pathname\>/root/thisroot.sh on my terminal, but when I run…

---

## [Install Root on Mac OS Mojave](https://root-forum.cern.ch/t/install-root-on-mac-os-mojave/31708)

<div class="topic-metadata">

**Author:** [@elt0212](https://root-forum.cern.ch/u/elt0212)\
**Replies:** 2\
**Last updated:** [November 27, 2018, 3:12pm UTC](https://root-forum.cern.ch/t/install-root-on-mac-os-mojave/31708 "2018-11-27T15:12:20Z")

</div>

Hello everyone, I am new to root and have tried to install it on my Mac using the Readme file following the steps below: Building Clone the repo $ git clone https://github.com/root-project/root.git Make a directory f…

---

## [Segmentation violation while using Delphes](https://root-forum.cern.ch/t/segmentation-violation-while-using-delphes/31781)

<div class="topic-metadata">

**Author:** [@Aayushi14](https://root-forum.cern.ch/u/Aayushi14)\
**Replies:** 4\
**Last updated:** [November 27, 2018, 10:21am UTC](https://root-forum.cern.ch/t/segmentation-violation-while-using-delphes/31781 "2018-11-27T10:21:45Z")

</div>

Hi, I have installed root 6.08 on my laptop (ubuntu). It is working fine with pythia . Then I installed delphes software to get .root output from .hepmc file. But when I run delphes command (./DelphesSTDHEP cards/delphe…

---

## [Cling interface function](https://root-forum.cern.ch/t/cling-interface-function/31761)

<div class="topic-metadata">

**Author:** [@itsaklid](https://root-forum.cern.ch/u/itsaklid)\
**Replies:** 2\
**Last updated:** [November 26, 2018, 9:40pm UTC](https://root-forum.cern.ch/t/cling-interface-function/31761 "2018-11-26T21:40:00Z")

</div>

Hi everyone! I just finished writing my first actual script, but when I’m trying to run it in ROOT with " .x read\_to\_vectors.C " I get this message: IncrementalExecutor::executeFunction: symbol ‘\_Z15read\_to\_vectorsv’ u…

---

## [Plotting pion production location](https://root-forum.cern.ch/t/plotting-pion-production-location/31767)

<div class="topic-metadata">

**Author:** [@LoekMeijers](https://root-forum.cern.ch/u/LoekMeijers)\
**Replies:** 2\
**Last updated:** [November 26, 2018, 12:21pm UTC](https://root-forum.cern.ch/t/plotting-pion-production-location/31767 "2018-11-26T12:21:20Z")

</div>

Hi All, After trying to use a 2D histogram to plot the production location for pions, I found out that TH2D is probably not the class I should be using to plot this. I was wondering if someone knows how to make a simple…

---

## [TString use in call to TMinuit::mnpout](https://root-forum.cern.ch/t/tstring-use-in-call-to-tminuit-mnpout/31741)

<div class="topic-metadata">

**Author:** [@gregrh](https://root-forum.cern.ch/u/gregrh)\
**Replies:** 2\
**Last updated:** [November 26, 2018, 8:55am UTC](https://root-forum.cern.ch/t/tstring-use-in-call-to-tminuit-mnpout/31741 "2018-11-26T08:55:17Z")

</div>

Hi everyone, I’ve successfully run minuit.Migrad to minimize a likelihood function and now want to access the parameter information via mnpout. I’ve found that the second variable in the call to mnpout needs to be a TSt…

---

## [TH1F Integral to obtaine normalisation](https://root-forum.cern.ch/t/th1f-integral-to-obtaine-normalisation/31549)

<div class="topic-metadata">

**Author:** [@Veronika](https://root-forum.cern.ch/u/Veronika)\
**Replies:** 2\
**Last updated:** [November 22, 2018, 9:56am UTC](https://root-forum.cern.ch/t/th1f-integral-to-obtaine-normalisation/31549 "2018-11-22T09:56:28Z")

</div>

Dear ROOT-experts, I’m trying to estimate a normalisation factor by taking the ration of the integral of data and data driven BG in the dedicated selection. This factor is then applied as weights to BG. Naively I would …

---

## [What is the significance of the 'Empty bins, weights = 1' and should I use it?](https://root-forum.cern.ch/t/what-is-the-significance-of-the-empty-bins-weights-1-and-should-i-use-it/31701)

<div class="topic-metadata">

**Author:** [@rNov77](https://root-forum.cern.ch/u/rNov77)\
**Replies:** 3\
**Last updated:** [November 22, 2018, 9:29am UTC](https://root-forum.cern.ch/t/what-is-the-significance-of-the-empty-bins-weights-1-and-should-i-use-it/31701 "2018-11-22T09:29:07Z")

</div>

I have around 20 data points in a range that I plot as a Histogram. The plot follows a Gaussian pattern, so I used the ‘gaus’ fit from the ‘FitPanel’. Now when I use without any of the check boxes ticked, the mean and s…

---

## [Confidence Levels in Root](https://root-forum.cern.ch/t/confidence-levels-in-root/31602)

<div class="topic-metadata">

**Author:** [@srishino](https://root-forum.cern.ch/u/srishino)\
**Replies:** 35\
**Last updated:** [November 21, 2018, 4:48pm UTC](https://root-forum.cern.ch/t/confidence-levels-in-root/31602 "2018-11-21T16:48:18Z")

</div>

Hello Everyone! I am trying to plot 2-D histogram for contour making at 1,2 and 3 sigma confidence level. I am reading data from a .dat file with three columns and i want plot it as a contour at above mentioned confide…

---

## [Running root programs with VS](https://root-forum.cern.ch/t/running-root-programs-with-vs/31630)

<div class="topic-metadata">

**Author:** [@Debajyoti\_Sengupta](https://root-forum.cern.ch/u/Debajyoti_Sengupta)\
**Replies:** 5\
**Last updated:** [November 16, 2018, 3:41pm UTC](https://root-forum.cern.ch/t/running-root-programs-with-vs/31630 "2018-11-16T15:41:17Z")

</div>

Error C4996 'std::copy::\_Unchecked\_iterators::\_Deprecate': Call to 'std::copy' with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use…

---

## [Units of Vx() and Vy() within TParticle class](https://root-forum.cern.ch/t/units-of-vx-and-vy-within-tparticle-class/31571)

<div class="topic-metadata">

**Author:** [@LoekMeijers](https://root-forum.cern.ch/u/LoekMeijers)\
**Replies:** 2\
**Last updated:** [November 14, 2018, 6:36pm UTC](https://root-forum.cern.ch/t/units-of-vx-and-vy-within-tparticle-class/31571 "2018-11-14T18:36:20Z")

</div>

Dear Root users, Within root’s own Pythia tutorial, I am using the command ‘part-\>Vx();’ and ‘part-\>Vy()’ to get the x and y of the production vertices of particles within the TParticle class. I was wondering if anyone …

---

## [Calling a private constructor of class 'TFile'](https://root-forum.cern.ch/t/calling-a-private-constructor-of-class-tfile/31508)

<div class="topic-metadata">

**Author:** [@oocampo](https://root-forum.cern.ch/u/oocampo)\
**Replies:** 2\
**Last updated:** [November 14, 2018, 6:33pm UTC](https://root-forum.cern.ch/t/calling-a-private-constructor-of-class-tfile/31508 "2018-11-14T18:33:22Z")

</div>

Hello, I am trying to use root to display a series of Histograms on a cent OS virtual machine. I am supposed to call “root analysis.C” and this analysis.C file calls an output.root file that I think it may contain the …

---

## [How to have TH1F's SetBinContent with "char" xAxis](https://root-forum.cern.ch/t/how-to-have-th1fs-setbincontent-with-char-xaxis/31562)

<div class="topic-metadata">

**Author:** [@trenta\_coollime](https://root-forum.cern.ch/u/trenta_coollime)\
**Replies:** 1\
**Last updated:** [November 14, 2018, 8:44am UTC](https://root-forum.cern.ch/t/how-to-have-th1fs-setbincontent-with-char-xaxis/31562 "2018-11-14T08:44:56Z")

</div>

Hi, I am basically using the hlabels1.C tutorial script but with little modification. /// \\file /// \\ingroup tutorial\_hist /// \\notebook /// 1-D histograms with alphanumeric labels /// /// \\macro\_image /// \\macro\_code /…

---

## [Extracting Information from Root file without Root](https://root-forum.cern.ch/t/extracting-information-from-root-file-without-root/31574)

<div class="topic-metadata">

**Author:** [@ZackAshM](https://root-forum.cern.ch/u/ZackAshM)\
**Replies:** 2\
**Last updated:** [November 13, 2018, 3:58pm UTC](https://root-forum.cern.ch/t/extracting-information-from-root-file-without-root/31574 "2018-11-13T15:58:57Z")

</div>

Hello, I am beginning research at my university and part of it requires me to use data in a root file. I’m using Windows 10, and I’ve heard that you cannot run Root on a windows machine. Or if there is, then the tutoria…

---

## [User-Defined Function Histogram Fitting](https://root-forum.cern.ch/t/user-defined-function-histogram-fitting/31567)

<div class="topic-metadata">

**Author:** [@ljakubow](https://root-forum.cern.ch/u/ljakubow)\
**Replies:** 1\
**Last updated:** [November 13, 2018, 3:38pm UTC](https://root-forum.cern.ch/t/user-defined-function-histogram-fitting/31567 "2018-11-13T15:38:38Z")

</div>

Dear ROOT experts I am trying to fit the a/x function in Python to the following histogram: import ROOT %jsroot on h\_sharers = ROOT.TH1F("Sharers","Sharers; Shares; Amount",102, 1, 103) for i in sorted\_shared\_dic…

---

## [Set transparent background of TCanvas in pyROOT](https://root-forum.cern.ch/t/set-transparent-background-of-tcanvas-in-pyroot/31547)

<div class="topic-metadata">

**Author:** [@juifa-tsai](https://root-forum.cern.ch/u/juifa-tsai)\
**Replies:** 3\
**Last updated:** [November 13, 2018, 1:11pm UTC](https://root-forum.cern.ch/t/set-transparent-background-of-tcanvas-in-pyroot/31547 "2018-11-13T13:11:46Z")

</div>

Hi, I am trying to generate a .png file with the transparent background histogram or any plot with pyROOT, but it doesn’t work for me as following setting: import ROOT c1 = ROOT.TCanvas("c1", "", 500, 500) c1.SetFillSt…

---

## [Errors compiling with g++](https://root-forum.cern.ch/t/errors-compiling-with-g/31527)

<div class="topic-metadata">

**Author:** [@tboone42](https://root-forum.cern.ch/u/tboone42)\
**Replies:** 4\
**Last updated:** [November 9, 2018, 11:27pm UTC](https://root-forum.cern.ch/t/errors-compiling-with-g/31527 "2018-11-09T23:27:28Z")

</div>

Hi- I’m trying to compile a file with root libraries as well as c++ and ZeroMQ functions in the include statements. Here’s a list of my #include-s: #include \</path/to/file/zmq.hpp\> #include \<iostream\> #include \<string\> …

---

## [TMVA parameters are seen as unidentified](https://root-forum.cern.ch/t/tmva-parameters-are-seen-as-unidentified/31358)

<div class="topic-metadata">

**Author:** [@xerader](https://root-forum.cern.ch/u/xerader)\
**Replies:** 2\
**Last updated:** [November 8, 2018, 1:58pm UTC](https://root-forum.cern.ch/t/tmva-parameters-are-seen-as-unidentified/31358 "2018-11-08T13:58:59Z")

</div>

When I run a .C File without any parameters for TMVA, it runs fine. root -l TMVAClassification.C works fine. But when i enter a parameter: root -l 'TMVAClassification.C(LD,Likelihood)' I get an error saying undeclar…

---

## [gInterpreter not initialized](https://root-forum.cern.ch/t/ginterpreter-not-initialized/31379)

<div class="topic-metadata">

**Author:** [@jnugent](https://root-forum.cern.ch/u/jnugent)\
**Replies:** 5\
**Last updated:** [November 7, 2018, 7:02am UTC](https://root-forum.cern.ch/t/ginterpreter-not-initialized/31379 "2018-11-07T07:02:42Z")

</div>

Dear ROOT developers, I am trying to build a software package put together by my colleague. I have successfully built the package however it segfaults when I run it. The software is built using ROOT and the stack trace …

---

## [How to make TH1F from my TTree file](https://root-forum.cern.ch/t/how-to-make-th1f-from-my-ttree-file/31460)

<div class="topic-metadata">

**Author:** [@trenta\_coollime](https://root-forum.cern.ch/u/trenta_coollime)\
**Replies:** 5\
**Last updated:** [November 6, 2018, 4:23pm UTC](https://root-forum.cern.ch/t/how-to-make-th1f-from-my-ttree-file/31460 "2018-11-06T16:23:18Z")

</div>

Hi, I have a question with respect to transfering TTree into TH1F. I have a TTree ROOT file, that I want to convert into TH1F to do Gaussian fit! I attached the code of my pyROOT with my TTree Root file in this writing…

---

## [Hardware requirements for Ubuntu+Root](https://root-forum.cern.ch/t/hardware-requirements-for-ubuntu-root/31454)

<div class="topic-metadata">

**Author:** [@mariolab](https://root-forum.cern.ch/u/mariolab)\
**Replies:** 3\
**Last updated:** [November 6, 2018, 12:13pm UTC](https://root-forum.cern.ch/t/hardware-requirements-for-ubuntu-root/31454 "2018-11-06T12:13:46Z")

</div>

Hi, need to install Root under Ubuntu. I’m asking if there’s some particular hardware requirements for it. (e.g. CPU, Ram, Svga). I’m thinking of installing it using an Intel Core I3 CPU, 4gb Ram, 500 Gb Sata HDD, Intel …

---

## [How to read the parameters of the fit-model in Rooworkspace](https://root-forum.cern.ch/t/how-to-read-the-parameters-of-the-fit-model-in-rooworkspace/31378)

<div class="topic-metadata">

**Author:** [@123](https://root-forum.cern.ch/u/123)\
**Replies:** 4\
**Last updated:** [November 6, 2018, 8:54am UTC](https://root-forum.cern.ch/t/how-to-read-the-parameters-of-the-fit-model-in-rooworkspace/31378 "2018-11-06T08:54:57Z")

</div>

exe2.C (2.2 KB) hig.txt (330.5 KB) Hi everyone, \*\*1.\*\*As the picture(sig.png) shows, there is a signal above the background. Now I want to draw the peak(bkg) separately which are supposed to be below the blue line. …

---

## [PGS, Delphes and ROOT](https://root-forum.cern.ch/t/pgs-delphes-and-root/31371)

<div class="topic-metadata">

**Author:** [@surrutiaquir](https://root-forum.cern.ch/u/surrutiaquir)\
**Replies:** 6\
**Last updated:** [November 5, 2018, 10:07pm UTC](https://root-forum.cern.ch/t/pgs-delphes-and-root/31371 "2018-11-05T22:07:50Z")

</div>

Hi, I’m learning how to use ROOT for analysis purposes, and my current task is to reproduce an old result for a given simulation using PGS as the detector simulator. I wrote down a very simple code that works with a ROO…

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

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