# Newbie

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

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

---

## [TRatioPlot: delete LowerRefGraph](https://root-forum.cern.ch/t/tratioplot-delete-lowerrefgraph/33261)

<div class="topic-metadata">

**Author:** [@berserker](https://root-forum.cern.ch/u/berserker)\
**Replies:** 1\
**Last updated:** [March 21, 2019, 1:42pm UTC](https://root-forum.cern.ch/t/tratioplot-delete-lowerrefgraph/33261 "2019-03-21T13:42:39Z")

</div>

Here is the code from the tutorial ratioplot1.C with one line deleting graph added in the end: void ratioplot1() { gStyle-\>SetOptStat(0); auto c1 = new TCanvas("c1", "A ratio example"); auto h1 = new TH1D("h1",…

---

## [TH1F : overflow in bin content?](https://root-forum.cern.ch/t/th1f-overflow-in-bin-content/33252)

<div class="topic-metadata">

**Author:** [@marini](https://root-forum.cern.ch/u/marini)\
**Replies:** 8\
**Last updated:** [March 21, 2019, 8:48am UTC](https://root-forum.cern.ch/t/th1f-overflow-in-bin-content/33252 "2019-03-21T08:48:33Z")

</div>

Hi rooter, I fill a TH1F by the Fill(x) function. I know how many counts I should have in a given bin, but when drawing the histogram (and doing h-\>GetBinContent(i)) the number of counts in that bin are 1.677e7, while t…

---

## [Clarification on Boost function in ROOT](https://root-forum.cern.ch/t/clarification-on-boost-function-in-root/33247)

<div class="topic-metadata">

**Author:** [@JDutta](https://root-forum.cern.ch/u/JDutta)\
**Replies:** 2\
**Last updated:** [March 20, 2019, 3:43pm UTC](https://root-forum.cern.ch/t/clarification-on-boost-function-in-root/33247 "2019-03-20T15:43:05Z")

</div>

Hi, I am recently using the Boost vector in ROOT and wanted to understand the following line: " A boost in a general direction can be parameterised with three parameters which can be taken as the components of a three …

---

## [Setting branches with a for loop](https://root-forum.cern.ch/t/setting-branches-with-a-for-loop/33223)

<div class="topic-metadata">

**Author:** [@Lp-slt](https://root-forum.cern.ch/u/Lp-slt)\
**Replies:** 1\
**Last updated:** [March 19, 2019, 5:57pm UTC](https://root-forum.cern.ch/t/setting-branches-with-a-for-loop/33223 "2019-03-19T17:57:21Z")

</div>

Hi everyone, my problem is related to how to set a large number of branches inside a TTree. Writing a single line “tree-\>branch (…)” for every branch is a method that works, but it becomes heavy when the number of bran…

---

## [Dependent variable on fitting](https://root-forum.cern.ch/t/dependent-variable-on-fitting/33186)

<div class="topic-metadata">

**Author:** [@elena\_573](https://root-forum.cern.ch/u/elena_573)\
**Replies:** 3\
**Last updated:** [March 18, 2019, 11:46pm UTC](https://root-forum.cern.ch/t/dependent-variable-on-fitting/33186 "2019-03-18T23:46:26Z")

</div>

Hi everyone! Well I want to create a fitting function which has a variable that is x and y dependent. I’m posting what I did, which is wrong, just to give you the idea. Variable is u. I was wondering if I could turn it …

---

## [Compile using ACLiC Across Sibling Directories](https://root-forum.cern.ch/t/compile-using-aclic-across-sibling-directories/32341)

<div class="topic-metadata">

**Author:** [@jcorrado](https://root-forum.cern.ch/u/jcorrado)\
**Replies:** 6\
**Last updated:** [March 18, 2019, 4:53pm UTC](https://root-forum.cern.ch/t/compile-using-aclic-across-sibling-directories/32341 "2019-03-18T16:53:05Z")

</div>

I have a project tree structure that looks like: Mu\_Analysis/ —\>Template\_Selector/ -------\>Template\_Selector.C -------\>Template\_Selector.h —\>Compute\_L1XE30Efficiency/ -------\>test\_l1xe30\_efficiency.C -------\>Compu…

---

## [Multiple Write Options](https://root-forum.cern.ch/t/multiple-write-options/33128)

<div class="topic-metadata">

**Author:** [@jcorrado](https://root-forum.cern.ch/u/jcorrado)\
**Replies:** 3\
**Last updated:** [March 18, 2019, 1:53pm UTC](https://root-forum.cern.ch/t/multiple-write-options/33128 "2019-03-18T13:53:18Z")

</div>

I want to use TObject::kOverwrite and TObject::kSingleKey (or TObject::kWriteDelete) at the same time. I’m not quite sure how to pass both of these into the call to Write at the same time. I want to write a TObjArray of …

---

## [Undeclared identifier 'TEveManager'](https://root-forum.cern.ch/t/undeclared-identifier-tevemanager/33159)

<div class="topic-metadata">

**Author:** [@testa](https://root-forum.cern.ch/u/testa)\
**Replies:** 7\
**Last updated:** [March 18, 2019, 1:29pm UTC](https://root-forum.cern.ch/t/undeclared-identifier-tevemanager/33159 "2019-03-18T13:29:35Z")

</div>

Dear Experts, I’m trying to run tutorials/eve/geom\_atlas.C. I’ve root-6.16.00. I get this error: /home/testa/root\_v6/root-6.16.00/tutorials/eve/geom\_atlas.C:12:4: error: use of undeclared identifier ‘TEveManager’ TEv…

---

## [Read in files in a dictionary](https://root-forum.cern.ch/t/read-in-files-in-a-dictionary/33180)

<div class="topic-metadata">

**Author:** [@Hampus\_Hahne](https://root-forum.cern.ch/u/Hampus_Hahne)\
**Replies:** 2\
**Last updated:** [March 18, 2019, 12:25pm UTC](https://root-forum.cern.ch/t/read-in-files-in-a-dictionary/33180 "2019-03-18T12:25:08Z")

</div>

Hello ! I want to use the TFile command to read in root files. Since my project contains loads of files so to be more structured, i have created dictionaries. It is something in this way Tfile \*file1 = new TFile( "\\ba…

---

## [Including Shared Object based on c Code](https://root-forum.cern.ch/t/including-shared-object-based-on-c-code/32937)

<div class="topic-metadata">

**Author:** [@Squirrel](https://root-forum.cern.ch/u/Squirrel)\
**Replies:** 5\
**Last updated:** [March 18, 2019, 7:36am UTC](https://root-forum.cern.ch/t/including-shared-object-based-on-c-code/32937 "2019-03-18T07:36:19Z")

</div>

Hello everyone, hopefully my colleague and I didn’t miss any topic with the solution to our problem… We are working on c-Code and managed to build (with gcc 5 and Eclipse Neon) a shared object. Now we are trying to get…

---

## [Reading data from a ROOT file into a histogram](https://root-forum.cern.ch/t/reading-data-from-a-root-file-into-a-histogram/32885)

<div class="topic-metadata">

**Author:** [@JohnyBoy](https://root-forum.cern.ch/u/JohnyBoy)\
**Replies:** 5\
**Last updated:** [March 16, 2019, 12:13pm UTC](https://root-forum.cern.ch/t/reading-data-from-a-root-file-into-a-histogram/32885 "2019-03-16T12:13:27Z")

</div>

Hello everyone. I am trying to read data from a ROOT file in order to draw some histograms. What I have is the following. Inside of the ROOT file there is a TTree called summary, inside the tree there are two branches …

---

## [Questions about Simulated Annealing algorithm](https://root-forum.cern.ch/t/questions-about-simulated-annealing-algorithm/31309)

<div class="topic-metadata">

**Author:** [@dima5135](https://root-forum.cern.ch/u/dima5135)\
**Replies:** 12\
**Last updated:** [March 16, 2019, 9:14am UTC](https://root-forum.cern.ch/t/questions-about-simulated-annealing-algorithm/31309 "2019-03-16T09:14:56Z")

</div>

Hello everyone! I’m trying to use Simulated Annealing algorithm on Ubuntu, ROOT 6.12/06, and I have a few questions about it. Algorithm works and gives good result, but ROOT crashes without any error after finish, an…

---

## [\*\*\* Break \*\*\* segmentation violation when using Divide()](https://root-forum.cern.ch/t/break-segmentation-violation-when-using-divide/33140)

<div class="topic-metadata">

**Author:** [@SteliosK](https://root-forum.cern.ch/u/SteliosK)\
**Replies:** 8\
**Last updated:** [March 15, 2019, 9:59am UTC](https://root-forum.cern.ch/t/break-segmentation-violation-when-using-divide/33140 "2019-03-15T09:59:03Z")

</div>

Hello new user here, the code I try to produce is : TFile\* f= new TFile ("simple.root"); TTree\* t; f-\> GetObject ("t",t); TCanvas\* c2= new TCanvas ("c2","my histo",500,900); c2-\> Divide(1,2); But when I use D…

---

## [Installed ROOT on Windows. How to use C++ on Jupyter?](https://root-forum.cern.ch/t/installed-root-on-windows-how-to-use-c-on-jupyter/33155)

<div class="topic-metadata">

**Author:** [@kkapdolee](https://root-forum.cern.ch/u/kkapdolee)\
**Replies:** 5\
**Last updated:** [March 14, 2019, 2:40pm UTC](https://root-forum.cern.ch/t/installed-root-on-windows-how-to-use-c-on-jupyter/33155 "2019-03-14T14:40:43Z")

</div>

Hi, I installed ROOT on Windows in order to be able to use C++ on Jupyter Notebook. ROOT seems to be properly installed but I’m not sure how to access C++ from Jupyter at this point. Any help would be appreciated! Than…

---

## [TMultigraph 3D option: changing 3rd axis label size](https://root-forum.cern.ch/t/tmultigraph-3d-option-changing-3rd-axis-label-size/32911)

<div class="topic-metadata">

**Author:** [@Aa5](https://root-forum.cern.ch/u/Aa5)\
**Replies:** 4\
**Last updated:** [March 12, 2019, 1:41pm UTC](https://root-forum.cern.ch/t/tmultigraph-3d-option-changing-3rd-axis-label-size/32911 "2019-03-12T13:41:47Z")

</div>

ROOT Version: 6.14 Platform: MacOS Hello, I am trying to change the following things in a TMultiGraph object. (Link to the previous post.) the axis title, axis sizes, and title offsets for the x-axis and y-axis, F…

---

## [Plot mean and max values of TGraphs in a TMultiGraph](https://root-forum.cern.ch/t/plot-mean-and-max-values-of-tgraphs-in-a-tmultigraph/32517)

<div class="topic-metadata">

**Author:** [@Aa5](https://root-forum.cern.ch/u/Aa5)\
**Replies:** 11\
**Last updated:** [March 12, 2019, 1:12pm UTC](https://root-forum.cern.ch/t/plot-mean-and-max-values-of-tgraphs-in-a-tmultigraph/32517 "2019-03-12T13:12:26Z")

</div>

ROOT Version: 6.14 Platform: MacOS Hello, I am trying to recreate a plot similar to the one attached. I can use TMultiGraph to plot the 6 TGraph s I have. But I am kind of stuck in trying to figure out how I can plot …

---

## [Transparency of TGraphAsymmErrors uncertainty band](https://root-forum.cern.ch/t/transparency-of-tgraphasymmerrors-uncertainty-band/32807)

<div class="topic-metadata">

**Author:** [@aStudent](https://root-forum.cern.ch/u/aStudent)\
**Replies:** 2\
**Last updated:** [March 12, 2019, 1:02pm UTC](https://root-forum.cern.ch/t/transparency-of-tgraphasymmerrors-uncertainty-band/32807 "2019-03-12T13:02:45Z")

</div>

Hi, I have two TGraphAsymmErrors (of distinct colours), and have them on the same plot using TMultiGraph with the drawing option “A4”. The goal is to have two uncertainty bands of different colours with some transparenc…

---

## [Truncation of large numbers using TTree query](https://root-forum.cern.ch/t/truncation-of-large-numbers-using-ttree-query/33110)

<div class="topic-metadata">

**Author:** [@rkessler](https://root-forum.cern.ch/u/rkessler)\
**Replies:** 4\
**Last updated:** [March 12, 2019, 11:51am UTC](https://root-forum.cern.ch/t/truncation-of-large-numbers-using-ttree-query/33110 "2019-03-12T11:51:58Z")

</div>

I have been using ROOT Trees for years to store and read tables from analysis of supernova data. However, I recently noticed a problem storing Galaxy ID, which can be very large. I tried both double and ‘long long int’. …

---

## [Running Root on Windows 10 64 bit distribution](https://root-forum.cern.ch/t/running-root-on-windows-10-64-bit-distribution/33102)

<div class="topic-metadata">

**Author:** [@Colton\_Graham](https://root-forum.cern.ch/u/Colton_Graham)\
**Replies:** 2\
**Last updated:** [March 11, 2019, 2:09pm UTC](https://root-forum.cern.ch/t/running-root-on-windows-10-64-bit-distribution/33102 "2019-03-11T14:09:50Z")

</div>

Is there a distribution of Root which can be run on a Windows 10 Machine with 64 bit architecture? Thanks!

---

## [Fixing parameters](https://root-forum.cern.ch/t/fixing-parameters/33091)

<div class="topic-metadata">

**Author:** [@Prya13](https://root-forum.cern.ch/u/Prya13)\
**Replies:** 2\
**Last updated:** [March 10, 2019, 6:04pm UTC](https://root-forum.cern.ch/t/fixing-parameters/33091 "2019-03-10T18:04:07Z")

</div>

Dear All, I want to fix mass of particle to 3.097 and vary background by 0.1. In doubt of where to put fixing parameters in code. No know how or where to include this FixParameter. mass plots and continuum background.…

---

## [GetParError for exponential fit](https://root-forum.cern.ch/t/getparerror-for-exponential-fit/33072)

<div class="topic-metadata">

**Author:** [@Prya13](https://root-forum.cern.ch/u/Prya13)\
**Replies:** 3\
**Last updated:** [March 8, 2019, 2:52pm UTC](https://root-forum.cern.ch/t/getparerror-for-exponential-fit/33072 "2019-03-08T14:52:51Z")

</div>

Hi All, I trying fi find the +1 sigma and -1sigma in EXPONENTIAL background fit. But getting error wid the value of the amplitude of the background along with its error. They come out same value can’t be correct. Att…

---

## [Normalising histogram](https://root-forum.cern.ch/t/normalising-histogram/33055)

<div class="topic-metadata">

**Author:** [@Prya13](https://root-forum.cern.ch/u/Prya13)\
**Replies:** 7\
**Last updated:** [March 7, 2019, 2:27am UTC](https://root-forum.cern.ch/t/normalising-histogram/33055 "2019-03-07T02:27:43Z")

</div>

I am trying to plot Delta N/Delta M from the histogram in this hmass\_copy then normalize but getting error with GetBinContent.- Function GetBinContent(ibins) is not defined in current scope Int\_t ibins; void mass\_fit(c…

---

## [Unwanted portion removal and choosing best Gaussian fit](https://root-forum.cern.ch/t/unwanted-portion-removal-and-choosing-best-gaussian-fit/33038)

<div class="topic-metadata">

**Author:** [@Prya13](https://root-forum.cern.ch/u/Prya13)\
**Replies:** 6\
**Last updated:** [March 6, 2019, 3:48pm UTC](https://root-forum.cern.ch/t/unwanted-portion-removal-and-choosing-best-gaussian-fit/33038 "2019-03-06T15:48:20Z")

</div>

Dear All, I am having two issues, I would like to write a macro to solve: To remove initial unwanted area from a mass plot region 2 - 2.8. I want to fit a Gaussian function, I tried this \[0\]exp(-0.5pow((x-\[1\])/\[2\],2…

---

## [ROOT installation issues on Ubuntu 18.04](https://root-forum.cern.ch/t/root-installation-issues-on-ubuntu-18-04/33047)

<div class="topic-metadata">

**Author:** [@Sudeepan](https://root-forum.cern.ch/u/Sudeepan)\
**Replies:** 2\
**Last updated:** [March 6, 2019, 11:34am UTC](https://root-forum.cern.ch/t/root-installation-issues-on-ubuntu-18-04/33047 "2019-03-06T11:34:31Z")

</div>

Hi. I am trying to install ROOT for the first time on Ubuntu and I am running into some problems. I am following this pdf to setup ROOT on my device. When I used the command (after cd-ing into /usr/local/root): ./con…

---

## [Qt TObject parent, undefined ref "vtable"](https://root-forum.cern.ch/t/qt-tobject-parent-undefined-ref-vtable/33023)

<div class="topic-metadata">

**Author:** [@vborchsh](https://root-forum.cern.ch/u/vborchsh)\
**Replies:** 1\
**Last updated:** [March 5, 2019, 1:05pm UTC](https://root-forum.cern.ch/t/qt-tobject-parent-undefined-ref-vtable/33023 "2019-03-05T13:05:35Z")

</div>

Hello, I try to connect ROOT to Qt. And, all work fine, before i don’t try to create class with parent a TObject. I write something like that: class MyClass : public TObject { public: MyClass() {;} Int\_t a; Int\_t…

---

## [Trouble with ROOT+libtorch make compilation](https://root-forum.cern.ch/t/trouble-with-root-libtorch-make-compilation/32975)

<div class="topic-metadata">

**Author:** [@amiucci](https://root-forum.cern.ch/u/amiucci)\
**Replies:** 26\
**Last updated:** [March 5, 2019, 12:41pm UTC](https://root-forum.cern.ch/t/trouble-with-root-libtorch-make-compilation/32975 "2019-03-05T12:41:08Z")

</div>

Dear Root forum members, I am hitting a problem with cmake compilation and ROOT libraries. I have followed the ROOT guide to create a CMakeLists for my code and I managed to have a compiled running code. (Here the guid…

---

## [Suggested vim configuration for working with root](https://root-forum.cern.ch/t/suggested-vim-configuration-for-working-with-root/33024)

<div class="topic-metadata">

**Author:** [@tobychev](https://root-forum.cern.ch/u/tobychev)\
**Replies:** 1\
**Last updated:** [March 5, 2019, 12:17pm UTC](https://root-forum.cern.ch/t/suggested-vim-configuration-for-working-with-root/33024 "2019-03-05T12:17:16Z")

</div>

Hello root experts and vim users :slight\_smile: How do you configure vim to be most helpful when working with root? I’m especially interested in anyone with a good configuration for using syntastic or some other syntax …

---

## [Number of Signal and Background events](https://root-forum.cern.ch/t/number-of-signal-and-background-events/32981)

<div class="topic-metadata">

**Author:** [@Debajyoti\_Sengupta](https://root-forum.cern.ch/u/Debajyoti_Sengupta)\
**Replies:** 4\
**Last updated:** [March 5, 2019, 8:22am UTC](https://root-forum.cern.ch/t/number-of-signal-and-background-events/32981 "2019-03-05T08:22:13Z")

</div>

Hello all, I have a histogram which I am trying to fit with a sum of two RooPDFs, and I define RooRealVar b("b", "Number of background events", 0, 5000); RooRealVar s("s", "Number of signal events", 0, 500); How does …

---

## [How can I extract data from root file into simple TXT?](https://root-forum.cern.ch/t/how-can-i-extract-data-from-root-file-into-simple-txt/32978)

<div class="topic-metadata">

**Author:** [@11112](https://root-forum.cern.ch/u/11112)\
**Replies:** 1\
**Last updated:** [March 1, 2019, 4:19pm UTC](https://root-forum.cern.ch/t/how-can-i-extract-data-from-root-file-into-simple-txt/32978 "2019-03-01T16:19:50Z")

</div>

Good day. I have a dna.root filer, which consist of points of ionisation and exitation x,y,z and energy depositions. There are a track of 100 keV proton in dna.root file. How can I extract data from root file into a sim…

---

## [FWTM of a skewed gaussian](https://root-forum.cern.ch/t/fwtm-of-a-skewed-gaussian/32954)

<div class="topic-metadata">

**Author:** [@LuckyMakhathini](https://root-forum.cern.ch/u/LuckyMakhathini)\
**Replies:** 2\
**Last updated:** [March 1, 2019, 1:24pm UTC](https://root-forum.cern.ch/t/fwtm-of-a-skewed-gaussian/32954 "2019-03-01T13:24:25Z")

</div>

Dear Root users I am new on root and i want to get FWTM for skewed Gaussian. I found the crystal ball function to be a good fit for my histogram which has a tail at low energies. For normal Gaussian, FWHM = 2.35sigma a…

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

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