# Newbie

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

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

---

## [ROOT tree branch array](https://root-forum.cern.ch/t/root-tree-branch-array/56928)

<div class="topic-metadata">

**Author:** [@Sbecka](https://root-forum.cern.ch/u/Sbecka)\
**Replies:** 2\
**Last updated:** [October 31, 2023, 1:13pm UTC](https://root-forum.cern.ch/t/root-tree-branch-array/56928 "2023-10-31T13:13:19Z")

</div>

Hello, I have a ROOT tree with a branch called “detector.energy”. I wanted to transform the branch with some calibration coefficients by using the macro attached and it worked fine. However, I have another branch which…

---

## [Lxplus root error](https://root-forum.cern.ch/t/lxplus-root-error/56894)

<div class="topic-metadata">

**Author:** [@341ClintonGonsalves](https://root-forum.cern.ch/u/341ClintonGonsalves)\
**Replies:** 4\
**Last updated:** [October 30, 2023, 10:09am UTC](https://root-forum.cern.ch/t/lxplus-root-error/56894 "2023-10-30T10:09:15Z")

</div>

Hello, I am trying to learn root on lxplus. But I am getting this error let me know if I am doing something wrong or is there something I need to install.

---

## [Histogram plot](https://root-forum.cern.ch/t/histogram-plot/56903)

<div class="topic-metadata">

**Author:** [@Manisha\_Rana](https://root-forum.cern.ch/u/Manisha_Rana)\
**Replies:** 1\
**Last updated:** [October 28, 2023, 7:12am UTC](https://root-forum.cern.ch/t/histogram-plot/56903 "2023-10-28T07:12:32Z")

</div>

Hi everyone ! How We can Draw a gaussion for diffrent values of (mean x) in the same Histogram ?

---

## [Define constant integer with if condition in c++](https://root-forum.cern.ch/t/define-constant-integer-with-if-condition-in-c/56862)

<div class="topic-metadata">

**Author:** [@sawan4](https://root-forum.cern.ch/u/sawan4)\
**Replies:** 7\
**Last updated:** [October 28, 2023, 4:32am UTC](https://root-forum.cern.ch/t/define-constant-integer-with-if-condition-in-c/56862 "2023-10-28T04:32:16Z")

</div>

To use a constant integer with the if condition I am using this logic in c++ code which compile with the g++ but not with root compiler. #include \<iostream\> using namespace std; int main() { int wafer = 26; in…

---

## [Invariant mass reconstruction](https://root-forum.cern.ch/t/invariant-mass-reconstruction/56848)

<div class="topic-metadata">

**Author:** [@Manisha\_Rana](https://root-forum.cern.ch/u/Manisha_Rana)\
**Replies:** 3\
**Last updated:** [October 26, 2023, 10:42am UTC](https://root-forum.cern.ch/t/invariant-mass-reconstruction/56848 "2023-10-26T10:42:01Z")

</div>

i have created 1000 events for each event there are produced particles and i have set Px , Py, Pz for all those with the help of poisson distribution. and mass with then help of grandom now i want to reconstruct mass …

---

## [Does the latest version 6.28/06 work with Xcode 15?](https://root-forum.cern.ch/t/does-the-latest-version-6-28-06-work-with-xcode-15/56879)

<div class="topic-metadata">

**Author:** [@bm5](https://root-forum.cern.ch/u/bm5)\
**Replies:** 1\
**Last updated:** [October 27, 2023, 7:07am UTC](https://root-forum.cern.ch/t/does-the-latest-version-6-28-06-work-with-xcode-15/56879 "2023-10-27T07:07:11Z")

</div>

Does the latest version 6.28/06 work with Xcode 15? macOS-14.0 clang version- 15.0.0 I am trying to unpack and build root from the source code.

---

## [How to find the raw numbers stored in a specific bin in a histogram?](https://root-forum.cern.ch/t/how-to-find-the-raw-numbers-stored-in-a-specific-bin-in-a-histogram/56880)

<div class="topic-metadata">

**Author:** [@Quantic](https://root-forum.cern.ch/u/Quantic)\
**Replies:** 1\
**Last updated:** [October 27, 2023, 6:13am UTC](https://root-forum.cern.ch/t/how-to-find-the-raw-numbers-stored-in-a-specific-bin-in-a-histogram/56880 "2023-10-27T06:13:43Z")

</div>

Hello, I need to produce a list of data values that I stored in a histogram, which each got placed into the same bin. I would like to be able to do this for each bin. For example, let’s say I put nine numbers into one …

---

## [Web browser off not working](https://root-forum.cern.ch/t/web-browser-off-not-working/56859)

<div class="topic-metadata">

**Author:** [@jfry299](https://root-forum.cern.ch/u/jfry299)\
**Replies:** 8\
**Last updated:** [October 26, 2023, 7:32pm UTC](https://root-forum.cern.ch/t/web-browser-off-not-working/56859 "2023-10-26T19:32:01Z")

</div>

ROOT Version: 6.28.6 Platform: Linux 6.2.0 Compiler: Not Provided Hi, I am attempting to turn off the default web based browser in root. To do this, I followed the instructions on the root website of adding the comm…

---

## [Cut-String in Draw-Method for TChain](https://root-forum.cern.ch/t/cut-string-in-draw-method-for-tchain/56877)

<div class="topic-metadata">

**Author:** [@ankirchh](https://root-forum.cern.ch/u/ankirchh)\
**Replies:** 3\
**Last updated:** [October 26, 2023, 6:45pm UTC](https://root-forum.cern.ch/t/cut-string-in-draw-method-for-tchain/56877 "2023-10-26T18:45:51Z")

</div>

Dear Experts, I have a problem with the Draw-Method and using a cut-string. I would like to do something like this: chain.Draw(“variable”,“(@el\_pt-\>size()==2 && el\_pt\[1\]\>25000)||(@mu\_pt-\>size()==2 && mu\_pt\[1\]\>25000)”); …

---

## [TBrowser very slow via ssh -Y (X11 forwarding)](https://root-forum.cern.ch/t/tbrowser-very-slow-via-ssh-y-x11-forwarding/56841)

<div class="topic-metadata">

**Author:** [@organoleptic](https://root-forum.cern.ch/u/organoleptic)\
**Replies:** 3\
**Last updated:** [October 26, 2023, 8:09am UTC](https://root-forum.cern.ch/t/tbrowser-very-slow-via-ssh-y-x11-forwarding/56841 "2023-10-26T08:09:21Z")

</div>

Hi, Maybe that’s more a Linux/ssh/X11 question, but my problem is hindering my work in ROOT, so I thought I should try here first. When using ssh-Y to a locally connected server and opening TBrowser I have to wait a ve…

---

## [TBrowser opens with a blank screen](https://root-forum.cern.ch/t/tbrowser-opens-with-a-blank-screen/56857)

<div class="topic-metadata">

**Author:** [@moneybaggs7](https://root-forum.cern.ch/u/moneybaggs7)\
**Replies:** 1\
**Last updated:** [October 25, 2023, 5:38pm UTC](https://root-forum.cern.ch/t/tbrowser-opens-with-a-blank-screen/56857 "2023-10-25T17:38:49Z")

</div>

ROOT Version: 6.28.06 \_Platform: \_ MacOS Sonoma 14.0 Compiler: Not Provided Hello all, Brew updated my root version from 6.28.04 → 6.28.06 and now my TBrowser opens with a blank screen. the commands I run in my zsh …

---

## [TLegend coloring does not show](https://root-forum.cern.ch/t/tlegend-coloring-does-not-show/56809)

<div class="topic-metadata">

**Author:** [@Dario\_Ferrando](https://root-forum.cern.ch/u/Dario_Ferrando)\
**Replies:** 2\
**Last updated:** [October 22, 2023, 7:20pm UTC](https://root-forum.cern.ch/t/tlegend-coloring-does-not-show/56809 "2023-10-22T19:20:31Z")

</div>

I’m trying to make some color lines show in a TLegend by doing this: l.AddEntry(&vg\[i\], "name", "l"); where the vector vg\[i\] contains all of my TGraph. The problem is that the coloring doesn’t show into the final entry…

---

## [Fitter problem with pol1 when the slope is negative and x-error bars\> y-error bars bug? in PyROOT](https://root-forum.cern.ch/t/fitter-problem-with-pol1-when-the-slope-is-negative-and-x-error-bars-y-error-bars-bug-in-pyroot/56781)

<div class="topic-metadata">

**Author:** [@assosiation](https://root-forum.cern.ch/u/assosiation)\
**Replies:** 3\
**Last updated:** [October 19, 2023, 9:52pm UTC](https://root-forum.cern.ch/t/fitter-problem-with-pol1-when-the-slope-is-negative-and-x-error-bars-y-error-bars-bug-in-pyroot/56781 "2023-10-19T21:52:31Z")

</div>

got this for several data sets, was able to reproduce with this sample data: import ROOT import numpy y=numpy.array(\[5,3,1.0\]) xerr=numpy.array(\[1,1,1.0\]) x=numpy.array(\[1,2,3.0\]) yerr=numpy.array(\[0.1,0.2,0.7\]) a=ROOT.…

---

## [How can I check the memory taken by each tree object?](https://root-forum.cern.ch/t/how-can-i-check-the-memory-taken-by-each-tree-object/56780)

<div class="topic-metadata">

**Author:** [@rushabhgala](https://root-forum.cern.ch/u/rushabhgala)\
**Replies:** 2\
**Last updated:** [October 19, 2023, 9:53pm UTC](https://root-forum.cern.ch/t/how-can-i-check-the-memory-taken-by-each-tree-object/56780 "2023-10-19T21:53:25Z")

</div>

I have a ROOT Tree named MyTree with lots of objects in it Object1, Object2… and a folder with some 2D histograms. How do I check how much memory each object/histogram is using? ROOT Version: 6.28 Platform: Ubuntu Co…

---

## [ROOT Windows 32 bit Installation](https://root-forum.cern.ch/t/root-windows-32-bit-installation/56785)

<div class="topic-metadata">

**Author:** [@treyer69](https://root-forum.cern.ch/u/treyer69)\
**Replies:** 21\
**Last updated:** [October 19, 2023, 9:50am UTC](https://root-forum.cern.ch/t/root-windows-32-bit-installation/56785 "2023-10-19T09:50:34Z")

</div>

ROOT Version: Release 6.28/06 - 2023-08-28 Platform: Windows Compiler: CMake Hello, I have been trying for hours installing ROOT and running it with one of my builds, but it keeps popping this error up (or something …

---

## [Error in TUnfolding](https://root-forum.cern.ch/t/error-in-tunfolding/56738)

<div class="topic-metadata">

**Author:** [@pjana](https://root-forum.cern.ch/u/pjana)\
**Replies:** 3\
**Last updated:** [October 16, 2023, 6:34pm UTC](https://root-forum.cern.ch/t/error-in-tunfolding/56738 "2023-10-16T18:34:41Z")

</div>

Dear experts, I am trying to do unfolding using TUnfold with regularization, scanning LCurve method. I am using 12 bins for reco MC and 6 bins for Gen MC and data. I am getting errors like- Info in TUnfold::SetConstra…

---

## [Problem while fitting graph with 5 gaussians](https://root-forum.cern.ch/t/problem-while-fitting-graph-with-5-gaussians/56716)

<div class="topic-metadata">

**Author:** [@Shiva\_Prasad\_Nayak](https://root-forum.cern.ch/u/Shiva_Prasad_Nayak)\
**Replies:** 5\
**Last updated:** [October 16, 2023, 10:13am UTC](https://root-forum.cern.ch/t/problem-while-fitting-graph-with-5-gaussians/56716 "2023-10-16T10:13:03Z")

</div>

Hi everyone!! I’m currently attempting to fit a graph using 5 Gaussian functions. While I’ve successfully fitted the graph with three Gaussian functions, I’m looking to achieve a fit with five Gaussians, as shown in the…

---

## [Failed to use pyroot in jupyter/pycharm on mac with apple silicon](https://root-forum.cern.ch/t/failed-to-use-pyroot-in-jupyter-pycharm-on-mac-with-apple-silicon/56723)

<div class="topic-metadata">

**Author:** [@Rbb\_Cui](https://root-forum.cern.ch/u/Rbb_Cui)\
**Replies:** 1\
**Last updated:** [October 15, 2023, 5:21pm UTC](https://root-forum.cern.ch/t/failed-to-use-pyroot-in-jupyter-pycharm-on-mac-with-apple-silicon/56723 "2023-10-15T17:21:52Z")

</div>

I have downloaded root with homebrew at opt/homebrew/Cellar/root/6.28.06, and I do not know what to proceed to use pyroot in pycharm/jupyter notebook, when I run “import root” in them, it says “ModuleNotFound” error. R…

---

## [Unable to Run TUnfold 17.9 version with root 6.24](https://root-forum.cern.ch/t/unable-to-run-tunfold-17-9-version-with-root-6-24/56671)

<div class="topic-metadata">

**Author:** [@Sumankkundu](https://root-forum.cern.ch/u/Sumankkundu)\
**Replies:** 4\
**Last updated:** [October 13, 2023, 3:54am UTC](https://root-forum.cern.ch/t/unable-to-run-tunfold-17-9-version-with-root-6-24/56671 "2023-10-13T03:54:15Z")

</div>

Dear expert, I am previously using TUnfold 17.9\[1\] with root V6.18 and it was working fine on Ubuntu 20.04 LTS. But on Ubuntu 22.04 LTS, I am unable to compile TUnfold 17.9 with root 6.24 to 6.28 . I am not able to ch…

---

## [Question regarding multifit of gaussians](https://root-forum.cern.ch/t/question-regarding-multifit-of-gaussians/56681)

<div class="topic-metadata">

**Author:** [@Shiva\_Prasad\_Nayak](https://root-forum.cern.ch/u/Shiva_Prasad_Nayak)\
**Replies:** 3\
**Last updated:** [October 11, 2023, 6:03pm UTC](https://root-forum.cern.ch/t/question-regarding-multifit-of-gaussians/56681 "2023-10-11T18:03:15Z")

</div>

I fitted a curve using 3 Gaussian. At x = 100, the individual values of the three fitted Gaussians are 951.3, 1714, and 4.6, respectively. Surprisingly, when I add these values at x = 100 (951.3 + 1714 + 4.6), it doesn’t…

---

## [Projection on defined histogram fixes binning for subsequent projections](https://root-forum.cern.ch/t/projection-on-defined-histogram-fixes-binning-for-subsequent-projections/56676)

<div class="topic-metadata">

**Author:** [@mfglinux\_gmail](https://root-forum.cern.ch/u/mfglinux_gmail)\
**Replies:** 1\
**Last updated:** [October 11, 2023, 11:01am UTC](https://root-forum.cern.ch/t/projection-on-defined-histogram-fixes-binning-for-subsequent-projections/56676 "2023-10-11T11:01:13Z")

</div>

Hello when I project 2 variables from a TTree without imposing binning I get a plot like this: tree-\>Draw(“yvar:xvar”,“”,“colz”) If I impose a binning tree-\>Draw(“yvar:xvar\>\>htt(801,-0.5,800.5,26,219.5,245.5)”,“”,“c…

---

## [How to set default marker style of TGraph when drawing on canvas?](https://root-forum.cern.ch/t/how-to-set-default-marker-style-of-tgraph-when-drawing-on-canvas/56631)

<div class="topic-metadata">

**Author:** [@Youngju](https://root-forum.cern.ch/u/Youngju)\
**Replies:** 5\
**Last updated:** [October 11, 2023, 7:40am UTC](https://root-forum.cern.ch/t/how-to-set-default-marker-style-of-tgraph-when-drawing-on-canvas/56631 "2023-10-11T07:40:22Z")

</div>

Hello, I want to change the default marker style of TGraph when drawing on the TCanvas. I tried gStyle-\>SetMarkerStyle(3) before generating a canvas, but it didn’t work… Is there some methods? Cheers, Youngju

---

## [Suggestions to partially compile the ./math component into Julia \_jll library](https://root-forum.cern.ch/t/suggestions-to-partially-compile-the-math-component-into-julia-jll-library/56485)

<div class="topic-metadata">

**Author:** [@ylian](https://root-forum.cern.ch/u/ylian)\
**Replies:** 2\
**Last updated:** [October 10, 2023, 9:21am UTC](https://root-forum.cern.ch/t/suggestions-to-partially-compile-the-math-component-into-julia-jll-library/56485 "2023-10-10T09:21:40Z")

</div>

Dear developers and experts, I want to make the Root math functions accessible from Julia. The way to do it is, I guess, to have a successful minimal compilation of the source code in the ./math folder and then go over …

---

## [Compile a C++ code containing RooUnfold classes](https://root-forum.cern.ch/t/compile-a-c-code-containing-roounfold-classes/56629)

<div class="topic-metadata">

**Author:** [@LongHoa](https://root-forum.cern.ch/u/LongHoa)\
**Replies:** 1\
**Last updated:** [October 10, 2023, 8:56am UTC](https://root-forum.cern.ch/t/compile-a-c-code-containing-roounfold-classes/56629 "2023-10-10T08:56:58Z")

</div>

Dear Experts, I’ve just installed the RooUnfold package. I managed to run the example code as described on the github page (GitHub - roofit-dev/RooUnfold: A fork of https://gitlab.cern.ch/RooUnfold/RooUnfold.git for non…

---

## [Help with fitting](https://root-forum.cern.ch/t/help-with-fitting/56653)

<div class="topic-metadata">

**Author:** [@Natilus](https://root-forum.cern.ch/u/Natilus)\
**Replies:** 2\
**Last updated:** [October 10, 2023, 8:46am UTC](https://root-forum.cern.ch/t/help-with-fitting/56653 "2023-10-10T08:46:59Z")

</div>

Dear Root experts, I have a normalized histogram of my signal that I got it from MC and I would like to use it to fit data. In my code I create a TF1 as follows: TF1\* PsiSignal = new TF1("J/Psi Signal", "\[0\]\*(h\_MCPsiM…

---

## [Drawing Vertical Line in TGraph](https://root-forum.cern.ch/t/drawing-vertical-line-in-tgraph/56640)

<div class="topic-metadata">

**Author:** [@TheScientist](https://root-forum.cern.ch/u/TheScientist)\
**Replies:** 4\
**Last updated:** [October 10, 2023, 8:46am UTC](https://root-forum.cern.ch/t/drawing-vertical-line-in-tgraph/56640 "2023-10-10T08:46:28Z")

</div>

Hi, I am trying to draw veritcal line in my TGraph. My code compiles without error but the line is out of scope (picture attached for reference where you can see red line on bottom part). Can someone please help with the…

---

## [Integrate histogram](https://root-forum.cern.ch/t/integrate-histogram/56657)

<div class="topic-metadata">

**Author:** [@Goktug\_Bayram](https://root-forum.cern.ch/u/Goktug_Bayram)\
**Replies:** 1\
**Last updated:** [October 9, 2023, 2:48pm UTC](https://root-forum.cern.ch/t/integrate-histogram/56657 "2023-10-09T14:48:18Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided Hi dear experts I need to find the area of my histogram between the r…

---

## [No attribute 'Write'](https://root-forum.cern.ch/t/no-attribute-write/56635)

<div class="topic-metadata">

**Author:** [@Annzm](https://root-forum.cern.ch/u/Annzm)\
**Replies:** 1\
**Last updated:** [October 8, 2023, 5:54am UTC](https://root-forum.cern.ch/t/no-attribute-write/56635 "2023-10-08T05:54:26Z")

</div>

Hi Everyone i trying to create some histograms and want to save them into a root file. kinPlots = HistGroup('kinPlots') kinPlots.Add('MET\_pt',self.a.GetActiveNode().DataFrame.Histo1D\<float\>(('MET\_pt','MET\_pt',40,0…

---

## [Segmentation violation when using snapshot to save tree](https://root-forum.cern.ch/t/segmentation-violation-when-using-snapshot-to-save-tree/56593)

<div class="topic-metadata">

**Author:** [@mmaneyro](https://root-forum.cern.ch/u/mmaneyro)\
**Replies:** 4\
**Last updated:** [October 4, 2023, 2:47pm UTC](https://root-forum.cern.ch/t/segmentation-violation-when-using-snapshot-to-save-tree/56593 "2023-10-04T14:47:20Z")

</div>

Hi, I am trying to use RDataFrame to manipulate TTrees opened from file, and save the result to file using snapshot. My attempts lead to segmentation violation crashes. I tried a simplified code where the tree is simply…

---

## [Does consequtive Set?Axis() commands overrides the previous one](https://root-forum.cern.ch/t/does-consequtive-set-axis-commands-overrides-the-previous-one/56602)

<div class="topic-metadata">

**Author:** [@Siddharth\_Parashari](https://root-forum.cern.ch/u/Siddharth_Parashari)\
**Replies:** 3\
**Last updated:** [October 4, 2023, 2:30pm UTC](https://root-forum.cern.ch/t/does-consequtive-set-axis-commands-overrides-the-previous-one/56602 "2023-10-04T14:30:09Z")

</div>

Hi, I am trying to use TRotation class member functions to rotate and transform one coordinate system into another. So I need my Z axis to be in parallel to the direction of gamma propagation and Y axis to be perpendicu…

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

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