# Newbie

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

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

---

## [Debugging a ROOT macro](https://root-forum.cern.ch/t/debugging-a-root-macro/49194)

<div class="topic-metadata">

**Author:** [@AliH](https://root-forum.cern.ch/u/AliH)\
**Replies:** 16\
**Last updated:** [March 22, 2022, 10:14am UTC](https://root-forum.cern.ch/t/debugging-a-root-macro/49194 "2022-03-22T10:14:36Z")

</div>

ROOT Version: 6.26.00 Platform: Ubuntu 20.04.4 LTS Compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0 Dear ROOT team and users, As a beginner in ROOT and C language, I am trying to debug a root macro. For this purpos…

---

## [RDataFrame Snapshot on NANOAOD](https://root-forum.cern.ch/t/rdataframe-snapshot-on-nanoaod/49277)

<div class="topic-metadata">

**Author:** [@hsaka](https://root-forum.cern.ch/u/hsaka)\
**Replies:** 4\
**Last updated:** [March 21, 2022, 2:31pm UTC](https://root-forum.cern.ch/t/rdataframe-snapshot-on-nanoaod/49277 "2022-03-21T14:31:25Z")

</div>

Dear experts, I am using ROOT 6.20/02 (6.24/06 behaves similarly) to test a simple code that creates a snapshot of a nanoAODv9 file, once keeping all branches, and once only a subset of them. The input file is: root:…

---

## [Vertical Bar for Uncertainty](https://root-forum.cern.ch/t/vertical-bar-for-uncertainty/49278)

<div class="topic-metadata">

**Author:** [@Roy](https://root-forum.cern.ch/u/Roy)\
**Replies:** 1\
**Last updated:** [March 21, 2022, 4:43am UTC](https://root-forum.cern.ch/t/vertical-bar-for-uncertainty/49278 "2022-03-21T04:43:29Z")

</div>

I am trying to add vertical bar for uncertainty in my histogram, I am trying to add uncertainty data into the histogram as a vertical line; Float\_t Threshold; TFile\* file\_input = new TFile("data.root", "read"); …

---

## [TChain error: "no matching member function for call to 'SetBranchAddress"](https://root-forum.cern.ch/t/tchain-error-no-matching-member-function-for-call-to-setbranchaddress/49276)

<div class="topic-metadata">

**Author:** [@CzTee](https://root-forum.cern.ch/u/CzTee)\
**Replies:** 1\
**Last updated:** [March 20, 2022, 3:20pm UTC](https://root-forum.cern.ch/t/tchain-error-no-matching-member-function-for-call-to-setbranchaddress/49276 "2022-03-20T15:20:14Z")

</div>

I am trying to use TChain to load the root files below and access the branch named “signal” inside those root files. The “signal” branch has 1001 entries and each entry is an array of size 128. I followed the tutorials …

---

## [Difference of convergence for Minuit2 between a portable and a server](https://root-forum.cern.ch/t/difference-of-convergence-for-minuit2-between-a-portable-and-a-server/48740)

<div class="topic-metadata">

**Author:** [@tappourc](https://root-forum.cern.ch/u/tappourc)\
**Replies:** 45\
**Last updated:** [March 18, 2022, 4:52pm UTC](https://root-forum.cern.ch/t/difference-of-convergence-for-minuit2-between-a-portable-and-a-server/48740 "2022-03-18T16:52:23Z")

</div>

Hi guys, We have implement the same code in two different machine but we don’t get the same answers. Usually the portable converges faster and gives correct error bars, while the server takes much longer and sometimes …

---

## [Web site address for effective duckduckgo !Bang](https://root-forum.cern.ch/t/web-site-address-for-effective-duckduckgo-bang/49257)

<div class="topic-metadata">

**Author:** [@daves](https://root-forum.cern.ch/u/daves)\
**Replies:** 8\
**Last updated:** [March 18, 2022, 4:22pm UTC](https://root-forum.cern.ch/t/web-site-address-for-effective-duckduckgo-bang/49257 "2022-03-18T16:22:20Z")

</div>

Hi all, this is a workflow tooling question for personal convenience: TLDR: What is the correct url (or is there one) in the form of ${url}${search\_term} that would directly return a search as if ${search\_term} had been…

---

## [Leaf variable meaning and its unit](https://root-forum.cern.ch/t/leaf-variable-meaning-and-its-unit/49255)

<div class="topic-metadata">

**Author:** [@jackb2](https://root-forum.cern.ch/u/jackb2)\
**Replies:** 4\
**Last updated:** [March 18, 2022, 1:29pm UTC](https://root-forum.cern.ch/t/leaf-variable-meaning-and-its-unit/49255 "2022-03-18T13:29:35Z")

</div>

Dear ROOT experts, I am not sure here is the right place to post this question? I have one root file with one tree inside, and in this tree, there are many leaf variables, such as px, py, pz, E, etc. For some leaf vari…

---

## [ROOT + Python3 + cvmfs](https://root-forum.cern.ch/t/root-python3-cvmfs/35146)

<div class="topic-metadata">

**Author:** [@Felipe\_Silva](https://root-forum.cern.ch/u/Felipe_Silva)\
**Replies:** 4\
**Last updated:** [March 17, 2022, 5:09pm UTC](https://root-forum.cern.ch/t/root-python3-cvmfs/35146 "2022-03-17T17:09:24Z")

</div>

Hi, I’m not sure whether or not this is the right forum, but is it possible to have PyROOT (from cvmfs) with Python3? Thanks in advance. Felipe

---

## [Putting two plots side-by-side with same Y axis, x axis division?](https://root-forum.cern.ch/t/putting-two-plots-side-by-side-with-same-y-axis-x-axis-division/49239)

<div class="topic-metadata">

**Author:** [@preimer](https://root-forum.cern.ch/u/preimer)\
**Replies:** 2\
**Last updated:** [March 17, 2022, 5:00pm UTC](https://root-forum.cern.ch/t/putting-two-plots-side-by-side-with-same-y-axis-x-axis-division/49239 "2022-03-17T17:00:40Z")

</div>

I am trying to plot two histograms side-by-side sharing the same y-axis labels. My problem is with the x-axis labels. Where the two plots meet in the middle, each of the plots puts a label there and they overlap and/or …

---

## [RDataFrame: GetValue() raises an error after appyling a filter](https://root-forum.cern.ch/t/rdataframe-getvalue-raises-an-error-after-appyling-a-filter/49234)

<div class="topic-metadata">

**Author:** [@lroehrig](https://root-forum.cern.ch/u/lroehrig)\
**Replies:** 3\
**Last updated:** [March 17, 2022, 4:08pm UTC](https://root-forum.cern.ch/t/rdataframe-getvalue-raises-an-error-after-appyling-a-filter/49234 "2022-03-17T16:08:30Z")

</div>

Dear forum, I am new to ROOT.RDataFrame using pyroot and when executing import ROOT d = ROOT.RDataFrame("events", "ee\_tt\_ecm365/processed\_file\_004760802.root") cut\_muon\_pt = "selected\_muons\_pt \> 20." # before applyi…

---

## [Can't run tutorials on IOS](https://root-forum.cern.ch/t/cant-run-tutorials-on-ios/49199)

<div class="topic-metadata">

**Author:** [@GabeO](https://root-forum.cern.ch/u/GabeO)\
**Replies:** 4\
**Last updated:** [March 17, 2022, 12:33pm UTC](https://root-forum.cern.ch/t/cant-run-tutorials-on-ios/49199 "2022-03-17T12:33:50Z")

</div>

Hello, I’ve recently installed root using homebrew (brew install root) on Mac. Everything worked without any error. The problem is when I try running any tutorial. After typing .x df000.C I get Error “Error in \< TApp…

---

## [What is the correct way of THStack.GetXaxis().SetRangeUser() in for loop?](https://root-forum.cern.ch/t/what-is-the-correct-way-of-thstack-getxaxis-setrangeuser-in-for-loop/49218)

<div class="topic-metadata">

**Author:** [@JunKai](https://root-forum.cern.ch/u/JunKai)\
**Replies:** 6\
**Last updated:** [March 17, 2022, 7:36am UTC](https://root-forum.cern.ch/t/what-is-the-correct-way-of-thstack-getxaxis-setrangeuser-in-for-loop/49218 "2022-03-17T07:36:49Z")

</div>

I was doing THstack plots in a for loop, where the histograms h1,h2,h3 are drawn from RDataFrame. After the loop, I want to do some fine tuning on some plots. This is the working part of my code: c1 = r.TCanvas("c1","c…

---

## [Weighting 2D histograms](https://root-forum.cern.ch/t/weighting-2d-histograms/49181)

<div class="topic-metadata">

**Author:** [@abunka](https://root-forum.cern.ch/u/abunka)\
**Replies:** 10\
**Last updated:** [March 16, 2022, 6:41pm UTC](https://root-forum.cern.ch/t/weighting-2d-histograms/49181 "2022-03-16T18:41:43Z")

</div>

Hello, I have some analysis code that outputs both 1 and 2D histograms that require weighting. For the 1D histograms it works fine to add the weight after the fill item: hist("name")-\>Fill(fillItem, weight); However, …

---

## [Config the default fitter(minimizer) in histgram or graph fitting](https://root-forum.cern.ch/t/config-the-default-fitter-minimizer-in-histgram-or-graph-fitting/49207)

<div class="topic-metadata">

**Author:** [@whyaqmhbu](https://root-forum.cern.ch/u/whyaqmhbu)\
**Replies:** 1\
**Last updated:** [March 16, 2022, 10:02am UTC](https://root-forum.cern.ch/t/config-the-default-fitter-minimizer-in-histgram-or-graph-fitting/49207 "2022-03-16T10:02:41Z")

</div>

Hi all, May I ask for your help about how to change the minimizer strategy? I am using gragh-\>Fit() to perform the fit with ROOT 5.34. The defalt strategy is 1, while I would like to change that to 2. Thanks. ROOT V…

---

## [In a TMultigraph, how can i set different draw options for different Tgraphs](https://root-forum.cern.ch/t/in-a-tmultigraph-how-can-i-set-different-draw-options-for-different-tgraphs/49204)

<div class="topic-metadata">

**Author:** [@Towseef\_Rehman](https://root-forum.cern.ch/u/Towseef_Rehman)\
**Replies:** 2\
**Last updated:** [March 16, 2022, 8:28am UTC](https://root-forum.cern.ch/t/in-a-tmultigraph-how-can-i-set-different-draw-options-for-different-tgraphs/49204 "2022-03-16T08:28:56Z")

</div>

Hi Rooters, I have added different graphs using TMultigraph, and want to set different draw options for each graph. Like in one graph I want to draw only symbols at the data points and in another, I want to draw a smoot…

---

## [ASK help for searching ROOT sources?](https://root-forum.cern.ch/t/ask-help-for-searching-root-sources/49162)

<div class="topic-metadata">

**Author:** [@KUN](https://root-forum.cern.ch/u/KUN)\
**Replies:** 6\
**Last updated:** [March 15, 2022, 2:08pm UTC](https://root-forum.cern.ch/t/ask-help-for-searching-root-sources/49162 "2022-03-15T14:08:09Z")

</div>

Sorry to bother you, I am a graduate student and I am looking for information about ROOT for research. The manual on the official website is very complete. I have studied it in general. The manual explains how to use it …

---

## [Possibility to read ROOT files into Dask DataFrames in Python](https://root-forum.cern.ch/t/possibility-to-read-root-files-into-dask-dataframes-in-python/49180)

<div class="topic-metadata">

**Author:** [@janhein](https://root-forum.cern.ch/u/janhein)\
**Replies:** 2\
**Last updated:** [March 15, 2022, 9:09am UTC](https://root-forum.cern.ch/t/possibility-to-read-root-files-into-dask-dataframes-in-python/49180 "2022-03-15T09:09:25Z")

</div>

Hello, I was wondering whether there is any interface, which gives you the possibility to read ROOT files directly into Dask DataFrames using Python. I am aware of the functionality to read ROOT files and obtain a Pand…

---

## [Explicitly set error for TRatio plot](https://root-forum.cern.ch/t/explicitly-set-error-for-tratio-plot/49173)

<div class="topic-metadata">

**Author:** [@JunKai](https://root-forum.cern.ch/u/JunKai)\
**Replies:** 8\
**Last updated:** [March 15, 2022, 7:23am UTC](https://root-forum.cern.ch/t/explicitly-set-error-for-tratio-plot/49173 "2022-03-15T07:23:36Z")

</div>

Hi all, I am trying TRatioPlot recently, where I followed steps from ROOT: TRatioPlot Class Reference. However it seems error bars is plotted for h1. What if I want to plot h2/h1 (reverse the arguments to TRatioPlot(h2,…

---

## [Error in \<TRint::HandleTermInput()\>: std::length\_error caught: vector::\_M\_default\_append](https://root-forum.cern.ch/t/error-in-trint-handleterminput-std-length-error-caught-vector-m-default-append/49160)

<div class="topic-metadata">

**Author:** [@Xie0xie](https://root-forum.cern.ch/u/Xie0xie)\
**Replies:** 5\
**Last updated:** [March 14, 2022, 7:56pm UTC](https://root-forum.cern.ch/t/error-in-trint-handleterminput-std-length-error-caught-vector-m-default-append/49160 "2022-03-14T19:56:05Z")

</div>

ROOT Version: 6.24/06 Platform: CentOS Stream Compiler: GCC Hi, everyone, I am a newbie of ROOT. Recently, when I read my own data, I encountered the following problem root \[1\] .L Ntuple6.C root \[2\] Ntuple6 t (Ntup…

---

## [Plottiing a percentage in Y-axis instead of count](https://root-forum.cern.ch/t/plottiing-a-percentage-in-y-axis-instead-of-count/49158)

<div class="topic-metadata">

**Author:** [@Roy](https://root-forum.cern.ch/u/Roy)\
**Replies:** 3\
**Last updated:** [March 14, 2022, 4:59pm UTC](https://root-forum.cern.ch/t/plottiing-a-percentage-in-y-axis-instead-of-count/49158 "2022-03-14T16:59:01Z")

</div>

I am trying to create a percentage in Y-axis instead of count. planning to use for loop but how can I accomplish that; TH1F \*hist = new TH1F("hist","Histogram",100,0,100); ifstream file; file.open("C07.txt"…

---

## [Using ROOT precompiled binary distribution](https://root-forum.cern.ch/t/using-root-precompiled-binary-distribution/49103)

<div class="topic-metadata">

**Author:** [@Sayandeep\_Ghosh](https://root-forum.cern.ch/u/Sayandeep_Ghosh)\
**Replies:** 13\
**Last updated:** [March 14, 2022, 10:34am UTC](https://root-forum.cern.ch/t/using-root-precompiled-binary-distribution/49103 "2022-03-14T10:34:38Z")

</div>

ROOT Version: 6.24.04 Platform: WSL(Ubuntu) After building root from sources whenever I try to write: sayang@DESKTOP-IFS80HM:~/root\_build1$ cmake -DCMAKE\_INSTALL\_PREFIX=…/root\_install …/root\_src CMake Error at CMakeL…

---

## [Problems with accents](https://root-forum.cern.ch/t/problems-with-accents/49121)

<div class="topic-metadata">

**Author:** [@gabriele](https://root-forum.cern.ch/u/gabriele)\
**Replies:** 2\
**Last updated:** [March 14, 2022, 9:59am UTC](https://root-forum.cern.ch/t/problems-with-accents/49121 "2022-03-14T09:59:47Z")

</div>

Hello everybody, I’m using the grave accent, but the result I obtain is not satisfying: #grave{a} produces an a with the accent crossing it on the upper part (instead of being above), while, for example, #hat{a} gives …

---

## [Compile root script with g++ to execute it in background as "-b" option for macros](https://root-forum.cern.ch/t/compile-root-script-with-g-to-execute-it-in-background-as-b-option-for-macros/49157)

<div class="topic-metadata">

**Author:** [@Simone\_Vallarino](https://root-forum.cern.ch/u/Simone_Vallarino)\
**Replies:** 1\
**Last updated:** [March 13, 2022, 5:24pm UTC](https://root-forum.cern.ch/t/compile-root-script-with-g-to-execute-it-in-background-as-b-option-for-macros/49157 "2022-03-13T17:24:19Z")

</div>

Hi everyone, i’m trying to compile my root script using g++, but I want to run it without it shows the canvases, same way as the “-b” option for running macro. Do you have any suggestion? I’m currently using the follo…

---

## [Plotting a txt file](https://root-forum.cern.ch/t/plotting-a-txt-file/49140)

<div class="topic-metadata">

**Author:** [@Roy](https://root-forum.cern.ch/u/Roy)\
**Replies:** 1\
**Last updated:** [March 12, 2022, 11:19am UTC](https://root-forum.cern.ch/t/plotting-a-txt-file/49140 "2022-03-12T11:19:13Z")

</div>

Every time I tried to plot a histogram with a data it shows error in fstream, not sure if the error is on root or the C program. rror: no matching constructor for initialization of ‘std::\_\_1::fstream’ (aka ’basic\_fstre…

---

## [R\_\_LOCKGUARD2(gErrorMutex) compatibility to ROOT v6.26](https://root-forum.cern.ch/t/r-lockguard2-gerrormutex-compatibility-to-root-v6-26/49119)

<div class="topic-metadata">

**Author:** [@antonio.iuliano2](https://root-forum.cern.ch/u/antonio.iuliano2)\
**Replies:** 4\
**Last updated:** [March 11, 2022, 6:11pm UTC](https://root-forum.cern.ch/t/r-lockguard2-gerrormutex-compatibility-to-root-v6-26/49119 "2022-03-11T18:11:54Z")

</div>

\_ROOT Version:6.26 \_Platform: CENTOS7 (lxplus) Compiler: Not Provided Dear ROOT experts, I have a compatibility issue. A log library I use in my laboratory software uses the following line: R\_\_LOCKGUARD2(gErrorMutex…

---

## [Activating/deactivating branches](https://root-forum.cern.ch/t/activating-deactivating-branches/48981)

<div class="topic-metadata">

**Author:** [@EVTO](https://root-forum.cern.ch/u/EVTO)\
**Replies:** 11\
**Last updated:** [March 11, 2022, 9:47am UTC](https://root-forum.cern.ch/t/activating-deactivating-branches/48981 "2022-03-11T09:47:53Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided Hi. I think I have a problem with TTrees. I have a file with a tree. I…

---

## [Change the order of branches in a root file](https://root-forum.cern.ch/t/change-the-order-of-branches-in-a-root-file/49117)

<div class="topic-metadata">

**Author:** [@Helen753](https://root-forum.cern.ch/u/Helen753)\
**Replies:** 16\
**Last updated:** [March 10, 2022, 6:03pm UTC](https://root-forum.cern.ch/t/change-the-order-of-branches-in-a-root-file/49117 "2022-03-10T18:03:31Z")

</div>

Hello to all! I have a root file and I want to change the order of the branches an d remove some of them. How to I do this? Thank you a lot in advance! Kind regards Please read tips for efficient and successful post…

---

## [ROOT v6.26/00 install directory](https://root-forum.cern.ch/t/root-v6-26-00-install-directory/49111)

<div class="topic-metadata">

**Author:** [@lilina](https://root-forum.cern.ch/u/lilina)\
**Replies:** 2\
**Last updated:** [March 10, 2022, 9:23am UTC](https://root-forum.cern.ch/t/root-v6-26-00-install-directory/49111 "2022-03-10T09:23:48Z")

</div>

Hi, I build ROOT v6.26/00 as follows: cd \< builddir \> cmake -DCMAKE\_INSTALL\_PREFIX=/home/lily/opt/root\_v6.26.00/root\_install/ -DCMAKE\_CXX\_STANDARD=17 -Dminuit2=ON -Dcuda=ON -Dcudnn=ON -Dtmva-gpu=ON -Dtmva-cpu=ON /home…

---

## [Adding newline in legend entry](https://root-forum.cern.ch/t/adding-newline-in-legend-entry/49107)

<div class="topic-metadata">

**Author:** [@Voldemort](https://root-forum.cern.ch/u/Voldemort)\
**Replies:** 2\
**Last updated:** [March 9, 2022, 9:39pm UTC](https://root-forum.cern.ch/t/adding-newline-in-legend-entry/49107 "2022-03-09T21:39:51Z")

</div>

I’m trying to start a new line but it doesn’t seem to be working. Here’s what I want my legend to look like: with Geometry Entries 3 ..... std::stringstream result\_stringstream; result\_stringstream \<\< "with Geometr…

---

## [Chi2/ndf higher than 1](https://root-forum.cern.ch/t/chi2-ndf-higher-than-1/49106)

<div class="topic-metadata">

**Author:** [@Marian\_dBT](https://root-forum.cern.ch/u/Marian_dBT)\
**Replies:** 2\
**Last updated:** [March 9, 2022, 7:36pm UTC](https://root-forum.cern.ch/t/chi2-ndf-higher-than-1/49106 "2022-03-09T19:36:59Z")

</div>

Hi! It seems there is a inconsistency between the fit a see in my histogram and the parameters I get from the fitting. Using -\>GetChisquare() and -\>GetNDF() I get values of chi2/ndf that are very high, but graphically t…

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

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