# Newbie

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

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

---

## [Make not working due to ROOT re-install](https://root-forum.cern.ch/t/make-not-working-due-to-root-re-install/53306)

<div class="topic-metadata">

**Author:** [@pennywise](https://root-forum.cern.ch/u/pennywise)\
**Replies:** 2\
**Last updated:** [January 27, 2023, 3:15pm UTC](https://root-forum.cern.ch/t/make-not-working-due-to-root-re-install/53306 "2023-01-27T15:15:11Z")

</div>

Hello, I am to run a script using CMake. When I do cmake, the files configure and I see this :slight\_smile: Configuring done – Generating done – Build files have been written to: /home/pennywise/mmgas/mmdata/build W…

---

## [Converting a TH2D to a Matrix for Inversion](https://root-forum.cern.ch/t/converting-a-th2d-to-a-matrix-for-inversion/44689)

<div class="topic-metadata">

**Author:** [@fstocker](https://root-forum.cern.ch/u/fstocker)\
**Replies:** 8\
**Last updated:** [January 27, 2023, 3:16pm UTC](https://root-forum.cern.ch/t/converting-a-th2d-to-a-matrix-for-inversion/44689 "2023-01-27T15:16:50Z")

</div>

Hi all, From corresponding reconstructed and true values I’ve built a TH2D Histogram that illustrates an energy smearing. I’d like to convert the TH2D to a Matrix in order to be able to build the inverted matrix and put…

---

## [Log scale does not work](https://root-forum.cern.ch/t/log-scale-does-not-work/53245)

<div class="topic-metadata">

**Author:** [@Progressive](https://root-forum.cern.ch/u/Progressive)\
**Replies:** 4\
**Last updated:** [January 27, 2023, 9:00am UTC](https://root-forum.cern.ch/t/log-scale-does-not-work/53245 "2023-01-27T09:00:13Z")

</div>

ROOT Version: 6.26/02 Platform: Windows Compiler: MSVC 19.31.31104.0 Hi, I can’t get it done to plot an axis logarithmically. The code is: Double\_t partEdep; tree = myFile-\>Get\<TTree\>("depE\_sum"); tree-\>SetBra…

---

## [Error for mean from histogram](https://root-forum.cern.ch/t/error-for-mean-from-histogram/53216)

<div class="topic-metadata">

**Author:** [@Progressive](https://root-forum.cern.ch/u/Progressive)\
**Replies:** 5\
**Last updated:** [January 27, 2023, 8:55am UTC](https://root-forum.cern.ch/t/error-for-mean-from-histogram/53216 "2023-01-27T08:55:34Z")

</div>

ROOT Version: 6.26/02 Platform: Windows Compiler: MSVC 19.31.31104.0 Hi, I’ve seen on https://root.cern.ch/root/htmldoc/guides/users-guide/Histograms.html\` When a histogram has errors, it is visualized by default w…

---

## [ROOT.Math.Minimizer](https://root-forum.cern.ch/t/root-math-minimizer/53268)

<div class="topic-metadata">

**Author:** [@L\_N](https://root-forum.cern.ch/u/L_N)\
**Replies:** 2\
**Last updated:** [January 26, 2023, 8:30am UTC](https://root-forum.cern.ch/t/root-math-minimizer/53268 "2023-01-26T08:30:00Z")

</div>

Hello, I have some questions about the ROOT.Math.Minimizer. So, if I understood correctly the least squares (or Chi2?) are minimized here, is that correct? Then, I found online that one should use the numerical (def…

---

## [Question about the fit error from TFractionFitter](https://root-forum.cern.ch/t/question-about-the-fit-error-from-tfractionfitter/53046)

<div class="topic-metadata">

**Author:** [@LongHoa](https://root-forum.cern.ch/u/LongHoa)\
**Replies:** 3\
**Last updated:** [January 26, 2023, 7:42am UTC](https://root-forum.cern.ch/t/question-about-the-fit-error-from-tfractionfitter/53046 "2023-01-26T07:42:46Z")

</div>

Hello, I’m trying to do a two-component fit to a mixed distribution. All spectra are generated by functions. The component spectra is generated from the exponential function ( bkg = exp\[ -|b|(x+1) \] and sig = exp\[ |s|(x…

---

## [Y correction in a correlation plot](https://root-forum.cern.ch/t/y-correction-in-a-correlation-plot/53205)

<div class="topic-metadata">

**Author:** [@thegame](https://root-forum.cern.ch/u/thegame)\
**Replies:** 8\
**Last updated:** [January 26, 2023, 5:07am UTC](https://root-forum.cern.ch/t/y-correction-in-a-correlation-plot/53205 "2023-01-26T05:07:21Z")

</div>

Hi all, I have plotted a Y vs X and then fitted the plot with a straight line. Now, ideally, there shouldn’t be any correlation b/w Y and X but I can see a slope (let’s say m1) in the fitted line so wanted to make a smal…

---

## [How can I verify/confirm that I have ROOT installed properly on my MacBook Air](https://root-forum.cern.ch/t/how-can-i-verify-confirm-that-i-have-root-installed-properly-on-my-macbook-air/53276)

<div class="topic-metadata">

**Author:** [@ViscidMolin](https://root-forum.cern.ch/u/ViscidMolin)\
**Replies:** 4\
**Last updated:** [January 25, 2023, 8:59pm UTC](https://root-forum.cern.ch/t/how-can-i-verify-confirm-that-i-have-root-installed-properly-on-my-macbook-air/53276 "2023-01-25T20:59:36Z")

</div>

ROOT Version: Don’t know. Platform: MacBook Air. Compiler: Don’t know Mac Terminal

---

## [Rebin TH1D with average](https://root-forum.cern.ch/t/rebin-th1d-with-average/53263)

<div class="topic-metadata">

**Author:** [@Emil\_R](https://root-forum.cern.ch/u/Emil_R)\
**Replies:** 5\
**Last updated:** [January 25, 2023, 2:49pm UTC](https://root-forum.cern.ch/t/rebin-th1d-with-average/53263 "2023-01-25T14:49:19Z")

</div>

Hi everbody, I would like to rein a histogram filled with percentages (like 0.45 and so on). Therefor I do not want the bins to be added up when rebinning but rather averaged. Is there an option to do this? Thanks, Em…

---

## [Can't open display error](https://root-forum.cern.ch/t/cant-open-display-error/53260)

<div class="topic-metadata">

**Author:** [@Subhu18](https://root-forum.cern.ch/u/Subhu18)\
**Replies:** 10\
**Last updated:** [January 25, 2023, 1:41pm UTC](https://root-forum.cern.ch/t/cant-open-display-error/53260 "2023-01-25T13:41:29Z")

</div>

I am getting this error message when I try to run my script please help

---

## [TMatrixD help](https://root-forum.cern.ch/t/tmatrixd-help/53266)

<div class="topic-metadata">

**Author:** [@Harriet\_Kumi](https://root-forum.cern.ch/u/Harriet_Kumi)\
**Replies:** 10\
**Last updated:** [January 25, 2023, 1:40pm UTC](https://root-forum.cern.ch/t/tmatrixd-help/53266 "2023-01-25T13:40:09Z")

</div>

Good Morning, Please I using TMatrices in my work, Transpose and TMatric division is giving an error. Is there anything I am missing? Thank you for your help. This is the error and the code is attached. root \[0\] Proc…

---

## [Math::IntegratorMultiDims](https://root-forum.cern.ch/t/math-integratormultidims/53265)

<div class="topic-metadata">

**Author:** [@Cas](https://root-forum.cern.ch/u/Cas)\
**Replies:** 1\
**Last updated:** [January 25, 2023, 11:22am UTC](https://root-forum.cern.ch/t/math-integratormultidims/53265 "2023-01-25T11:22:56Z")

</div>

Dear all, I want to use ROOT::Math::IntegratorMultiDims to integrate a 2D function, and then in specific with vegas. There are some things that I am trying to understand, but fail to do so. My testing code looks like …

---

## [Question about using jupyter notebook with CMSSW](https://root-forum.cern.ch/t/question-about-using-jupyter-notebook-with-cmssw/53252)

<div class="topic-metadata">

**Author:** [@Colin\_Chan](https://root-forum.cern.ch/u/Colin_Chan)\
**Replies:** 2\
**Last updated:** [January 25, 2023, 8:14am UTC](https://root-forum.cern.ch/t/question-about-using-jupyter-notebook-with-cmssw/53252 "2023-01-25T08:14:42Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.24/07 Platform: linux? I am on a T3 cluster. Compiler: What is this? Hi, I am using Jupyter notebook a T3 cluster with CMSSW 12…

---

## [Importing TCutG saved C file inside another macro](https://root-forum.cern.ch/t/importing-tcutg-saved-c-file-inside-another-macro/53232)

<div class="topic-metadata">

**Author:** [@thegame](https://root-forum.cern.ch/u/thegame)\
**Replies:** 5\
**Last updated:** [January 25, 2023, 6:38am UTC](https://root-forum.cern.ch/t/importing-tcutg-saved-c-file-inside-another-macro/53232 "2023-01-25T06:38:50Z")

</div>

Hi all, I have saved a graphical cut inside a C file (let’s say Cut.C) and now want to use these cut conditions in another macro that deals with importing and plotting tree variables. What I’m trying to do is to inside t…

---

## [Warning in \<TFile::Append\>: Replacing existing TH1: name (Potential memory leak)](https://root-forum.cern.ch/t/warning-in-tfile-append-replacing-existing-th1-name-potential-memory-leak/53234)

<div class="topic-metadata">

**Author:** [@thegame](https://root-forum.cern.ch/u/thegame)\
**Replies:** 3\
**Last updated:** [January 24, 2023, 11:22pm UTC](https://root-forum.cern.ch/t/warning-in-tfile-append-replacing-existing-th1-name-potential-memory-leak/53234 "2023-01-24T23:22:15Z")

</div>

Hi everyone, I’m trying to plot a bunch of histogram using a for loop. Looks like in every iteration the histogram produced is getting replaced by the new one. Tried to use hstack but still getting same sort of results …

---

## [Regarding the canvas and plotting of graphs](https://root-forum.cern.ch/t/regarding-the-canvas-and-plotting-of-graphs/53230)

<div class="topic-metadata">

**Author:** [@Lovish\_Sharma](https://root-forum.cern.ch/u/Lovish_Sharma)\
**Replies:** 3\
**Last updated:** [January 24, 2023, 10:42am UTC](https://root-forum.cern.ch/t/regarding-the-canvas-and-plotting-of-graphs/53230 "2023-01-24T10:42:34Z")

</div>

whenever i try to plot a graph in root it looks like this. I ran a slit code which was on root primer and got this ROOT Version: 6.26/10 Platform: Ubuntu 22 Compiler: Not Provided

---

## [Fitting histogram with correlated systematic uncertainties](https://root-forum.cern.ch/t/fitting-histogram-with-correlated-systematic-uncertainties/53185)

<div class="topic-metadata">

**Author:** [@Srimoy\_Bhattacharya](https://root-forum.cern.ch/u/Srimoy_Bhattacharya)\
**Replies:** 5\
**Last updated:** [January 24, 2023, 6:12pm UTC](https://root-forum.cern.ch/t/fitting-histogram-with-correlated-systematic-uncertainties/53185 "2023-01-24T18:12:46Z")

</div>

Dear Experts, I am a new user. I want to perform a fit of a histogram (with variable bin width) with correlated uncertainties among the bins with the data in Root. I am struggling to implement the correlation matrix (or…

---

## [Draw scatterplot graph on top of 2D histogram](https://root-forum.cern.ch/t/draw-scatterplot-graph-on-top-of-2d-histogram/53242)

<div class="topic-metadata">

**Author:** [@Nouvilas](https://root-forum.cern.ch/u/Nouvilas)\
**Replies:** 3\
**Last updated:** [January 24, 2023, 5:03pm UTC](https://root-forum.cern.ch/t/draw-scatterplot-graph-on-top-of-2d-histogram/53242 "2023-01-24T17:03:47Z")

</div>

Hi, I’m new to Root, and I’m trying to draw a set of points ((x,y) coordinates in a .txt) on top (as in, in the same graph) of a 2D histogram (a TH2C I’ve managed to draw on a canvas, with “colz”). I’ve seen the TMultiGr…

---

## [Compilation error on XRootD 5.5.1 - make\_unique is not a member of std](https://root-forum.cern.ch/t/compilation-error-on-xrootd-5-5-1-make-unique-is-not-a-member-of-std/53239)

<div class="topic-metadata">

**Author:** [@vitlacil](https://root-forum.cern.ch/u/vitlacil)\
**Replies:** 5\
**Last updated:** [January 24, 2023, 5:00pm UTC](https://root-forum.cern.ch/t/compilation-error-on-xrootd-5-5-1-make-unique-is-not-a-member-of-std/53239 "2023-01-24T17:00:18Z")

</div>

Hi, Newbie question on XRootD here: I’m trying to compile latest XRootD (5.5.1) on CentOS 7 and I’m getting a compilation error. I’m wondering if someone has seen or encountered this before, and if there are good tips…

---

## [The usage of vector type in ROOT](https://root-forum.cern.ch/t/the-usage-of-vector-type-in-root/53178)

<div class="topic-metadata">

**Author:** [@spyhunter01](https://root-forum.cern.ch/u/spyhunter01)\
**Replies:** 24\
**Last updated:** [January 24, 2023, 4:59pm UTC](https://root-forum.cern.ch/t/the-usage-of-vector-type-in-root/53178 "2023-01-24T16:59:45Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided Hi there, Could you please point me out to the wrong lines about vect…

---

## [Visual Studio link error](https://root-forum.cern.ch/t/visual-studio-link-error/51625)

<div class="topic-metadata">

**Author:** [@jcooper](https://root-forum.cern.ch/u/jcooper)\
**Replies:** 15\
**Last updated:** [January 24, 2023, 4:46pm UTC](https://root-forum.cern.ch/t/visual-studio-link-error/51625 "2023-01-24T16:46:17Z")

</div>

I am trying to compile the simple example in Visual Studio 2022. Windows 10, Root just installed yesterday: 6.26/06. I created a console project in Visual Studio and then added the include path to the project include set…

---

## [Draw() crash with segmentation violation](https://root-forum.cern.ch/t/draw-crash-with-segmentation-violation/53223)

<div class="topic-metadata">

**Author:** [@dohyun](https://root-forum.cern.ch/u/dohyun)\
**Replies:** 8\
**Last updated:** [January 23, 2023, 3:33pm UTC](https://root-forum.cern.ch/t/draw-crash-with-segmentation-violation/53223 "2023-01-23T15:33:04Z")

</div>

Hello. I’m learning root program to study high-energy physics. I used the Draw method to draw graphs. But, it won’t work, and Break Segmentation violation. This is the code that called error… root \[0\] TF1 f1(“f1”,“si…

---

## [How to read and save data in a TMatrix](https://root-forum.cern.ch/t/how-to-read-and-save-data-in-a-tmatrix/53221)

<div class="topic-metadata">

**Author:** [@Harriet\_Kumi](https://root-forum.cern.ch/u/Harriet_Kumi)\
**Replies:** 4\
**Last updated:** [January 23, 2023, 3:29pm UTC](https://root-forum.cern.ch/t/how-to-read-and-save-data-in-a-tmatrix/53221 "2023-01-23T15:29:49Z")

</div>

Good morning, Please I am trying to understand how TMatrixes work. I have a code but I get errors. I want to be able to put data in my TMATRIX and read the data. I would be glad if I get assistant here. Thank you very m…

---

## [How to install new version of ROOT without removing the older version?](https://root-forum.cern.ch/t/how-to-install-new-version-of-root-without-removing-the-older-version/53219)

<div class="topic-metadata">

**Author:** [@Divyang](https://root-forum.cern.ch/u/Divyang)\
**Replies:** 5\
**Last updated:** [January 23, 2023, 11:34am UTC](https://root-forum.cern.ch/t/how-to-install-new-version-of-root-without-removing-the-older-version/53219 "2023-01-23T11:34:23Z")

</div>

Hello everyone, Currently, I have ROOT 6.10.04 installed on my system. As my analysis code strictly requires this version of ROOT, I can not remove it. Now, I want to install ROOT 6.26. But I don’t know how to install …

---

## [Graphing the average of multiple rows](https://root-forum.cern.ch/t/graphing-the-average-of-multiple-rows/53202)

<div class="topic-metadata">

**Author:** [@spacetomato1](https://root-forum.cern.ch/u/spacetomato1)\
**Replies:** 1\
**Last updated:** [January 22, 2023, 11:18pm UTC](https://root-forum.cern.ch/t/graphing-the-average-of-multiple-rows/53202 "2023-01-22T23:18:47Z")

</div>

Hello! I’m new to root and have recently installed it to work with the data that I’m obtaining from a geant4 particle simulation (Never worked with c++ either so forgive me if I sound like an idiot). My current file str…

---

## [Newbie Break Segmentation violation: libRint libCore libCling](https://root-forum.cern.ch/t/newbie-break-segmentation-violation-librint-libcore-libcling/53210)

<div class="topic-metadata">

**Author:** [@bizarre](https://root-forum.cern.ch/u/bizarre)\
**Replies:** 2\
**Last updated:** [January 22, 2023, 10:20pm UTC](https://root-forum.cern.ch/t/newbie-break-segmentation-violation-librint-libcore-libcling/53210 "2023-01-22T22:20:27Z")

</div>

Hi, I have just started working with root two days ago. I have created this macro that im gonna write up here since i am not allowed to post links as a new user. Its supposed to fill a 10 by 10 vector with random values…

---

## [Graph with errors from RDataFrame](https://root-forum.cern.ch/t/graph-with-errors-from-rdataframe/52841)

<div class="topic-metadata">

**Author:** [@lilina](https://root-forum.cern.ch/u/lilina)\
**Replies:** 5\
**Last updated:** [January 20, 2023, 5:11pm UTC](https://root-forum.cern.ch/t/graph-with-errors-from-rdataframe/52841 "2023-01-20T17:11:06Z")

</div>

Hi! I am new using RDataFrame and I would like to clarify two questions: Is there a way to get a graph with errors on the y-axis from a RDataFrame that contains x, y, and y-error in its columns? I have found examples …

---

## [ROOT's kernel does not appear in Jupyter (macOs)](https://root-forum.cern.ch/t/roots-kernel-does-not-appear-in-jupyter-macos/53171)

<div class="topic-metadata">

**Author:** [@Louis\_phys](https://root-forum.cern.ch/u/Louis_phys)\
**Replies:** 13\
**Last updated:** [January 19, 2023, 12:41pm UTC](https://root-forum.cern.ch/t/roots-kernel-does-not-appear-in-jupyter-macos/53171 "2023-01-19T12:41:15Z")

</div>

Hello everyone, I kind of new with ROOT but I need it for a class and my teacher has never seen this kind of problem (which seems not new here) , root is functional for me in my terminal it works, python also recognizes…

---

## [Can anyone look at the image and tell me why it is showing this error, I am very new to root as well as coding](https://root-forum.cern.ch/t/can-anyone-look-at-the-image-and-tell-me-why-it-is-showing-this-error-i-am-very-new-to-root-as-well-as-coding/53077)

<div class="topic-metadata">

**Author:** [@Lovish\_Sharma](https://root-forum.cern.ch/u/Lovish_Sharma)\
**Replies:** 10\
**Last updated:** [January 18, 2023, 8:51pm UTC](https://root-forum.cern.ch/t/can-anyone-look-at-the-image-and-tell-me-why-it-is-showing-this-error-i-am-very-new-to-root-as-well-as-coding/53077 "2023-01-18T20:51:52Z")

</div>

ROOT Version: 6.26/10 Platform: ubuntu Compiler: Not Provided

---

## [Can't link ROOT and PYTHIA](https://root-forum.cern.ch/t/cant-link-root-and-pythia/53149)

<div class="topic-metadata">

**Author:** [@DonPanfilo](https://root-forum.cern.ch/u/DonPanfilo)\
**Replies:** 2\
**Last updated:** [January 18, 2023, 7:51pm UTC](https://root-forum.cern.ch/t/cant-link-root-and-pythia/53149 "2023-01-18T19:51:21Z")

</div>

ROOT Version: 6.26/06 Platform: MacOs Monterrey v.12.6 Pythia version: 8.308 Hello everyone! I am having some problems while linking ROOT and PYTHIA. I have tried using ./configure --enable-shared --with-root=\`root…

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

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