# Newbie

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

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

---

## [Customize the histogram title](https://root-forum.cern.ch/t/customize-the-histogram-title/58565)

<div class="topic-metadata">

**Author:** [@Vikas\_Raj](https://root-forum.cern.ch/u/Vikas_Raj)\
**Replies:** 4\
**Last updated:** [March 17, 2024, 4:25pm UTC](https://root-forum.cern.ch/t/customize-the-histogram-title/58565 "2024-03-17T16:25:59Z")

</div>

Dear all, say i read a root file and apploed some cut, and drew it. Now I know, that this can be achieved by either a macro or in root terminal. Now, in root terminal when I do, I get something like this (PFA). But even…

---

## [Python ROOT inside of Virtual Environment](https://root-forum.cern.ch/t/python-root-inside-of-virtual-environment/58554)

<div class="topic-metadata">

**Author:** [@TheFibonacciEffect](https://root-forum.cern.ch/u/TheFibonacciEffect)\
**Replies:** 2\
**Last updated:** [March 16, 2024, 12:11pm UTC](https://root-forum.cern.ch/t/python-root-inside-of-virtual-environment/58554 "2024-03-16T12:11:09Z")

</div>

I installed root using the Pacman package manager and pyroot seems to work fine in python when no virtual envorinment is activated: ➜ root git:(master) ✗ python3 Python 3.11.8 (main, Feb 12 2024, 14:50:05) \[GCC 13.2.1 …

---

## [Multiple TGraph2D with option "PCOL" share the same palette](https://root-forum.cern.ch/t/multiple-tgraph2d-with-option-pcol-share-the-same-palette/58530)

<div class="topic-metadata">

**Author:** [@Y.S.Zhang](https://root-forum.cern.ch/u/Y.S.Zhang)\
**Replies:** 3\
**Last updated:** [March 14, 2024, 7:23pm UTC](https://root-forum.cern.ch/t/multiple-tgraph2d-with-option-pcol-share-the-same-palette/58530 "2024-03-14T19:23:08Z")

</div>

Dear experts, I would like to draw multiple TGraph2D with option "PCOL" and make them share the same palette. Furthermore, I would like to have colors of markers changed when the maximum/minimum of the palette axis are …

---

## [Scatter plot and TTree::Draw](https://root-forum.cern.ch/t/scatter-plot-and-ttree-draw/58520)

<div class="topic-metadata">

**Author:** [@Y.S.Zhang](https://root-forum.cern.ch/u/Y.S.Zhang)\
**Replies:** 10\
**Last updated:** [March 14, 2024, 6:49pm UTC](https://root-forum.cern.ch/t/scatter-plot-and-ttree-draw/58520 "2024-03-14T18:49:03Z")

</div>

Dear ROOT experts, I would like to draw a scatter plot. Unfortunately, I do not have access to root v6.30 and TScatter. Following the discussions on blog, I would like to try TTree::Draw with option "COLZ". After readi…

---

## [Updating stats after changing the axis range in GUI](https://root-forum.cern.ch/t/updating-stats-after-changing-the-axis-range-in-gui/58121)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 5\
**Last updated:** [March 14, 2024, 3:34pm UTC](https://root-forum.cern.ch/t/updating-stats-after-changing-the-axis-range-in-gui/58121 "2024-03-14T15:34:38Z")

</div>

Hello users, most probaby a naive question, When we change the axis range with a mouse in GUI does the histograms statistics(mean, mean error, so… etc) are already reset or ResetStats() needs be invoked to update the h…

---

## [Memory issues while loading 2D histograms by opening multiple .root files](https://root-forum.cern.ch/t/memory-issues-while-loading-2d-histograms-by-opening-multiple-root-files/58533)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 2\
**Last updated:** [March 14, 2024, 3:00pm UTC](https://root-forum.cern.ch/t/memory-issues-while-loading-2d-histograms-by-opening-multiple-root-files/58533 "2024-03-14T15:00:45Z")

</div>

Hi all, I am trying to load multiple 2D histos in a root macro and using the function TH2\* Load2DHist(int det\_ID) { //File char root\_file\[200\]; sprintf (root\_file, "/path/to/file\_%d", det\_ID); //Filename and path …

---

## [Root errors](https://root-forum.cern.ch/t/root-errors/58497)

<div class="topic-metadata">

**Author:** [@ElGreat](https://root-forum.cern.ch/u/ElGreat)\
**Replies:** 10\
**Last updated:** [March 14, 2024, 5:37am UTC](https://root-forum.cern.ch/t/root-errors/58497 "2024-03-14T05:37:37Z")

</div>

ROOT Version: 6.30.04 Platform: macOS when I try to run root file it is not working note: before it was running well, I don’t know what happened \*\*\* Break \*\*\* segmentation violation \*\*\* Break \*\*\* segmentation violat…

---

## [Importing Root](https://root-forum.cern.ch/t/importing-root/58501)

<div class="topic-metadata">

**Author:** [@Gorgon](https://root-forum.cern.ch/u/Gorgon)\
**Replies:** 4\
**Last updated:** [March 13, 2024, 12:21pm UTC](https://root-forum.cern.ch/t/importing-root/58501 "2024-03-13T12:21:18Z")

</div>

For some reasons unknown to me, importing ROOT to the test.py file doesnt work. When I try to run python test.py I get the error “No module named ROOT”. I use Windows10 and X-Win32 to connect to the lxplus7 server. Ho…

---

## [X11 fowarding](https://root-forum.cern.ch/t/x11-fowarding/58500)

<div class="topic-metadata">

**Author:** [@Gorgon](https://root-forum.cern.ch/u/Gorgon)\
**Replies:** 4\
**Last updated:** [March 13, 2024, 11:01am UTC](https://root-forum.cern.ch/t/x11-fowarding/58500 "2024-03-13T11:01:50Z")

</div>

X11 fowarding only works in X-win32. I use a windows10 machine and X11 fowarding doesnt work in VsCode, or in Ubuntu, or in commandpromt. X-win32 is slow on the other hand, so I want to change for any other platform, bu…

---

## [RCsvDs class with parallel](https://root-forum.cern.ch/t/rcsvds-class-with-parallel/58484)

<div class="topic-metadata">

**Author:** [@hohshita](https://root-forum.cern.ch/u/hohshita)\
**Replies:** 2\
**Last updated:** [March 12, 2024, 11:53am UTC](https://root-forum.cern.ch/t/rcsvds-class-with-parallel/58484 "2024-03-12T11:53:10Z")

</div>

Dear ROOT experts, I’m trying to pass data from a csv file to rDataFrame using the RCsvDS class. When I declared ROOT::EnableImplicitMT() method, I found that the order of the data stored in the rDataFrame columns chang…

---

## [TVectors3 Angle() method](https://root-forum.cern.ch/t/tvectors3-angle-method/58483)

<div class="topic-metadata">

**Author:** [@ShiShi1122](https://root-forum.cern.ch/u/ShiShi1122)\
**Replies:** 5\
**Last updated:** [March 11, 2024, 8:25pm UTC](https://root-forum.cern.ch/t/tvectors3-angle-method/58483 "2024-03-11T20:25:44Z")

</div>

I am new to TVectors3 class and I am trying to calculate angle between two gammas like this: relative\_angle = gamma\_v2.Angle(gamma\_v1); I would then like to filld a 3D histogram relative\_angle\_de…

---

## [1D histogram for a nested data using rdataframe?](https://root-forum.cern.ch/t/1d-histogram-for-a-nested-data-using-rdataframe/58473)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 2\
**Last updated:** [March 11, 2024, 10:38am UTC](https://root-forum.cern.ch/t/1d-histogram-for-a-nested-data-using-rdataframe/58473 "2024-03-11T10:38:51Z")

</div>

Hi all, I am trying to plot one specific column of a TTree using RDataFrame The data is organised like Entry Multplitcity Energy 1 N {E1, E2.... EN} 2 M {E1, E2.... …

---

## [Energy Calibration: binned vs unbinned data](https://root-forum.cern.ch/t/energy-calibration-binned-vs-unbinned-data/58451)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 6\
**Last updated:** [March 11, 2024, 9:52am UTC](https://root-forum.cern.ch/t/energy-calibration-binned-vs-unbinned-data/58451 "2024-03-11T09:52:55Z")

</div>

Hi everyone, While trying to transform(calibrate) the channel numbers on X axis to energies using a quadratic polynomial, I am confused as to what shall be the better and error free approach at the same avoiding issues …

---

## [Reading a given tree across multiple root files](https://root-forum.cern.ch/t/reading-a-given-tree-across-multiple-root-files/58447)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 5\
**Last updated:** [March 11, 2024, 9:28am UTC](https://root-forum.cern.ch/t/reading-a-given-tree-across-multiple-root-files/58447 "2024-03-11T09:28:18Z")

</div>

Hi all, While trying to read a tree having same name from across multiple root files, I am looping all the root files and loading the tree and finally reading it using a TreeReader(). Is there any more efficient way in…

---

## [Can a single root macro be run multiple times simulatenously?](https://root-forum.cern.ch/t/can-a-single-root-macro-be-run-multiple-times-simulatenously/58412)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 3\
**Last updated:** [March 8, 2024, 3:20pm UTC](https://root-forum.cern.ch/t/can-a-single-root-macro-be-run-multiple-times-simulatenously/58412 "2024-03-08T15:20:38Z")

</div>

Hi everyone, I have a question (probably more related to the basics of C/C++). I have a root macro that takes in a file, processes it, and saves the output in a file; the input and output files are indexed(so no overwr…

---

## [Use pyROOT + ROOT in Python Virtual Env on LXPLUS](https://root-forum.cern.ch/t/use-pyroot-root-in-python-virtual-env-on-lxplus/54205)

<div class="topic-metadata">

**Author:** [@Chandler\_K](https://root-forum.cern.ch/u/Chandler_K)\
**Replies:** 5\
**Last updated:** [March 7, 2024, 10:14pm UTC](https://root-forum.cern.ch/t/use-pyroot-root-in-python-virtual-env-on-lxplus/54205 "2024-03-07T22:14:05Z")

</div>

Dear all, I need to be able to use the XGBoost Python library on LXLPUS in conjunction with pyROOT. To do this I made a virtual environment and did ‘pip install xgboost dumpy SciPy pandas’ etc. These modules work fine. …

---

## [Fail to retrieve histogram from file](https://root-forum.cern.ch/t/fail-to-retrieve-histogram-from-file/58429)

<div class="topic-metadata">

**Author:** [@Mykhailo\_Ieresko](https://root-forum.cern.ch/u/Mykhailo_Ieresko)\
**Replies:** 3\
**Last updated:** [March 7, 2024, 1:45pm UTC](https://root-forum.cern.ch/t/fail-to-retrieve-histogram-from-file/58429 "2024-03-07T13:45:00Z")

</div>

Good afternoon everyone! I have a very naive question regarding retrieving a histogram from ROOT file. I create a root file, generate the histogram, writing it to file and then trying to read it back to plot. The file…

---

## [Truncate the verbose of Fit?](https://root-forum.cern.ch/t/truncate-the-verbose-of-fit/58421)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 1\
**Last updated:** [March 7, 2024, 9:32am UTC](https://root-forum.cern.ch/t/truncate-the-verbose-of-fit/58421 "2024-03-07T09:32:59Z")

</div>

Hi all, Can someone please help how to truncate the verbose of Fit(), only seeing the STATUS of the Fit? Thank You

---

## [I''m trying to find my steps with ROOT. I've been trying to make a Class with no results. Look what I have done till now:](https://root-forum.cern.ch/t/im-trying-to-find-my-steps-with-root-ive-been-trying-to-make-a-class-with-no-results-look-what-i-have-done-till-now/58392)

<div class="topic-metadata">

**Author:** [@Sophocles\_Tsakiropou](https://root-forum.cern.ch/u/Sophocles_Tsakiropou)\
**Replies:** 6\
**Last updated:** [March 7, 2024, 7:28am UTC](https://root-forum.cern.ch/t/im-trying-to-find-my-steps-with-root-ive-been-trying-to-make-a-class-with-no-results-look-what-i-have-done-till-now/58392 "2024-03-07T07:28:43Z")

</div>

sophoclestsakiropoulos@MacBook-Air-Sophocles ~ % cd download/ #where I keep my .root filessophoclestsakiropoulos@MacBook-Air-Sophocles download % root -l analysis\_1.root #the file with the tree Attaching file analysis\_1…

---

## [Convolution of Breit–Wigner and crystal ball function](https://root-forum.cern.ch/t/convolution-of-breit-wigner-and-crystal-ball-function/58347)

<div class="topic-metadata">

**Author:** [@gami](https://root-forum.cern.ch/u/gami)\
**Replies:** 2\
**Last updated:** [March 6, 2024, 8:41pm UTC](https://root-forum.cern.ch/t/convolution-of-breit-wigner-and-crystal-ball-function/58347 "2024-03-06T20:41:22Z")

</div>

Hello all, I am trying to take convolution of Breit–Wigner and crystal ball function to fit phi resonance signal and polynomial of order 2 to fit background. in fitting with convolution of Breit–Wigner and crystal ball …

---

## [Installing ROOT on linux mint 21.1](https://root-forum.cern.ch/t/installing-root-on-linux-mint-21-1/58326)

<div class="topic-metadata">

**Author:** [@Mario\_Magalini](https://root-forum.cern.ch/u/Mario_Magalini)\
**Replies:** 4\
**Last updated:** [March 6, 2024, 11:07am UTC](https://root-forum.cern.ch/t/installing-root-on-linux-mint-21-1/58326 "2024-03-06T11:07:19Z")

</div>

Hi everyone! Here a newbie I’m having troubles with the installation of pre-compiled binary distribution. I have a linux mint 21.1, i have read the i can use it like a ubuntu 22.04. I’m blocked with the fourth step: …

---

## [Why does this bug occur during Fit fitting](https://root-forum.cern.ch/t/why-does-this-bug-occur-during-fit-fitting/58384)

<div class="topic-metadata">

**Author:** [@Sun](https://root-forum.cern.ch/u/Sun)\
**Replies:** 3\
**Last updated:** [March 5, 2024, 9:37pm UTC](https://root-forum.cern.ch/t/why-does-this-bug-occur-during-fit-fitting/58384 "2024-03-05T21:37:25Z")

</div>

void plot102() { TFile \* f = new TFile("spectra.root"); TCanvas \* c = new TCanvas("C","distri",100,100,1600,1200); c-\>DrawFrame(0,0,140,2.5); c-\>SetGrid(); TH1F \* h = (TH1F \*)f-\>Get("h1000"); TH1F \* h1 = (T…

---

## [Mean uncertainity of a fit function](https://root-forum.cern.ch/t/mean-uncertainity-of-a-fit-function/58293)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 9\
**Last updated:** [March 5, 2024, 4:40am UTC](https://root-forum.cern.ch/t/mean-uncertainity-of-a-fit-function/58293 "2024-03-05T04:40:10Z")

</div>

Hi everyone, I am fitting a TGraphErrors() using a TF1() function. auto g = new TGraphErrors(n,x,y,nullptr, err\_y); TFitResultPtr r = g-\>Fit(func, "WRS"); I am wondering how to obtain the mean uncertainty in the fitt…

---

## [Drawing polymarkers from different TSpectrum::Search() on same canvas?](https://root-forum.cern.ch/t/drawing-polymarkers-from-different-tspectrum-search-on-same-canvas/58375)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 1\
**Last updated:** [March 4, 2024, 11:49am UTC](https://root-forum.cern.ch/t/drawing-polymarkers-from-different-tspectrum-search-on-same-canvas/58375 "2024-03-04T11:49:58Z")

</div>

I am searching peaks in two different regions of a same 1d histogram (his) his-\>GetXaxis()-\>SetRangeUser(20,600); sigma = 18; threshold = 0.4; TSpectrum \*s\_low = new TSpectrum(5); Int\_t nfound = s\_low-\>Search(his, sigm…

---

## [Opening multi-dim arrays in RDataFrame as flattened 1-dim array using pyROOT](https://root-forum.cern.ch/t/opening-multi-dim-arrays-in-rdataframe-as-flattened-1-dim-array-using-pyroot/58356)

<div class="topic-metadata">

**Author:** [@queenofmice](https://root-forum.cern.ch/u/queenofmice)\
**Replies:** 3\
**Last updated:** [March 2, 2024, 9:33am UTC](https://root-forum.cern.ch/t/opening-multi-dim-arrays-in-rdataframe-as-flattened-1-dim-array-using-pyroot/58356 "2024-03-02T09:33:08Z")

</div>

Hi ROOT forum, I am trying to update my code to use RDataFrames for the first time and am struggling to access a certain branch containing multi-dimensional arrays in my tree. I am able to access it the “standard” way i…

---

## [How to use LSP with ROOT Header?](https://root-forum.cern.ch/t/how-to-use-lsp-with-root-header/58350)

<div class="topic-metadata">

**Author:** [@Akbar\_Emmanuel\_Diaz](https://root-forum.cern.ch/u/Akbar_Emmanuel_Diaz)\
**Replies:** 1\
**Last updated:** [March 1, 2024, 6:30pm UTC](https://root-forum.cern.ch/t/how-to-use-lsp-with-root-header/58350 "2024-03-01T18:30:04Z")

</div>

Hi everyone. I’m currently trying to use LSP (clangd) working, so i can have auto-completion and suggestions, while coding. Nevertheless, I just can´t make it work with ROOT header files. It is my first time configuring…

---

## [TF2 Parameters Leads to Seg Fault](https://root-forum.cern.ch/t/tf2-parameters-leads-to-seg-fault/58334)

<div class="topic-metadata">

**Author:** [@Denali\_Jah](https://root-forum.cern.ch/u/Denali_Jah)\
**Replies:** 2\
**Last updated:** [February 29, 2024, 3:12pm UTC](https://root-forum.cern.ch/t/tf2-parameters-leads-to-seg-fault/58334 "2024-02-29T15:12:58Z")

</div>

When I call for a parameter in a function being integrated by TF2 I receive a segmentation fault. #include \<stdlib.h\> #include "TF2.h" //Function Integrated Over double func\_sub(double \*vals, double \*par) { std::cout…

---

## [SetBarOffset not working](https://root-forum.cern.ch/t/setbaroffset-not-working/58321)

<div class="topic-metadata">

**Author:** [@Michelangelo](https://root-forum.cern.ch/u/Michelangelo)\
**Replies:** 5\
**Last updated:** [February 28, 2024, 12:03pm UTC](https://root-forum.cern.ch/t/setbaroffset-not-working/58321 "2024-02-28T12:03:43Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version: 6.26/11 \_Platform: Scientific Linux 6.7 Compiler: Not Provided Hi everyone, I have an issue with the command SetBarOffset. I ha…

---

## [Least square minimisation to align points to a given function?](https://root-forum.cern.ch/t/least-square-minimisation-to-align-points-to-a-given-function/58323)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 1\
**Last updated:** [February 28, 2024, 8:27am UTC](https://root-forum.cern.ch/t/least-square-minimisation-to-align-points-to-a-given-function/58323 "2024-02-28T08:27:28Z")

</div>

Hi all, I have a set of points (xi, yi) i ={1, 2. 3} I want to find the constant offset, y0 (xi, yi + y0), such that the points fit a given function f(xi). Basically, I am trying to minimize the residual, yi(xi) + y0…

---

## [Error/Warning while reading histograms](https://root-forum.cern.ch/t/error-warning-while-reading-histograms/58307)

<div class="topic-metadata">

**Author:** [@sakzai](https://root-forum.cern.ch/u/sakzai)\
**Replies:** 4\
**Last updated:** [February 27, 2024, 4:38pm UTC](https://root-forum.cern.ch/t/error-warning-while-reading-histograms/58307 "2024-02-27T16:38:22Z")

</div>

I am trying to access a specific histogram in a .root file located at TransientPropagation-\>mydetector-\>induced\_charge\_map. unfortunately it gives the following error and i can not understand the reason or at least to te…

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

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