# Newbie

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

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

---

## [2d placeholder for graphs](https://root-forum.cern.ch/t/2d-placeholder-for-graphs/52327)

<div class="topic-metadata">

**Author:** [@alex14](https://root-forum.cern.ch/u/alex14)\
**Replies:** 5\
**Last updated:** [November 14, 2022, 7:19pm UTC](https://root-forum.cern.ch/t/2d-placeholder-for-graphs/52327 "2022-11-14T19:19:55Z")

</div>

Hi, can someone please help me with how to make a 2D placeholder? I have several TGraphs, and I need to compare them all together in one graph, but they have different dimensions, and a placeholder would solve that probl…

---

## [Run make after building STARlight](https://root-forum.cern.ch/t/run-make-after-building-starlight/52336)

<div class="topic-metadata">

**Author:** [@Anas\_Alaali](https://root-forum.cern.ch/u/Anas_Alaali)\
**Replies:** 4\
**Last updated:** [November 13, 2022, 10:16am UTC](https://root-forum.cern.ch/t/run-make-after-building-starlight/52336 "2022-11-13T10:16:51Z")

</div>

https://starlight.hepforge.org/ I found the error which run make but I can’t fix that. Please, I need help.

---

## [WSL Build from source error: RInt.pcm is out of date \\ cannot read module signature](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564)

<div class="topic-metadata">

**Author:** [@Dragonfire3900](https://root-forum.cern.ch/u/Dragonfire3900)\
**Replies:** 45\
**Last updated:** [November 11, 2022, 11:10am UTC](https://root-forum.cern.ch/t/wsl-build-from-source-error-rint-pcm-is-out-of-date-cannot-read-module-signature/47564 "2022-11-11T11:10:37Z")

</div>

ROOT Version: v6.24.06 Platform: WSL (Ubuntu 18.04) Compiler: g++ 7.50 Hey everyone! I’m new to ROOT and I’m trying to build it from scratch on WSL using the default instructions from the main website. I’m using the …

---

## [Newbie is confused about installing ROOT on Windows](https://root-forum.cern.ch/t/newbie-is-confused-about-installing-root-on-windows/52316)

<div class="topic-metadata">

**Author:** [@Sophia19](https://root-forum.cern.ch/u/Sophia19)\
**Replies:** 2\
**Last updated:** [November 10, 2022, 9:43pm UTC](https://root-forum.cern.ch/t/newbie-is-confused-about-installing-root-on-windows/52316 "2022-11-10T21:43:30Z")

</div>

Hello everyone, this might be a bit of a basic question, but I can’t seem to find an answer to it. This is my first time installing ROOT. Specifically, I am trying to install ROOT 6 onto my Windows 10 system. In the list…

---

## [Selecting events in TTree](https://root-forum.cern.ch/t/selecting-events-in-ttree/52228)

<div class="topic-metadata">

**Author:** [@hvsouza](https://root-forum.cern.ch/u/hvsouza)\
**Replies:** 7\
**Last updated:** [November 10, 2022, 3:31pm UTC](https://root-forum.cern.ch/t/selecting-events-in-ttree/52228 "2022-11-10T15:31:55Z")

</div>

Hello, I am curious if there is an easier/faster way to get selection from a TTree. What I currently do: I have a function makes average of waveforms for a given standard class that I work with. However, I like to mak…

---

## [Check if branch exists from terminal](https://root-forum.cern.ch/t/check-if-branch-exists-from-terminal/52297)

<div class="topic-metadata">

**Author:** [@beg1nner](https://root-forum.cern.ch/u/beg1nner)\
**Replies:** 4\
**Last updated:** [November 10, 2022, 12:45pm UTC](https://root-forum.cern.ch/t/check-if-branch-exists-from-terminal/52297 "2022-11-10T12:45:03Z")

</div>

Hi all, I have a silly question, but I could not find the solution anywhere. I want to check from the terminal if my tree, called “Entries” has branches which start with “Electron” in its name and I want them listed. A…

---

## [Root in combination with Vitis-AI, python version mismatch](https://root-forum.cern.ch/t/root-in-combination-with-vitis-ai-python-version-mismatch/52255)

<div class="topic-metadata">

**Author:** [@steven1](https://root-forum.cern.ch/u/steven1)\
**Replies:** 2\
**Last updated:** [November 9, 2022, 10:31am UTC](https://root-forum.cern.ch/t/root-in-combination-with-vitis-ai-python-version-mismatch/52255 "2022-11-09T10:31:17Z")

</div>

ROOT Version: 6.16.00 Platform: Ubuntu 20.04LTS Compiler: GCC9.4 Does someone have experience working with Vitis-AI in combination with ROOT? Currently I am having trouble installing ROOT in the conda environment of …

---

## [Run STARlight](https://root-forum.cern.ch/t/run-starlight/52233)

<div class="topic-metadata">

**Author:** [@Anas\_Alaali](https://root-forum.cern.ch/u/Anas_Alaali)\
**Replies:** 4\
**Last updated:** [November 9, 2022, 9:12am UTC](https://root-forum.cern.ch/t/run-starlight/52233 "2022-11-09T09:12:34Z")

</div>

How to run starlight in ubuntu after editing and saving a file ? What is the next step after running ? Please help me.

---

## [Scatter plot with radius](https://root-forum.cern.ch/t/scatter-plot-with-radius/51990)

<div class="topic-metadata">

**Author:** [@Roy](https://root-forum.cern.ch/u/Roy)\
**Replies:** 3\
**Last updated:** [October 25, 2022, 1:24pm UTC](https://root-forum.cern.ch/t/scatter-plot-with-radius/51990 "2022-10-25T13:24:44Z")

</div>

I am trying to produce 2D scatter plot with 3 variable set x-coordinate, y-coordinate and radius of the event or circle. I am not sure how to add radius to the Scatter plot. Is there any way possible to plot these data? …

---

## [Subtract the background normalized](https://root-forum.cern.ch/t/subtract-the-background-normalized/52222)

<div class="topic-metadata">

**Author:** [@Amirreza\_Lotfian](https://root-forum.cern.ch/u/Amirreza_Lotfian)\
**Replies:** 1\
**Last updated:** [November 6, 2022, 3:51am UTC](https://root-forum.cern.ch/t/subtract-the-background-normalized/52222 "2022-11-06T03:51:34Z")

</div>

Hi, I have a histogram. I find its peak, and find the best Gaussian distribution which fit to the shape of the peak ( with tools-\> fit panel). I use IntegralAndError(interval,error) to find the area under the curve. Now …

---

## [Suming Half the Weights in a 1D Histogram](https://root-forum.cern.ch/t/suming-half-the-weights-in-a-1d-histogram/52231)

<div class="topic-metadata">

**Author:** [@RNugent](https://root-forum.cern.ch/u/RNugent)\
**Replies:** 1\
**Last updated:** [November 5, 2022, 8:42pm UTC](https://root-forum.cern.ch/t/suming-half-the-weights-in-a-1d-histogram/52231 "2022-11-05T20:42:46Z")

</div>

I’m trying to sum the weights of a 1D histogram from the lowest x-axis value to the middle x-axis value (in this case the position of an energy deposit from the centre of a chamber). Is there a way to define the interval…

---

## [Root into HepMc](https://root-forum.cern.ch/t/root-into-hepmc/52217)

<div class="topic-metadata">

**Author:** [@kohle](https://root-forum.cern.ch/u/kohle)\
**Replies:** 1\
**Last updated:** [November 4, 2022, 1:52pm UTC](https://root-forum.cern.ch/t/root-into-hepmc/52217 "2022-11-04T13:52:53Z")

</div>

Hello everyone, I have a question I cannot find the answer to online. I have my data stored in root data (TTree files if that makes a difference) but for further usage I need to convert the data into hepmc format My q…

---

## [\*\*\* Break \*\*\* segmentation violation due to a SetBranchAddress](https://root-forum.cern.ch/t/break-segmentation-violation-due-to-a-setbranchaddress/52207)

<div class="topic-metadata">

**Author:** [@gale](https://root-forum.cern.ch/u/gale)\
**Replies:** 4\
**Last updated:** [November 4, 2022, 1:35am UTC](https://root-forum.cern.ch/t/break-segmentation-violation-due-to-a-setbranchaddress/52207 "2022-11-04T01:35:37Z")

</div>

ROOT Version: root/6.26.06\_1 Platform: Not Provided Compiler: cling (I think) Hi everyone, I have been running a macro for a few weeks with no problems, slowly adding on to it and it stopped working at some point. I…

---

## [How to set different width for error bars and data line in TGraphErrors](https://root-forum.cern.ch/t/how-to-set-different-width-for-error-bars-and-data-line-in-tgrapherrors/51537)

<div class="topic-metadata">

**Author:** [@Shiva\_Prasad\_Nayak](https://root-forum.cern.ch/u/Shiva_Prasad_Nayak)\
**Replies:** 6\
**Last updated:** [November 3, 2022, 2:23pm UTC](https://root-forum.cern.ch/t/how-to-set-different-width-for-error-bars-and-data-line-in-tgrapherrors/51537 "2022-11-03T14:23:29Z")

</div>

ROOT Version: 6.24

---

## [How to change the position of axes of a graph](https://root-forum.cern.ch/t/how-to-change-the-position-of-axes-of-a-graph/51970)

<div class="topic-metadata">

**Author:** [@BBS](https://root-forum.cern.ch/u/BBS)\
**Replies:** 16\
**Last updated:** [November 3, 2022, 12:33pm UTC](https://root-forum.cern.ch/t/how-to-change-the-position-of-axes-of-a-graph/51970 "2022-11-03T12:33:24Z")

</div>

Hello everyone, I’m trying to make a graph and I want it to go below the X axis. Unfortunately, it seems that root automatically arranges the axes so that the graph is always contained inside the box. Here is an image o…

---

## [How to read data 2D array from a .txt file and make a ttree](https://root-forum.cern.ch/t/how-to-read-data-2d-array-from-a-txt-file-and-make-a-ttree/52208)

<div class="topic-metadata">

**Author:** [@gini](https://root-forum.cern.ch/u/gini)\
**Replies:** 1\
**Last updated:** [November 3, 2022, 10:32am UTC](https://root-forum.cern.ch/t/how-to-read-data-2d-array-from-a-txt-file-and-make-a-ttree/52208 "2022-11-03T10:32:20Z")

</div>

Hi, I would like to read 2D array from a text file and would like to store the contents of the array in a TTree. I am attaching the text file, where I have the mass and TKE of particles stored in a 2D array. I want to …

---

## [Extract data points from a Gaussian fit](https://root-forum.cern.ch/t/extract-data-points-from-a-gaussian-fit/52202)

<div class="topic-metadata">

**Author:** [@Anil\_Kumar](https://root-forum.cern.ch/u/Anil_Kumar)\
**Replies:** 6\
**Last updated:** [November 3, 2022, 8:44am UTC](https://root-forum.cern.ch/t/extract-data-points-from-a-gaussian-fit/52202 "2022-11-03T08:44:42Z")

</div>

Hii experts, I have three Gaussian fit in one canvas and want to extract data points from one Gaussian fit (the red one) as attached image. Can I extract the data point from the red one fit? If so then how can I pro…

---

## [Drawing a histogram using a TLorentzVector - Error \*\*break\*\* Segmentation Violation](https://root-forum.cern.ch/t/drawing-a-histogram-using-a-tlorentzvector-error-break-segmentation-violation/52201)

<div class="topic-metadata">

**Author:** [@naahchill](https://root-forum.cern.ch/u/naahchill)\
**Replies:** 3\
**Last updated:** [November 2, 2022, 1:15pm UTC](https://root-forum.cern.ch/t/drawing-a-histogram-using-a-tlorentzvector-error-break-segmentation-violation/52201 "2022-11-02T13:15:03Z")

</div>

ROOT Version: ROOT 6.26/08, “built for Mac osx arm64” Platform: Mac OS Monterey, MacBook Air with M1 Chip Compiler: Clang Hello everyone, this is my first time posting here and I hope the question I am about to ask is…

---

## [Creating a vector and adding it as a branch to the tree](https://root-forum.cern.ch/t/creating-a-vector-and-adding-it-as-a-branch-to-the-tree/52176)

<div class="topic-metadata">

**Author:** [@flyinpenguin](https://root-forum.cern.ch/u/flyinpenguin)\
**Replies:** 1\
**Last updated:** [November 2, 2022, 8:49am UTC](https://root-forum.cern.ch/t/creating-a-vector-and-adding-it-as-a-branch-to-the-tree/52176 "2022-11-02T08:49:50Z")

</div>

Hello everyone, I want to create a vector which contains trackid’s and it is created using the root file "linked\_tracks.root " and then I want to add this vector as a branch to the tree and the new file is named “out\_li…

---

## [One D Hist](https://root-forum.cern.ch/t/one-d-hist/52191)

<div class="topic-metadata">

**Author:** [@Sadhana\_Verma](https://root-forum.cern.ch/u/Sadhana_Verma)\
**Replies:** 2\
**Last updated:** [November 2, 2022, 8:43am UTC](https://root-forum.cern.ch/t/one-d-hist/52191 "2022-11-02T08:43:25Z")

</div>

Hi all ! While running a macro for overalying plots, I am facing quite a lot of errors ! Though IPlease note that I am not facing these errors while doing the same thing on lxplus and getting a nice plot. Please ha…

---

## [ROOT fails after upgrade to MacOS Monterey (clang? ProcessLine?)](https://root-forum.cern.ch/t/root-fails-after-upgrade-to-macos-monterey-clang-processline/52185)

<div class="topic-metadata">

**Author:** [@torkjellsdatter](https://root-forum.cern.ch/u/torkjellsdatter)\
**Replies:** 1\
**Last updated:** [November 1, 2022, 9:42pm UTC](https://root-forum.cern.ch/t/root-fails-after-upgrade-to-macos-monterey-clang-processline/52185 "2022-11-01T21:42:35Z")

</div>

Dear experts, ROOT Version: ROOT 6.26/04 Platform: OSX Monterey 12.6, Xcode 14.0.1 Compiler: Apple clang version 14.0.0 (clang-1400.0.29.102) I am unable to run my analysis after upgrading to MacOS Monterey, and I…

---

## [Load or execute macro in root 6.26.00](https://root-forum.cern.ch/t/load-or-execute-macro-in-root-6-26-00/52189)

<div class="topic-metadata">

**Author:** [@NgJunKai](https://root-forum.cern.ch/u/NgJunKai)\
**Replies:** 2\
**Last updated:** [November 1, 2022, 5:41pm UTC](https://root-forum.cern.ch/t/load-or-execute-macro-in-root-6-26-00/52189 "2022-11-01T17:41:24Z")

</div>

I used to issue root .x macro.C or root .L macro.C(I was using v6.24, under conda environment in centos7). The same command seems to be not available in v6.26.00. the root help menu shows: OPTIONS: -b …

---

## [Potential Memory leak?](https://root-forum.cern.ch/t/potential-memory-leak/52180)

<div class="topic-metadata">

**Author:** [@HMahdy](https://root-forum.cern.ch/u/HMahdy)\
**Replies:** 2\
**Last updated:** [November 1, 2022, 3:46pm UTC](https://root-forum.cern.ch/t/potential-memory-leak/52180 "2022-11-01T15:46:07Z")

</div>

I’m trying to create a 1D histogram but getting this error “Replacing existing TH1: Energy (Potential memory leak)”. Some ideas would be highly appreciated. GENIAnalysis.C (1.9 KB) ROOT Version:6.24 Platform:\_ Not Pr…

---

## [Saving data file after editing](https://root-forum.cern.ch/t/saving-data-file-after-editing/52187)

<div class="topic-metadata">

**Author:** [@Anas\_Alaali](https://root-forum.cern.ch/u/Anas_Alaali)\
**Replies:** 1\
**Last updated:** [November 1, 2022, 1:57pm UTC](https://root-forum.cern.ch/t/saving-data-file-after-editing/52187 "2022-11-01T13:57:49Z")

</div>

Hi I don’t know how can I save this and what should I do to run the output data. Please help me.

---

## [Electron multiplicity](https://root-forum.cern.ch/t/electron-multiplicity/41300)

<div class="topic-metadata">

**Author:** [@Afzaal786](https://root-forum.cern.ch/u/Afzaal786)\
**Replies:** 5\
**Last updated:** [December 11, 2020, 10:53am UTC](https://root-forum.cern.ch/t/electron-multiplicity/41300 "2020-12-11T10:53:34Z")

</div>

Hi, how to make electron multiplicity plot of Geant4 extended/electromagnetic example TestEm5 in ROOT.

---

## [Creating a histogram of particle final energies using their pdg codes](https://root-forum.cern.ch/t/creating-a-histogram-of-particle-final-energies-using-their-pdg-codes/52121)

<div class="topic-metadata">

**Author:** [@HMahdy](https://root-forum.cern.ch/u/HMahdy)\
**Replies:** 3\
**Last updated:** [October 27, 2022, 8:26pm UTC](https://root-forum.cern.ch/t/creating-a-histogram-of-particle-final-energies-using-their-pdg-codes/52121 "2022-10-27T20:26:43Z")

</div>

I’m still new to this and am trying to create two histograms for daughter particle final energies - protons and/or neutrons- using their pdg codes but I’m not sure how to call them in my code. I sure need some help. Than…

---

## [ROOT::Math::PtEtaPhiMVector\> usage problem](https://root-forum.cern.ch/t/root-ptetaphimvector-usage-problem/52170)

<div class="topic-metadata">

**Author:** [@huiling110](https://root-forum.cern.ch/u/huiling110)\
**Replies:** 1\
**Last updated:** [October 31, 2022, 10:58am UTC](https://root-forum.cern.ch/t/root-ptetaphimvector-usage-problem/52170 "2022-10-31T10:58:43Z")

</div>

Dear experts, I am using ROOT::Math::PtEtaPhiMVector and are running into some problems. here is the code snippts: ROOT::Math::PtEtaPhiMVector jets(a, b, c, d); ROOT::Math::PtEtaPhiMVector muons(e, f, g, h); auto MHTs…

---

## [Cross compile for arm machine could not find X11](https://root-forum.cern.ch/t/cross-compile-for-arm-machine-could-not-find-x11/51310)

<div class="topic-metadata">

**Author:** [@fqjboy](https://root-forum.cern.ch/u/fqjboy)\
**Replies:** 4\
**Last updated:** [October 30, 2022, 9:20am UTC](https://root-forum.cern.ch/t/cross-compile-for-arm-machine-could-not-find-x11/51310 "2022-10-30T09:20:59Z")

</div>

Hi ROOTers, I am trying to cross-compile the Root library (ver. 6.26.06) for an arm machine. I have received error message: – Looking for X11 CMake Error at /opt/st/myir/3.1-snapshot/sysroots/x86\_64-ostl\_sdk-linux/usr…

---

## [Store array values to a .root file](https://root-forum.cern.ch/t/store-array-values-to-a-root-file/52074)

<div class="topic-metadata">

**Author:** [@Dil](https://root-forum.cern.ch/u/Dil)\
**Replies:** 4\
**Last updated:** [October 28, 2022, 4:59pm UTC](https://root-forum.cern.ch/t/store-array-values-to-a-root-file/52074 "2022-10-28T16:59:50Z")

</div>

Hello, I tried to store my array values to a .root file. But I got following error. error: member reference base type 'float' is not a structure or union A\_val\[ixB\]\[iQ2\]\[itmin\_t\]\[i\_DATA\].Write(Form(…

---

## [Y-axis unit of FFT](https://root-forum.cern.ch/t/y-axis-unit-of-fft/52132)

<div class="topic-metadata">

**Author:** [@FELICIA\_SUTANTO](https://root-forum.cern.ch/u/FELICIA_SUTANTO)\
**Replies:** 2\
**Last updated:** [October 28, 2022, 4:42pm UTC](https://root-forum.cern.ch/t/y-axis-unit-of-fft/52132 "2022-10-28T16:42:14Z")

</div>

Consider the following code: TVirtualFFT::SetTransform(0); TH1F \*hm = h-\>FFT(hm, “MAG”); where h is the original signal with Y-axis unit XXX. Does the Y-axis unit of hm remain the same as h (i.e., XXX as well)? or is…

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

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