# Newbie

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

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

---

## [Sigma value for peak finding using TSpectrum](https://root-forum.cern.ch/t/sigma-value-for-peak-finding-using-tspectrum/46283)

<div class="topic-metadata">

**Author:** [@nikhil\_bhathi](https://root-forum.cern.ch/u/nikhil_bhathi)\
**Replies:** 1\
**Last updated:** [August 12, 2021, 12:53pm UTC](https://root-forum.cern.ch/t/sigma-value-for-peak-finding-using-tspectrum/46283 "2021-08-12T12:53:10Z")

</div>

Hi guys, So, I am using TSpectrum class to find the largest peak in a histogram. the code looks like this: TSpectrum \*s = new TSpectrum(); s-\>Search(hst,2,"nobackground"); positions=s-\>GetPositionX(); But …

---

## [RDataFrame Inputs for a Just-In-Time Compiled C++ Class](https://root-forum.cern.ch/t/rdataframe-inputs-for-a-just-in-time-compiled-c-class/46282)

<div class="topic-metadata">

**Author:** [@Diracula](https://root-forum.cern.ch/u/Diracula)\
**Replies:** 1\
**Last updated:** [August 12, 2021, 7:02am UTC](https://root-forum.cern.ch/t/rdataframe-inputs-for-a-just-in-time-compiled-c-class/46282 "2021-08-12T07:02:09Z")

</div>

I’m trying to use Just-In-Time compilation with the following code: cpp\_code = """ typedef ROOT::VecOps::RVec\<Float\_t\> RVec\_f; typedef ROOT::VecOps::RVec\<Int\_t\> RVec\_i; …

---

## [Making the x and y axis the same axis ratio (1:1)](https://root-forum.cern.ch/t/making-the-x-and-y-axis-the-same-axis-ratio-1-1/46266)

<div class="topic-metadata">

**Author:** [@fabstr](https://root-forum.cern.ch/u/fabstr)\
**Replies:** 2\
**Last updated:** [August 10, 2021, 6:27pm UTC](https://root-forum.cern.ch/t/making-the-x-and-y-axis-the-same-axis-ratio-1-1/46266 "2021-08-10T18:27:19Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.22/00 Platform: Ubuntu 20.04.1 LTS (WSL2) Compiler: GNU or GCC Hello, I’m trying to make the x and y-axis of my contour plot h…

---

## [Error Propagation when dividing histogram (by a constant, by bin width and by another histogram)](https://root-forum.cern.ch/t/error-propagation-when-dividing-histogram-by-a-constant-by-bin-width-and-by-another-histogram/46277)

<div class="topic-metadata">

**Author:** [@oskiiiii](https://root-forum.cern.ch/u/oskiiiii)\
**Replies:** 1\
**Last updated:** [August 11, 2021, 8:58pm UTC](https://root-forum.cern.ch/t/error-propagation-when-dividing-histogram-by-a-constant-by-bin-width-and-by-another-histogram/46277 "2021-08-11T20:58:55Z")

</div>

Hello everyone, I’m quite new to root, I hope my question is not really obvious. Let’s say I have two histograms, h1 and h2. I get their error using Sumw2(). But how should I handle error propagation and how should I d…

---

## [Just-In-Time Compilation with Classes](https://root-forum.cern.ch/t/just-in-time-compilation-with-classes/46263)

<div class="topic-metadata">

**Author:** [@Diracula](https://root-forum.cern.ch/u/Diracula)\
**Replies:** 4\
**Last updated:** [August 11, 2021, 2:46pm UTC](https://root-forum.cern.ch/t/just-in-time-compilation-with-classes/46263 "2021-08-11T14:46:45Z")

</div>

I’m trying to use Jitting with Classes but am having issues. I’ve been trying to run the following test code (just to see if I can get it to work): cpp\_code = """ class TestClass { private: int num; …

---

## [MINOS error is zero for all parameters. except the first one](https://root-forum.cern.ch/t/minos-error-is-zero-for-all-parameters-except-the-first-one/46246)

<div class="topic-metadata">

**Author:** [@Mojtaba](https://root-forum.cern.ch/u/Mojtaba)\
**Replies:** 3\
**Last updated:** [August 11, 2021, 2:14pm UTC](https://root-forum.cern.ch/t/minos-error-is-zero-for-all-parameters-except-the-first-one/46246 "2021-08-11T14:14:53Z")

</div>

Hi Minos returns zero for all asymmetric parameter errors except the first parameter. This is while status is “SUCCESSFUL”. The weird thing is that if I switch any parameter with par0, I will get nonzero asymmetric erro…

---

## [How to get all the bin content from TEfficiency?](https://root-forum.cern.ch/t/how-to-get-all-the-bin-content-from-tefficiency/46267)

<div class="topic-metadata">

**Author:** [@\_rthur](https://root-forum.cern.ch/u/_rthur)\
**Replies:** 2\
**Last updated:** [August 10, 2021, 10:00pm UTC](https://root-forum.cern.ch/t/how-to-get-all-the-bin-content-from-tefficiency/46267 "2021-08-10T22:00:51Z")

</div>

Dear experts, I have tried to get all the bin content from a TEfficiency, but I can’t find a way. The available functions TEfficiency::GetEfficiency, TEfficiency::GetEfficiencyErrorLow, and TEfficiency::GetEfficiencyEr…

---

## [Save Histograms with date/time appended to filename](https://root-forum.cern.ch/t/save-histograms-with-date-time-appended-to-filename/46261)

<div class="topic-metadata">

**Author:** [@Taylor\_Carnahan](https://root-forum.cern.ch/u/Taylor_Carnahan)\
**Replies:** 7\
**Last updated:** [August 10, 2021, 7:00pm UTC](https://root-forum.cern.ch/t/save-histograms-with-date-time-appended-to-filename/46261 "2021-08-10T19:00:39Z")

</div>

Hello everyone; This is probably more of a coding question than anything, but I’m attempting to save a histogram with the local date & time appended to the output filename. I’ve been trying to play with things like strf…

---

## [Normalizing histograms inside .root file](https://root-forum.cern.ch/t/normalizing-histograms-inside-root-file/46256)

<div class="topic-metadata">

**Author:** [@Cesar1](https://root-forum.cern.ch/u/Cesar1)\
**Replies:** 2\
**Last updated:** [August 10, 2021, 4:54pm UTC](https://root-forum.cern.ch/t/normalizing-histograms-inside-root-file/46256 "2021-08-10T16:54:29Z")

</div>

Hello, I am want to write a script so i can normalize the histograms in a .root file. i wrote the following script below, but the histograms inside the .root file are the same after i run the scripts, although the ones …

---

## [Calling C++ from Python](https://root-forum.cern.ch/t/calling-c-from-python/46236)

<div class="topic-metadata">

**Author:** [@Diracula](https://root-forum.cern.ch/u/Diracula)\
**Replies:** 2\
**Last updated:** [August 10, 2021, 2:17pm UTC](https://root-forum.cern.ch/t/calling-c-from-python/46236 "2021-08-10T14:17:28Z")

</div>

(First time poster) Hey, I’m trying to call some C++ code with Python. For Python, I have: mm = ROOT.MuonMatcher mm.Test() I created a MuonMatcher class with C++ code with Test() being a method within it (it just ret…

---

## [No streamer or dictionary error when creating tree for PYTHIA event](https://root-forum.cern.ch/t/no-streamer-or-dictionary-error-when-creating-tree-for-pythia-event/46227)

<div class="topic-metadata">

**Author:** [@Steph](https://root-forum.cern.ch/u/Steph)\
**Replies:** 1\
**Last updated:** [August 10, 2021, 12:39pm UTC](https://root-forum.cern.ch/t/no-streamer-or-dictionary-error-when-creating-tree-for-pythia-event/46227 "2021-08-10T12:39:07Z")

</div>

I configured PYTHIA 8.3.06 with ROOT 6.24/02. I was testing the example main92.cc, for the creation of Ttrees storing pythia events. I had modified nothing, I just run: make main92 ./main92 \> main92.out The line "T-\>…

---

## [Installing ROOT on Windows 10 OS](https://root-forum.cern.ch/t/installing-root-on-windows-10-os/46235)

<div class="topic-metadata">

**Author:** [@Aristobot](https://root-forum.cern.ch/u/Aristobot)\
**Replies:** 4\
**Last updated:** [August 9, 2021, 6:33am UTC](https://root-forum.cern.ch/t/installing-root-on-windows-10-os/46235 "2021-08-09T06:33:16Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version: ROOT 6.24 \_Platform: Windows 10 \_Compiler: Visual Studio 2019 Dear ROOT community, I’m trying to install ROOT on my Windows 10 …

---

## [Missing Legend in ROOT File hist](https://root-forum.cern.ch/t/missing-legend-in-root-file-hist/46191)

<div class="topic-metadata">

**Author:** [@TheScientist](https://root-forum.cern.ch/u/TheScientist)\
**Replies:** 3\
**Last updated:** [August 7, 2021, 6:44pm UTC](https://root-forum.cern.ch/t/missing-legend-in-root-file-hist/46191 "2021-08-07T18:44:48Z")

</div>

I am trying to create a ROOT file with the histogram I generated. However, when I view the histogram from the file, there is a legend missing. Can you please tell how can I fix this? Thank you. void histo() 4 { 5 …

---

## [How to plot "stdev of Y vs X"?](https://root-forum.cern.ch/t/how-to-plot-stdev-of-y-vs-x/46231)

<div class="topic-metadata">

**Author:** [@dtgong](https://root-forum.cern.ch/u/dtgong)\
**Replies:** 1\
**Last updated:** [August 7, 2021, 5:49pm UTC](https://root-forum.cern.ch/t/how-to-plot-stdev-of-y-vs-x/46231 "2021-08-07T17:49:54Z")

</div>

Hi, If we have two branches X and Y in a Tree t1. We can easily plot 2d histogram by using command “t1-\>Draw(“X:Y”);” But if we want to plot the stddev of Y vs X in a 2D histogram? I know we can write a scripts to do t…

---

## [How do I find out the status of a running task in the grid?](https://root-forum.cern.ch/t/how-do-i-find-out-the-status-of-a-running-task-in-the-grid/46217)

<div class="topic-metadata">

**Author:** [@ogavva](https://root-forum.cern.ch/u/ogavva)\
**Replies:** 2\
**Last updated:** [August 7, 2021, 4:19pm UTC](https://root-forum.cern.ch/t/how-do-i-find-out-the-status-of-a-running-task-in-the-grid/46217 "2021-08-07T16:19:11Z")

</div>

I launched the task in the grid about a week ago. Output: Many days have already passed, but the email about the work has not arrived, nor has a new directory been created. how do I check the status of a running tas…

---

## [Adding a branch to a tree and saving](https://root-forum.cern.ch/t/adding-a-branch-to-a-tree-and-saving/46186)

<div class="topic-metadata">

**Author:** [@zero1](https://root-forum.cern.ch/u/zero1)\
**Replies:** 10\
**Last updated:** [August 6, 2021, 8:58pm UTC](https://root-forum.cern.ch/t/adding-a-branch-to-a-tree-and-saving/46186 "2021-08-06T20:58:58Z")

</div>

Hello; I’m trying to add a branch to a tree from a file.root and then I want to save the file, i wrote the following: void TreeAdd(){ TFile \*fp = new TFile(FileName.c\_str(), "update"); if (fp-\>IsZombie()) { std…

---

## [Setting a constant number of decimal points on plot axis](https://root-forum.cern.ch/t/setting-a-constant-number-of-decimal-points-on-plot-axis/36986)

<div class="topic-metadata">

**Author:** [@anf](https://root-forum.cern.ch/u/anf)\
**Replies:** 2\
**Last updated:** [August 6, 2021, 6:37pm UTC](https://root-forum.cern.ch/t/setting-a-constant-number-of-decimal-points-on-plot-axis/36986 "2021-08-06T18:37:43Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 5.34/36 Platform: Scientiic Linux I am looking to change number of digits in my axis labels, so that instead of labeling like {0.5…

---

## [Setting a fixed number of digits to display on axes?](https://root-forum.cern.ch/t/setting-a-fixed-number-of-digits-to-display-on-axes/46218)

<div class="topic-metadata">

**Author:** [@eggsAndCoffee](https://root-forum.cern.ch/u/eggsAndCoffee)\
**Replies:** 1\
**Last updated:** [August 6, 2021, 5:52pm UTC](https://root-forum.cern.ch/t/setting-a-fixed-number-of-digits-to-display-on-axes/46218 "2021-08-06T17:52:48Z")

</div>

Hello, Is there a way to specify a fixed number of digits to display on figure axes? For example, instead of showing “0 0.5 1 1.5…” on an axis, I’d like to have it display as “0.0 0.5 1.0 1.5…”, so that there is always …

---

## [Error: No member named 'scanRucio' in namespace 'SH'](https://root-forum.cern.ch/t/error-no-member-named-scanrucio-in-namespace-sh/45173)

<div class="topic-metadata">

**Author:** [@ogavva](https://root-forum.cern.ch/u/ogavva)\
**Replies:** 4\
**Last updated:** [August 6, 2021, 3:35pm UTC](https://root-forum.cern.ch/t/error-no-member-named-scanrucio-in-namespace-sh/45173 "2021-08-06T15:35:51Z")

</div>

Im trying to make “Grid Runnig” step from ATLAS SOFTWARE TUTORIAL and I receave following error: No member named ‘scanRucio’ in namespace ‘SH’. This is my macros: ATestSubmit.cxx (2.2 KB) My steps: setupATLAS lsetup p…

---

## [Getting area under a Gaussian peak](https://root-forum.cern.ch/t/getting-area-under-a-gaussian-peak/46179)

<div class="topic-metadata">

**Author:** [@BrianN](https://root-forum.cern.ch/u/BrianN)\
**Replies:** 1\
**Last updated:** [August 5, 2021, 2:10pm UTC](https://root-forum.cern.ch/t/getting-area-under-a-gaussian-peak/46179 "2021-08-05T14:10:28Z")

</div>

Hi, I’m trying to find the area under a gaussian peak in my TF1 fit function using the width of the fitted peak (or possibly width of the histogram bins), and the amplitude. Is there a way of doing this without using th…

---

## [Using Tables in ROOT](https://root-forum.cern.ch/t/using-tables-in-root/46077)

<div class="topic-metadata">

**Author:** [@mendoza](https://root-forum.cern.ch/u/mendoza)\
**Replies:** 4\
**Last updated:** [August 4, 2021, 4:04pm UTC](https://root-forum.cern.ch/t/using-tables-in-root/46077 "2021-08-04T16:04:00Z")

</div>

Dear users, I write this topic because I don’t know how to work with tables in ROOT. I am a new user and I did not find any tutorial or information in the User’s guide and root page about how to use tables in ROOT. Basi…

---

## [Adding a custom column to a RDataFrame](https://root-forum.cern.ch/t/adding-a-custom-column-to-a-rdataframe/46154)

<div class="topic-metadata">

**Author:** [@Michele99](https://root-forum.cern.ch/u/Michele99)\
**Replies:** 2\
**Last updated:** [August 4, 2021, 2:17pm UTC](https://root-forum.cern.ch/t/adding-a-custom-column-to-a-rdataframe/46154 "2021-08-04T14:17:22Z")

</div>

Hi, I would like to create a new column basing on the value of another variable in the dataframe for each entry. What I would like to do is to have a column called “C\_origin” which is filled for every entry with 1 if Tr…

---

## [Cling/GCC module errors when trying to analyse files moved from remote to local machine](https://root-forum.cern.ch/t/cling-gcc-module-errors-when-trying-to-analyse-files-moved-from-remote-to-local-machine/46140)

<div class="topic-metadata">

**Author:** [@\_Chan](https://root-forum.cern.ch/u/_Chan)\
**Replies:** 1\
**Last updated:** [August 4, 2021, 10:55am UTC](https://root-forum.cern.ch/t/cling-gcc-module-errors-when-trying-to-analyse-files-moved-from-remote-to-local-machine/46140 "2021-08-04T10:55:10Z")

</div>

Hey, I was analysing data remotely using root via lxplus and I decided to move all the C++ macros and header files to my local computer to see if the runtime would improve. I moved the data too so I could access everyth…

---

## [Stacking Four Different Histograms](https://root-forum.cern.ch/t/stacking-four-different-histograms/46120)

<div class="topic-metadata">

**Author:** [@TheScientist](https://root-forum.cern.ch/u/TheScientist)\
**Replies:** 3\
**Last updated:** [August 4, 2021, 7:07am UTC](https://root-forum.cern.ch/t/stacking-four-different-histograms/46120 "2021-08-04T07:07:41Z")

</div>

I am trying to stack four different histograms in one canvas. Here’s my code. Please let me know where my errors are and how I can improve them. void histo() { TFile\* fInput = new TFile("TargetVStudy\_40cm\_POT100…

---

## [Empty histogram but shows entries](https://root-forum.cern.ch/t/empty-histogram-but-shows-entries/46159)

<div class="topic-metadata">

**Author:** [@TheScientist](https://root-forum.cern.ch/u/TheScientist)\
**Replies:** 2\
**Last updated:** [August 4, 2021, 7:31am UTC](https://root-forum.cern.ch/t/empty-histogram-but-shows-entries/46159 "2021-08-04T07:31:42Z")

</div>

I am trying to read the data from the ROOT file, store that data in the vector and fill the histogram. However, my histogram is showing empty but the entry number is as I expected for that specific particle. Here’s my co…

---

## [Correlation between variables](https://root-forum.cern.ch/t/correlation-between-variables/46137)

<div class="topic-metadata">

**Author:** [@kanhaiya-gupta](https://root-forum.cern.ch/u/kanhaiya-gupta)\
**Replies:** 4\
**Last updated:** [August 3, 2021, 8:16am UTC](https://root-forum.cern.ch/t/correlation-between-variables/46137 "2021-08-03T08:16:49Z")

</div>

Dear Experts I wanted to study the correlation between a sets of variables. I followed an example. I have attached the macros for your kind information. Thanking you Kanhaiya Gupta Please read tips for efficient and…

---

## [Roottest and required C++ standard](https://root-forum.cern.ch/t/roottest-and-required-c-standard/46088)

<div class="topic-metadata">

**Author:** [@omasanori](https://root-forum.cern.ch/u/omasanori)\
**Replies:** 6\
**Last updated:** [August 1, 2021, 1:41pm UTC](https://root-forum.cern.ch/t/roottest-and-required-c-standard/46088 "2021-08-01T13:41:07Z")

</div>

Hi, I had tested 6.24.02 built from scratch using the roottest test suite. Since the C7’s system compiler, GCC 4.8.5, has incomplete C++14 supports, I gave -DCMAKE\_CXX\_STANDARD=11 to CMake. -- ROOT Configuration Syst…

---

## [Histogram TH1D with two error bars (systematic and statistical uncertainty)](https://root-forum.cern.ch/t/histogram-th1d-with-two-error-bars-systematic-and-statistical-uncertainty/46079)

<div class="topic-metadata">

**Author:** [@rrramos](https://root-forum.cern.ch/u/rrramos)\
**Replies:** 4\
**Last updated:** [July 31, 2021, 4:50pm UTC](https://root-forum.cern.ch/t/histogram-th1d-with-two-error-bars-systematic-and-statistical-uncertainty/46079 "2021-07-31T16:50:46Z")

</div>

Hello everyone! I have two histograms TH1D, containing the same information about the content of the bins but each one has different error bars, one with systematic uncertainty and the other with statistical uncertainty…

---

## [How to draw histo BEFORE return?](https://root-forum.cern.ch/t/how-to-draw-histo-before-return/46090)

<div class="topic-metadata">

**Author:** [@Lorenzo](https://root-forum.cern.ch/u/Lorenzo)\
**Replies:** 7\
**Last updated:** [July 30, 2021, 6:11pm UTC](https://root-forum.cern.ch/t/how-to-draw-histo-before-return/46090 "2021-07-30T18:11:33Z")

</div>

My problem is the following: I want to write a macro which draws an histogram for each event in a tree, and let hte user change it from time to time. Here’s the code: #include "TGraphAsymmErrors.h" #include "TString.h"…

---

## [ROOT cannot find -lterminfo during Install](https://root-forum.cern.ch/t/root-cannot-find-lterminfo-during-install/45979)

<div class="topic-metadata">

**Author:** [@DuToit](https://root-forum.cern.ch/u/DuToit)\
**Replies:** 15\
**Last updated:** [July 30, 2021, 2:34pm UTC](https://root-forum.cern.ch/t/root-cannot-find-lterminfo-during-install/45979 "2021-07-30T14:34:35Z")

</div>

ROOT Version: 6.24/02 Platform: Linux Compiler: gcc/g++ 4.8.5 I’m trying to install ROOT with Pythia8 enabled, but the cmake --build . -- install -j1 step fails at the following step: \[ 28%\] Built target move\_heade…

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

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