# Newbie

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

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

---

## [Using SetBranchAddress in pyRoot](https://root-forum.cern.ch/t/using-setbranchaddress-in-pyroot/36626)

<div class="topic-metadata">

**Author:** [@diwakar](https://root-forum.cern.ch/u/diwakar)\
**Replies:** 4\
**Last updated:** [November 4, 2019, 1:36pm UTC](https://root-forum.cern.ch/t/using-setbranchaddress-in-pyroot/36626 "2019-11-04T13:36:10Z")

</div>

Hi In C++ ,in order to assign the value of a branch to a variable i would write something like this: float data\_tau1\_pt; data\_tree-\>SetBranchAddress("pt\_1",&data\_tau1\_pt); I am now using pyroot and wrote the correspon…

---

## [Combining Histograms dealing with Statistics Box](https://root-forum.cern.ch/t/combining-histograms-dealing-with-statistics-box/36664)

<div class="topic-metadata">

**Author:** [@Andi1](https://root-forum.cern.ch/u/Andi1)\
**Replies:** 1\
**Last updated:** [November 4, 2019, 1:19pm UTC](https://root-forum.cern.ch/t/combining-histograms-dealing-with-statistics-box/36664 "2019-11-04T13:19:58Z")

</div>

Dear ROOT-Community, currently I am trying to combine TH3F-histograms from two Ttrees from two files generated by GATE. I do have a similar issue with 1D-histograms but I will just show the TH3F-example. As already me…

---

## [Error: variable-sized object may not be initialized TChain](https://root-forum.cern.ch/t/error-variable-sized-object-may-not-be-initialized-tchain/36605)

<div class="topic-metadata">

**Author:** [@burmau\_Garba](https://root-forum.cern.ch/u/burmau_Garba)\
**Replies:** 2\
**Last updated:** [November 1, 2019, 1:26pm UTC](https://root-forum.cern.ch/t/error-variable-sized-object-may-not-be-initialized-tchain/36605 "2019-11-01T13:26:35Z")

</div>

Error: variable-sized object may not be initialized TChain \*gpChain\[i\] = new TChain(gpTreeNames\[i\]); WHAT CAN I DO TO TAKE THIS ERROR OFF MY CODE ? THANKS //Make gpChains TString gpChainNames\[\] = {"p100GeV", "p25…

---

## [Problem submitting a HTCondor job of running a root macro](https://root-forum.cern.ch/t/problem-submitting-a-htcondor-job-of-running-a-root-macro/36604)

<div class="topic-metadata">

**Author:** [@diwakar](https://root-forum.cern.ch/u/diwakar)\
**Replies:** 1\
**Last updated:** [October 31, 2019, 10:50am UTC](https://root-forum.cern.ch/t/problem-submitting-a-htcondor-job-of-running-a-root-macro/36604 "2019-10-31T10:50:29Z")

</div>

I am not sure if this is correct place for asking my doubt since it is more related to HTCondor than with root itself. I have a root macro named “test\_tt.C” in a directory in my ssh account. If i run it locally with “ro…

---

## [Segmentation violation root analyse](https://root-forum.cern.ch/t/segmentation-violation-root-analyse/36583)

<div class="topic-metadata">

**Author:** [@Maxx](https://root-forum.cern.ch/u/Maxx)\
**Replies:** 4\
**Last updated:** [October 30, 2019, 2:54pm UTC](https://root-forum.cern.ch/t/segmentation-violation-root-analyse/36583 "2019-10-30T14:54:26Z")

</div>

Hello, my goal is to analyse a root file from a SPECT/PET scan and know for example how many photons where not detected. I am sure there are easier ways to do this specific task, but it is just an example of how to get …

---

## [\[Solved\] Setup environment variables on lxplus?](https://root-forum.cern.ch/t/solved-setup-environment-variables-on-lxplus/36533)

<div class="topic-metadata">

**Author:** [@eneb](https://root-forum.cern.ch/u/eneb)\
**Replies:** 4\
**Last updated:** [October 28, 2019, 3:05pm UTC](https://root-forum.cern.ch/t/solved-setup-environment-variables-on-lxplus/36533 "2019-10-28T15:05:36Z")

</div>

Hi, I have installed ROOT locally on my laptop and wrote the environment variables in my .bashrc and everything works fine. Now I have to work on lxplus (not lxplus6!) with ROOT. Do I have to set environment variables i…

---

## [Error in \<TClass::LoadClassInfo\>: no interpreter information for class (Windows only)](https://root-forum.cern.ch/t/error-in-tclass-loadclassinfo-no-interpreter-information-for-class-windows-only/36428)

<div class="topic-metadata">

**Author:** [@piotr-nowakowski](https://root-forum.cern.ch/u/piotr-nowakowski)\
**Replies:** 12\
**Last updated:** [October 25, 2019, 11:17am UTC](https://root-forum.cern.ch/t/error-in-tclass-loadclassinfo-no-interpreter-information-for-class-windows-only/36428 "2019-10-25T11:17:13Z")

</div>

Dear experts, I am currently working on a version of the ALICE MasterClass which was created last year, available here: I almost got it working on Windows, however there are some issues that I have problems with fig…

---

## [Problem with log scale on TGraphErrors](https://root-forum.cern.ch/t/problem-with-log-scale-on-tgrapherrors/36497)

<div class="topic-metadata">

**Author:** [@Ella](https://root-forum.cern.ch/u/Ella)\
**Replies:** 8\
**Last updated:** [October 26, 2019, 5:13am UTC](https://root-forum.cern.ch/t/problem-with-log-scale-on-tgrapherrors/36497 "2019-10-26T05:13:01Z")

</div>

Hi, I’m trying to set the log scale for both the X and Y axis of a TCanvas where i want to plot a TGraphErrors and perform a linear Fit. I tried to use both the global gPad-\>SetLogy() and gPad-\>SetLogx() but it doesn’t …

---

## [Hadd -v \[verbosity\] level](https://root-forum.cern.ch/t/hadd-v-verbosity-level/36484)

<div class="topic-metadata">

**Author:** [@abertoli](https://root-forum.cern.ch/u/abertoli)\
**Replies:** 3\
**Last updated:** [October 25, 2019, 2:36pm UTC](https://root-forum.cern.ch/t/hadd-v-verbosity-level/36484 "2019-10-25T14:36:20Z")

</div>

this is for ROOT 6.12.06 with x86\_64-slc6-gcc62-opt for the hadd verbosity level I see that: If the option -v is used, explicitly set the verbosity level; 0 request no output, 99 is the default can you help me to fi…

---

## [How to use SetErrorDef() in TMinuit](https://root-forum.cern.ch/t/how-to-use-seterrordef-in-tminuit/36511)

<div class="topic-metadata">

**Author:** [@chiarag](https://root-forum.cern.ch/u/chiarag)\
**Replies:** 0\
**Last updated:** [October 25, 2019, 2:25pm UTC](https://root-forum.cern.ch/t/how-to-use-seterrordef-in-tminuit/36511 "2019-10-25T14:25:42Z")

</div>

Hi all, I apologise in advance for my naive questions, but I am having some problems in understanding how to use SetErrorDef() correctly. Basically the problem is the following: I am doing a (log)likelihood minimisatio…

---

## [Error in cling::CIFactory::createCI() when opening ROOT](https://root-forum.cern.ch/t/error-in-cling-createci-when-opening-root/36469)

<div class="topic-metadata">

**Author:** [@filipavalente](https://root-forum.cern.ch/u/filipavalente)\
**Replies:** 2\
**Last updated:** [October 24, 2019, 11:06am UTC](https://root-forum.cern.ch/t/error-in-cling-createci-when-opening-root/36469 "2019-10-24T11:06:52Z")

</div>

Hello, When I type root in the terminal to open it, I see the following error message before ROOT opens: ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths! Invoking: LC\_ALL=C x86\_64…

---

## [TF1 with a function written by the user?](https://root-forum.cern.ch/t/tf1-with-a-function-written-by-the-user/36471)

<div class="topic-metadata">

**Author:** [@alberto96](https://root-forum.cern.ch/u/alberto96)\
**Replies:** 1\
**Last updated:** [October 23, 2019, 4:04pm UTC](https://root-forum.cern.ch/t/tf1-with-a-function-written-by-the-user/36471 "2019-10-23T16:04:39Z")

</div>

Hi, I want to create a macro that takes a function written by the user in cmd and draws it with TF1: void DrawFunction(function) { TF1\* fa1 = new TF1("fa1", function, 0, 10); fa1-\>Draw(); } but I have tried …

---

## [Problem with ROOT on macOS 10.14.4](https://root-forum.cern.ch/t/problem-with-root-on-macos-10-14-4/36252)

<div class="topic-metadata">

**Author:** [@FarPoint](https://root-forum.cern.ch/u/FarPoint)\
**Replies:** 2\
**Last updated:** [October 17, 2019, 3:24pm UTC](https://root-forum.cern.ch/t/problem-with-root-on-macos-10-14-4/36252 "2019-10-17T15:24:40Z")

</div>

Hello! I installed ROOT 6.14/02 last year and it worked perfectly. But it doesn’t work now and I don’t know how to fix it. Any help is appreciated ! Please read tips for efficient and successful posting and posting…

---

## [Saved cut file, hoho.c and "cutg\_hello.root"](https://root-forum.cern.ch/t/saved-cut-file-hoho-c-and-cutg-hello-root/36435)

<div class="topic-metadata">

**Author:** [@teffo1](https://root-forum.cern.ch/u/teffo1)\
**Replies:** 4\
**Last updated:** [October 21, 2019, 12:40pm UTC](https://root-forum.cern.ch/t/saved-cut-file-hoho-c-and-cutg-hello-root/36435 "2019-10-21T12:40:23Z")

</div>

Hi guys I am trying to save the cut and read it and again create a root file using: if( DoesFileExist("cutg\_hello.root") ) { f\_cut = new TFile("cutg\_hello.root","RECREATE"); Skip = true; cout \<\< "getting the cut"\<\< endl…

---

## [Fit results didn't show on graph](https://root-forum.cern.ch/t/fit-results-didnt-show-on-graph/36425)

<div class="topic-metadata">

**Author:** [@zebrooko](https://root-forum.cern.ch/u/zebrooko)\
**Replies:** 3\
**Last updated:** [October 21, 2019, 10:05am UTC](https://root-forum.cern.ch/t/fit-results-didnt-show-on-graph/36425 "2019-10-21T10:05:33Z")

</div>

Hello! I have a problem with fitting my data with Cauchy distribution. I’ve done fitting many times and have really no idea what’s wrong this time. In fit results i get “0 +/- nan” in my parameters, a very small NCall…

---

## [Attaching circles to a bar plot](https://root-forum.cern.ch/t/attaching-circles-to-a-bar-plot/36372)

<div class="topic-metadata">

**Author:** [@Aa5](https://root-forum.cern.ch/u/Aa5)\
**Replies:** 1\
**Last updated:** [October 16, 2019, 3:18pm UTC](https://root-forum.cern.ch/t/attaching-circles-to-a-bar-plot/36372 "2019-10-16T15:18:16Z")

</div>

ROOT Version: 6.14 Platform: MacOS Hello, I am trying to add half circles to a bar plot, with width of each bar of a bar plot being different (something like the attached hand drawn figure). Is it possible to do in Ro…

---

## [Classification Threshold](https://root-forum.cern.ch/t/classification-threshold/36356)

<div class="topic-metadata">

**Author:** [@anprodri](https://root-forum.cern.ch/u/anprodri)\
**Replies:** 1\
**Last updated:** [October 16, 2019, 6:45am UTC](https://root-forum.cern.ch/t/classification-threshold/36356 "2019-10-16T06:45:48Z")

</div>

Hello TMVA users! I wanted to know what’s the default value of the prediction threshold or cut, when training and testing, in case it is not defined. Thanks in advance!

---

## [ROOT + CMake + VisualStudio - macro builds but doesn't work](https://root-forum.cern.ch/t/root-cmake-visualstudio-macro-builds-but-doesnt-work/36317)

<div class="topic-metadata">

**Author:** [@piotr-nowakowski](https://root-forum.cern.ch/u/piotr-nowakowski)\
**Replies:** 4\
**Last updated:** [October 15, 2019, 5:58pm UTC](https://root-forum.cern.ch/t/root-cmake-visualstudio-macro-builds-but-doesnt-work/36317 "2019-10-15T17:58:30Z")

</div>

Hello, I am using Visual Studio 2019 (16.3.4). I have installed ROOT 6.18.04 using the installer. I tried to compile a simple program, but it doesn’t work. This is my CMakeLists: project(CMakeRootTest CXX) set(CMAK…

---

## [Problem getting mean and sigma of the TH2F object created by calling tntuple-\>Draw()](https://root-forum.cern.ch/t/problem-getting-mean-and-sigma-of-the-th2f-object-created-by-calling-tntuple-draw/36350)

<div class="topic-metadata">

**Author:** [@thuwang-xz18](https://root-forum.cern.ch/u/thuwang-xz18)\
**Replies:** 3\
**Last updated:** [October 15, 2019, 11:58am UTC](https://root-forum.cern.ch/t/problem-getting-mean-and-sigma-of-the-th2f-object-created-by-calling-tntuple-draw/36350 "2019-10-15T11:58:51Z")

</div>

hi, guys I used a tntuple object to store data of charges (X,Y,Z,Q) and drawn a 2-D distribution of X vs Y. but when I tried to get the Mean and the StdDev of the distribution, I got all “0” values and I dont know why. …

---

## [Problem filling a tntuple object](https://root-forum.cern.ch/t/problem-filling-a-tntuple-object/36326)

<div class="topic-metadata">

**Author:** [@thuwang-xz18](https://root-forum.cern.ch/u/thuwang-xz18)\
**Replies:** 2\
**Last updated:** [October 12, 2019, 7:57am UTC](https://root-forum.cern.ch/t/problem-filling-a-tntuple-object/36326 "2019-10-12T07:57:12Z")

</div>

Hi guys… I did some simulation and saved the data in a .root file and I tried to use a TNtuple object to draw the charge distribution in space. void readpc(TFile\* file,std::string detector) { //prepare to read tree…

---

## [Getting the Primary Vertex for Event Cuts](https://root-forum.cern.ch/t/getting-the-primary-vertex-for-event-cuts/36251)

<div class="topic-metadata">

**Author:** [@Skip](https://root-forum.cern.ch/u/Skip)\
**Replies:** 6\
**Last updated:** [October 10, 2019, 8:54pm UTC](https://root-forum.cern.ch/t/getting-the-primary-vertex-for-event-cuts/36251 "2019-10-10T20:54:57Z")

</div>

ROOT Version: 6.14/02 Platform: Ubuntu Compiler: Default Hey, all. I’m trying to make some event cuts and having a heck of a time doing so. I want to cut for Vz \< 40.0 cm and Vr \< 2.0 cm. This is the code I’m trying …

---

## [Previous definition is here](https://root-forum.cern.ch/t/previous-definition-is-here/36290)

<div class="topic-metadata">

**Author:** [@Akash116](https://root-forum.cern.ch/u/Akash116)\
**Replies:** 2\
**Last updated:** [October 10, 2019, 7:00am UTC](https://root-forum.cern.ch/t/previous-definition-is-here/36290 "2019-10-10T07:00:42Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided I’ve been learning ROOT through youtube tutorials. This guy uses text …

---

## [Full Width at Half Maximum](https://root-forum.cern.ch/t/full-width-at-half-maximum/36270)

<div class="topic-metadata">

**Author:** [@DANTE0316](https://root-forum.cern.ch/u/DANTE0316)\
**Replies:** 4\
**Last updated:** [October 9, 2019, 2:59pm UTC](https://root-forum.cern.ch/t/full-width-at-half-maximum/36270 "2019-10-09T14:59:19Z")

</div>

Hello， I would like to know if there is a way to compute the Full Width at Half Maximum for a Irregular curve with only one peak? Thank you！

---

## [Saving Histograms to File if they exist and are not NULL](https://root-forum.cern.ch/t/saving-histograms-to-file-if-they-exist-and-are-not-null/36240)

<div class="topic-metadata">

**Author:** [@AndreasLdt](https://root-forum.cern.ch/u/AndreasLdt)\
**Replies:** 5\
**Last updated:** [October 9, 2019, 12:41pm UTC](https://root-forum.cern.ch/t/saving-histograms-to-file-if-they-exist-and-are-not-null/36240 "2019-10-09T12:41:23Z")

</div>

Hi forum, I have a program loading 4 initial distinct TH2F Histograms, doing some work on them and then - if the work succeeded - writing them to an output TFile - each as TH1F Histograms. The problem is, even Histogra…

---

## [Can't get the tree content from the root file](https://root-forum.cern.ch/t/cant-get-the-tree-content-from-the-root-file/36272)

<div class="topic-metadata">

**Author:** [@Ozgur\_Akcali](https://root-forum.cern.ch/u/Ozgur_Akcali)\
**Replies:** 6\
**Last updated:** [October 9, 2019, 8:25am UTC](https://root-forum.cern.ch/t/cant-get-the-tree-content-from-the-root-file/36272 "2019-10-09T08:25:29Z")

</div>

Hi, I’m trying to convert ORTEC-MAESTRO files to root files by adding required information on tree branches. When I check the root file via TBrowser, I get/see the stored values but in the batch mode nothing comes back. …

---

## [Installing python bindings on an already existing root setup](https://root-forum.cern.ch/t/installing-python-bindings-on-an-already-existing-root-setup/36217)

<div class="topic-metadata">

**Author:** [@abhi\_mal](https://root-forum.cern.ch/u/abhi_mal)\
**Replies:** 1\
**Last updated:** [October 3, 2019, 7:04pm UTC](https://root-forum.cern.ch/t/installing-python-bindings-on-an-already-existing-root-setup/36217 "2019-10-03T19:04:36Z")

</div>

Hello, I run ROOT 6.04/12 on ubuntu 16.04. I want to be able to use python along with my ROOT installation. But the only python bindings I could find are “libroot-bindings-5.34”. Can I use that in my case with ROOT 6.04…

---

## [Equivalent command to source setup1.sh on Windows command line](https://root-forum.cern.ch/t/equivalent-command-to-source-setup1-sh-on-windows-command-line/36215)

<div class="topic-metadata">

**Author:** [@TaeNyFan](https://root-forum.cern.ch/u/TaeNyFan)\
**Replies:** 2\
**Last updated:** [October 3, 2019, 3:45pm UTC](https://root-forum.cern.ch/t/equivalent-command-to-source-setup1-sh-on-windows-command-line/36215 "2019-10-03T15:45:26Z")

</div>

I had been using a school linux computer to do a ATLAS project using root. Before I opened any root file, I was instructed to perfom the commands ssh -X -Y username@pc2013.hep.manchester.ac.uk source setup1.sh I wo…

---

## [TFile default constructor usage](https://root-forum.cern.ch/t/tfile-default-constructor-usage/36210)

<div class="topic-metadata">

**Author:** [@riley-x](https://root-forum.cern.ch/u/riley-x)\
**Replies:** 0\
**Last updated:** [October 2, 2019, 7:14pm UTC](https://root-forum.cern.ch/t/tfile-default-constructor-usage/36210 "2019-10-02T19:14:49Z")

</div>

I noticed TFile admits a default constructor. This is useful to create classes with a TFile member, and not have to initialize the file in the constructor. However, how does one subsequently open a file from a default-c…

---

## [\*\*\*Break\*\*\* segmentation violation problem](https://root-forum.cern.ch/t/break-segmentation-violation-problem/36198)

<div class="topic-metadata">

**Author:** [@TaeNyFan](https://root-forum.cern.ch/u/TaeNyFan)\
**Replies:** 7\
**Last updated:** [October 1, 2019, 10:27pm UTC](https://root-forum.cern.ch/t/break-segmentation-violation-problem/36198 "2019-10-01T22:27:29Z")

</div>

I am trying to compile and run a macro mini.C for an ATLAS project. When I add the following lines of code it produces a Break segmentation violation when I try to do mini.Loop(). I used a MakeClass() to produce mini.C …

---

## [Unzip a single basket to see if it is corrupted](https://root-forum.cern.ch/t/unzip-a-single-basket-to-see-if-it-is-corrupted/36194)

<div class="topic-metadata">

**Author:** [@ddavila](https://root-forum.cern.ch/u/ddavila)\
**Replies:** 0\
**Last updated:** [September 30, 2019, 9:16pm UTC](https://root-forum.cern.ch/t/unzip-a-single-basket-to-see-if-it-is-corrupted/36194 "2019-09-30T21:16:54Z")

</div>

Hello, Is there a simple way to unzip a single basket using pyROOT to tell whether the basket is corrupted or not? I’m dealing with partial files where not all baskets are present in the file and want to tell which of t…

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

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