# Newbie

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

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

---

## [Dear Colleagues! What is philosophy for generating dicrtionaries for integrating class into root? Thanks!](https://root-forum.cern.ch/t/dear-colleagues-what-is-philosophy-for-generating-dicrtionaries-for-integrating-class-into-root-thanks/42225)

<div class="topic-metadata">

**Author:** [@kurbatov1](https://root-forum.cern.ch/u/kurbatov1)\
**Replies:** 1\
**Last updated:** [November 11, 2020, 8:49am UTC](https://root-forum.cern.ch/t/dear-colleagues-what-is-philosophy-for-generating-dicrtionaries-for-integrating-class-into-root-thanks/42225 "2020-11-11T08:49:46Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version:6.22/01 \_Platform:18.04.1-Ubuntu \_Compiler:g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0

---

## [Passing arguments to function called by .Define in RDataFrame](https://root-forum.cern.ch/t/passing-arguments-to-function-called-by-define-in-rdataframe/42208)

<div class="topic-metadata">

**Author:** [@bzalewsk](https://root-forum.cern.ch/u/bzalewsk)\
**Replies:** 2\
**Last updated:** [November 10, 2020, 7:01pm UTC](https://root-forum.cern.ch/t/passing-arguments-to-function-called-by-define-in-rdataframe/42208 "2020-11-10T19:01:38Z")

</div>

Dear all I have to calibrate data in my columns with a linear function. I would like to that with the use of a reusable function. In order to do that, I am looping .Define, as explained in this post. The problem I have …

---

## [How to plot any equation using a limiting value of coordinate](https://root-forum.cern.ch/t/how-to-plot-any-equation-using-a-limiting-value-of-coordinate/42188)

<div class="topic-metadata">

**Author:** [@dsubhro](https://root-forum.cern.ch/u/dsubhro)\
**Replies:** 1\
**Last updated:** [November 9, 2020, 9:07pm UTC](https://root-forum.cern.ch/t/how-to-plot-any-equation-using-a-limiting-value-of-coordinate/42188 "2020-11-09T21:07:33Z")

</div>

ROOT Version: 6.22 Platform: Root I want to plot a cylinder of equation x^2+y^2 = 25 for the value of -10 \< z \< 10. and at other value of z(along the axis), there will not be any cylindrical structure. but when I pu…

---

## [How do I process this tree?](https://root-forum.cern.ch/t/how-do-i-process-this-tree/42132)

<div class="topic-metadata">

**Author:** [@Cepheides](https://root-forum.cern.ch/u/Cepheides)\
**Replies:** 5\
**Last updated:** [November 9, 2020, 8:29pm UTC](https://root-forum.cern.ch/t/how-do-i-process-this-tree/42132 "2020-11-09T20:29:58Z")

</div>

In the archived file, I have a data.root file that I am trying to analyze with my MyAnalysis.C code (Note that I haven’t written these codes, I simply want to run them). I want to process the the tree events within the d…

---

## [No member named 'PT'](https://root-forum.cern.ch/t/no-member-named-pt/42156)

<div class="topic-metadata">

**Author:** [@odylalalaaa](https://root-forum.cern.ch/u/odylalalaaa)\
**Replies:** 3\
**Last updated:** [November 9, 2020, 10:53am UTC](https://root-forum.cern.ch/t/no-member-named-pt/42156 "2020-11-09T10:53:40Z")

</div>

hi im very new to root & delphes. im trying to modify the tutorial https://cp3.irmp.ucl.ac.be/projects/delphes/wiki/WorkBook/TutorialBologna im trying to sort the PT after the cuts with std::sort(electrons-\>PT.begin(),…

---

## [Problem storing a TF1 function](https://root-forum.cern.ch/t/problem-storing-a-tf1-function/42151)

<div class="topic-metadata">

**Author:** [@vbabiano](https://root-forum.cern.ch/u/vbabiano)\
**Replies:** 4\
**Last updated:** [November 9, 2020, 10:24am UTC](https://root-forum.cern.ch/t/problem-storing-a-tf1-function/42151 "2020-11-09T10:24:36Z")

</div>

Hello everyone! I have a very strange problem when I store a TF1 function in a ROOT file and then I plot it. If I define a function and I plot it, it looks great. If I save this function to a ROOT file, then open that R…

---

## [Dividing two branches from different ttrees](https://root-forum.cern.ch/t/dividing-two-branches-from-different-ttrees/42153)

<div class="topic-metadata">

**Author:** [@EDown](https://root-forum.cern.ch/u/EDown)\
**Replies:** 3\
**Last updated:** [November 6, 2020, 7:23pm UTC](https://root-forum.cern.ch/t/dividing-two-branches-from-different-ttrees/42153 "2020-11-06T19:23:20Z")

</div>

I’m new to ROOT and using it to analyse data which I create elsewhere and store in a TTree. I want to take the signal stored in one TTree and divide it by the signal stored in another TTree and then plot this new signal…

---

## [Standard library error after updating from Ubuntu 18 to 20](https://root-forum.cern.ch/t/standard-library-error-after-updating-from-ubuntu-18-to-20/42131)

<div class="topic-metadata">

**Author:** [@Cepheides](https://root-forum.cern.ch/u/Cepheides)\
**Replies:** 1\
**Last updated:** [November 5, 2020, 9:33am UTC](https://root-forum.cern.ch/t/standard-library-error-after-updating-from-ubuntu-18-to-20/42131 "2020-11-05T09:33:08Z")

</div>

Hi all, I recently updated my system from Ubuntu 18.04 to 20.04. When I started using ROOT after doing this, I receive the the following error upon startup: nick@nick-X510UAR:~/PHY496/HEPTutorial\_0$ root ERROR in cling…

---

## [\*\*\*Break\*\*\*\* Segmentation violation for a compiled program](https://root-forum.cern.ch/t/break-segmentation-violation-for-a-compiled-program/42022)

<div class="topic-metadata">

**Author:** [@boboc](https://root-forum.cern.ch/u/boboc)\
**Replies:** 14\
**Last updated:** [November 2, 2020, 7:29pm UTC](https://root-forum.cern.ch/t/break-segmentation-violation-for-a-compiled-program/42022 "2020-11-02T19:29:01Z")

</div>

Hello! I am trying to compile a program based on macro.C (attached to this message); what I am trying to do is to write the classes into separate files, not in the main program like macro.C and get an executable. The pr…

---

## [Installing Root6.22 from Source on Windows10](https://root-forum.cern.ch/t/installing-root6-22-from-source-on-windows10/42049)

<div class="topic-metadata">

**Author:** [@AlexAerPhys](https://root-forum.cern.ch/u/AlexAerPhys)\
**Replies:** 2\
**Last updated:** [November 2, 2020, 6:26pm UTC](https://root-forum.cern.ch/t/installing-root6-22-from-source-on-windows10/42049 "2020-11-02T18:26:45Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.22 /02 Platform: Windows 10 Compiler: MS VC 2019, Version 16.7.6, Windows SDK version 10.0.18362.0 Hello, I have been trying t…

---

## [Error using GetConfidenceIntervals](https://root-forum.cern.ch/t/error-using-getconfidenceintervals/42075)

<div class="topic-metadata">

**Author:** [@lum\_totzin](https://root-forum.cern.ch/u/lum_totzin)\
**Replies:** 1\
**Last updated:** [November 1, 2020, 7:35pm UTC](https://root-forum.cern.ch/t/error-using-getconfidenceintervals/42075 "2020-11-01T19:35:16Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided6.18 Platform: Not Provided Compiler: Not Provided Hi I am trying to get a confidence interval of a fit and I have a…

---

## [Running in batch mode?](https://root-forum.cern.ch/t/running-in-batch-mode/42073)

<div class="topic-metadata">

**Author:** [@Matteo\_Monzali](https://root-forum.cern.ch/u/Matteo_Monzali)\
**Replies:** 2\
**Last updated:** [November 1, 2020, 11:59am UTC](https://root-forum.cern.ch/t/running-in-batch-mode/42073 "2020-11-01T11:59:00Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version: 6.22/02 \_Platform: WLS2 - Ubuntu 20 Compiler: Not Provided Hi, I’ve just installed ROOT and I wanted to see how to do some graph…

---

## [Passing parameters](https://root-forum.cern.ch/t/passing-parameters/42043)

<div class="topic-metadata">

**Author:** [@Natilus](https://root-forum.cern.ch/u/Natilus)\
**Replies:** 4\
**Last updated:** [October 29, 2020, 9:55pm UTC](https://root-forum.cern.ch/t/passing-parameters/42043 "2020-10-29T21:55:02Z")

</div>

Dear experts, I have a code that runs perfectly with no problem. I run it using “root -l filename.C++” command. I would like to modify the code so it would do different things based on the parameter I pass to the code w…

---

## [Subtract two histograms](https://root-forum.cern.ch/t/subtract-two-histograms/42046)

<div class="topic-metadata">

**Author:** [@Edward\_Finkelstein](https://root-forum.cern.ch/u/Edward_Finkelstein)\
**Replies:** 5\
**Last updated:** [October 29, 2020, 6:38pm UTC](https://root-forum.cern.ch/t/subtract-two-histograms/42046 "2020-10-29T18:38:56Z")

</div>

Hello, I wish to plot a histogram that is the result of the data in true\_110deg\_28.txt minus the data in true\_background\_110deg\_28.txt. Both files have the exact same number of bins (2048), but have different number of …

---

## [Root quits when reading a root file full of thousands of data](https://root-forum.cern.ch/t/root-quits-when-reading-a-root-file-full-of-thousands-of-data/42021)

<div class="topic-metadata">

**Author:** [@Cepheides](https://root-forum.cern.ch/u/Cepheides)\
**Replies:** 4\
**Last updated:** [October 29, 2020, 2:26pm UTC](https://root-forum.cern.ch/t/root-quits-when-reading-a-root-file-full-of-thousands-of-data/42021 "2020-10-29T14:26:46Z")

</div>

Hi all, HEP\_Project\_ProgramV4.C (16.8 KB) Here is the link to data.root file in the code: https://www.dropbox.com/s/ovg8264j2fdn65e/data.root?dl=0 I am attempting to read in all the data from this root file and analyz…

---

## [Issue Reading Branches](https://root-forum.cern.ch/t/issue-reading-branches/42030)

<div class="topic-metadata">

**Author:** [@tpsatt](https://root-forum.cern.ch/u/tpsatt)\
**Replies:** 5\
**Last updated:** [October 28, 2020, 3:59pm UTC](https://root-forum.cern.ch/t/issue-reading-branches/42030 "2020-10-28T15:59:03Z")

</div>

Hi, I’m having a weird issue when trying to read the values of branches in my TTree. Here’s the outline of the code: TFile \*file = new TFile("file.root"); TTree \*tree = (TTree\*)file-\>Get("tree"); vector\<double\> value; t…

---

## [Error installing ROOT 6.10.04](https://root-forum.cern.ch/t/error-installing-root-6-10-04/41982)

<div class="topic-metadata">

**Author:** [@ficriba](https://root-forum.cern.ch/u/ficriba)\
**Replies:** 4\
**Last updated:** [October 27, 2020, 4:05pm UTC](https://root-forum.cern.ch/t/error-installing-root-6-10-04/41982 "2020-10-27T16:05:03Z")

</div>

Good evening, I am new with this and I am trying to install Root version 6.10.04 with the app Ubuntu 18.04 for Windows. I am doing it with the source file and it gets stuck while building Root with cmake command. I tri…

---

## [Convert Root file into ASCII format?](https://root-forum.cern.ch/t/convert-root-file-into-ascii-format/42018)

<div class="topic-metadata">

**Author:** [@waqas](https://root-forum.cern.ch/u/waqas)\
**Replies:** 2\
**Last updated:** [October 27, 2020, 11:56am UTC](https://root-forum.cern.ch/t/convert-root-file-into-ascii-format/42018 "2020-10-27T11:56:50Z")

</div>

I have set of ROOT files containing a Tree with corresponding Branches…How can i convert them into ASCII format ? Please suggest.

---

## [Can't draw 2 functions TF1 in the same canvas](https://root-forum.cern.ch/t/cant-draw-2-functions-tf1-in-the-same-canvas/42002)

<div class="topic-metadata">

**Author:** [@hammiu](https://root-forum.cern.ch/u/hammiu)\
**Replies:** 5\
**Last updated:** [October 27, 2020, 1:29am UTC](https://root-forum.cern.ch/t/cant-draw-2-functions-tf1-in-the-same-canvas/42002 "2020-10-27T01:29:54Z")

</div>

I want to draw 2 functions in the same canvas. I used option “same”, but it didn’t work properly. Could you help me, please? Here is my code: void B\_Z() { TCanvas \*c = new TCanvas("B(Z)", "B(Z) linear", 800, 60…

---

## [Continuously filling/updating root histogram](https://root-forum.cern.ch/t/continuously-filling-updating-root-histogram/42009)

<div class="topic-metadata">

**Author:** [@paipai](https://root-forum.cern.ch/u/paipai)\
**Replies:** 1\
**Last updated:** [October 26, 2020, 12:07pm UTC](https://root-forum.cern.ch/t/continuously-filling-updating-root-histogram/42009 "2020-10-26T12:07:36Z")

</div>

Hello, Say I got a continuous stream of data coming in. Is it possible to fill a root histogram in real time? So that I can display the histogram while it is beeing filled and looking at the entries coming in? So far I…

---

## [TBrowser on lxplus runs slowly, perhaps due to font?](https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355)

<div class="topic-metadata">

**Author:** [@GaryR](https://root-forum.cern.ch/u/GaryR)\
**Replies:** 17\
**Last updated:** [October 26, 2020, 11:50am UTC](https://root-forum.cern.ch/t/tbrowser-on-lxplus-runs-slowly-perhaps-due-to-font/41355 "2020-10-26T11:50:21Z")

</div>

ROOT Version: 6.16 Platform: Ubuntu 18.04 Hi, I have recently had to do a factory reset on my laptop, and have run into some problems when trying to use ROOT on lxplus. My laptop runs Ubuntu 18.04, and in the past I h…

---

## [Dynamically allocated array](https://root-forum.cern.ch/t/dynamically-allocated-array/41997)

<div class="topic-metadata">

**Author:** [@boboc](https://root-forum.cern.ch/u/boboc)\
**Replies:** 5\
**Last updated:** [October 26, 2020, 9:28am UTC](https://root-forum.cern.ch/t/dynamically-allocated-array/41997 "2020-10-26T09:28:29Z")

</div>

Hello! I am new to ROOT and OOP, in general. I am trying to do a program that writes into a “.root” file a number of objects “Event” which containt a variable number of “Waveform” objects, “Waveform” having 1024 “x” co…

---

## [Keyboard Layout](https://root-forum.cern.ch/t/keyboard-layout/41901)

<div class="topic-metadata">

**Author:** [@hvsouza](https://root-forum.cern.ch/u/hvsouza)\
**Replies:** 6\
**Last updated:** [October 25, 2020, 6:19pm UTC](https://root-forum.cern.ch/t/keyboard-layout/41901 "2020-10-25T18:19:26Z")

</div>

Hello everyone, I am having problems with by keyboard layout and root. If I switch from one layout to the other (lets say, from Italian to US) the terminal instance will work normally with the configuration I’ve set. H…

---

## [Plotting a single point onto a TH2](https://root-forum.cern.ch/t/plotting-a-single-point-onto-a-th2/41969)

<div class="topic-metadata">

**Author:** [@Prya13](https://root-forum.cern.ch/u/Prya13)\
**Replies:** 4\
**Last updated:** [October 23, 2020, 4:25pm UTC](https://root-forum.cern.ch/t/plotting-a-single-point-onto-a-th2/41969 "2020-10-23T16:25:39Z")

</div>

Hey all. I have a TH2 plot and would like to specify only one point on the histogram, This is what I tried but point didn’t print on the histogram. tfile-\>GetObject("h2\_alphabo10", h2\_alphabo10);//get histogram from…

---

## [A problem of pyroot in sublime text3: "root-config: command not found"](https://root-forum.cern.ch/t/a-problem-of-pyroot-in-sublime-text3-root-config-command-not-found/41960)

<div class="topic-metadata">

**Author:** [@mrli](https://root-forum.cern.ch/u/mrli)\
**Replies:** 3\
**Last updated:** [October 23, 2020, 4:46am UTC](https://root-forum.cern.ch/t/a-problem-of-pyroot-in-sublime-text3-root-config-command-not-found/41960 "2020-10-23T04:46:02Z")

</div>

I’m using ROOT 6.22.02 on Ubuntu 18.04.5, and I want to edit some pyROOT codes on Sublime Text 3. To build the code, I created a Sublime Text 3’s build configuration as below: { "cmd": \["/bin/bash", "My\_ROOT's\_Director…

---

## [Problem filling large array using TTreeReader](https://root-forum.cern.ch/t/problem-filling-large-array-using-ttreereader/41955)

<div class="topic-metadata">

**Author:** [@ed20](https://root-forum.cern.ch/u/ed20)\
**Replies:** 5\
**Last updated:** [October 22, 2020, 2:26pm UTC](https://root-forum.cern.ch/t/problem-filling-large-array-using-ttreereader/41955 "2020-10-22T14:26:43Z")

</div>

Apologies if this is too basic a question, but I am confused about how ROOT works in the following case. I have an array, vec vals\[n\_configs\]\[n\_par1\] here ‘vec’ is a struct I defined holding an array of 3 long doubles,…

---

## [VS project does not work with libCore.dll in release folder](https://root-forum.cern.ch/t/vs-project-does-not-work-with-libcore-dll-in-release-folder/41929)

<div class="topic-metadata">

**Author:** [@Mana](https://root-forum.cern.ch/u/Mana)\
**Replies:** 10\
**Last updated:** [October 22, 2020, 1:51pm UTC](https://root-forum.cern.ch/t/vs-project-does-not-work-with-libcore-dll-in-release-folder/41929 "2020-10-22T13:51:34Z")

</div>

Dear ROOTers, new post, new problem! So I finally managed to set up the first basic version of my code and managed to run it on my computer. Yep, just on mine. Now I would like to be able to run it on other windows comp…

---

## [How to improve fit/add background function and gaussians to one fit function?](https://root-forum.cern.ch/t/how-to-improve-fit-add-background-function-and-gaussians-to-one-fit-function/41902)

<div class="topic-metadata">

**Author:** [@Cepheides](https://root-forum.cern.ch/u/Cepheides)\
**Replies:** 3\
**Last updated:** [October 22, 2020, 7:28am UTC](https://root-forum.cern.ch/t/how-to-improve-fit-add-background-function-and-gaussians-to-one-fit-function/41902 "2020-10-22T07:28:06Z")

</div>

I am trying to fit an NaI gamma spectrum in order to get the peaks (and FWHMs) of the spectrum, calculate the energies of the spectrum, and find the parents within the Radium-228 decay chain. As you can see, my Gaussian …

---

## [How to increase axis length](https://root-forum.cern.ch/t/how-to-increase-axis-length/41789)

<div class="topic-metadata">

**Author:** [@nikhil\_bhathi](https://root-forum.cern.ch/u/nikhil_bhathi)\
**Replies:** 5\
**Last updated:** [October 13, 2020, 9:03am UTC](https://root-forum.cern.ch/t/how-to-increase-axis-length/41789 "2020-10-13T09:03:25Z")

</div>

I am trying to use TGraph and TMultiGraph classes. The issue is I want to increase the length of x and Y axis. How do I do that?

---

## [Merging histograms from different root files](https://root-forum.cern.ch/t/merging-histograms-from-different-root-files/41610)

<div class="topic-metadata">

**Author:** [@Afzaal786](https://root-forum.cern.ch/u/Afzaal786)\
**Replies:** 46\
**Last updated:** [October 21, 2020, 5:18pm UTC](https://root-forum.cern.ch/t/merging-histograms-from-different-root-files/41610 "2020-10-21T17:18:15Z")

</div>

Hi, i have three different root files but wanna draw their h1 histograms on a single pad (merge three different root files histograms). How can i do that? Any kind of help meant me a lot. Thanks

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

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