# Newbie

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

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

---

## [Transforming a graph into a histogram](https://root-forum.cern.ch/t/transforming-a-graph-into-a-histogram/47740)

<div class="topic-metadata">

**Author:** [@SarahHamad](https://root-forum.cern.ch/u/SarahHamad)\
**Replies:** 1\
**Last updated:** [November 20, 2021, 8:33am UTC](https://root-forum.cern.ch/t/transforming-a-graph-into-a-histogram/47740 "2021-11-20T08:33:23Z")

</div>

Hello, I am working to get the probability distribution of a conditional statement ( probability of giving birth tomorrow if the mother didn’t give birth yet , the mean and standard deviation are given). I am thinking o…

---

## [How to detect XrootD error and protect the output](https://root-forum.cern.ch/t/how-to-detect-xrootd-error-and-protect-the-output/47695)

<div class="topic-metadata">

**Author:** [@Y.S.Zhang](https://root-forum.cern.ch/u/Y.S.Zhang)\
**Replies:** 9\
**Last updated:** [November 19, 2021, 4:09am UTC](https://root-forum.cern.ch/t/how-to-detect-xrootd-error-and-protect-the-output/47695 "2021-11-19T04:09:37Z")

</div>

Dear experts, I iterate through files using XRootD and TChain with for (Long64\_t ientry=0; ientry\<nentries; ientry++) { auto jentry = p.LoadTree(ientry); if (jentry \< 0 && jentry != -2) { return jentry…

---

## [Need advices for the choice of Linux distribution](https://root-forum.cern.ch/t/need-advices-for-the-choice-of-linux-distribution/47719)

<div class="topic-metadata">

**Author:** [@sofia.r](https://root-forum.cern.ch/u/sofia.r)\
**Replies:** 4\
**Last updated:** [November 18, 2021, 8:59pm UTC](https://root-forum.cern.ch/t/need-advices-for-the-choice-of-linux-distribution/47719 "2021-11-18T20:59:31Z")

</div>

Hi everyone, I was wondering if Ubuntu is a good choice for Linux distribution, especially for newbies like me who are not familar at all with Linux, and who plan to use Root, Madgraph and Rivet. Thanks a lot for your …

---

## [Header files for GEANT4 application](https://root-forum.cern.ch/t/header-files-for-geant4-application/47711)

<div class="topic-metadata">

**Author:** [@cwoolfo1](https://root-forum.cern.ch/u/cwoolfo1)\
**Replies:** 1\
**Last updated:** [November 18, 2021, 10:22am UTC](https://root-forum.cern.ch/t/header-files-for-geant4-application/47711 "2021-11-18T10:22:35Z")

</div>

Hello, I am running GEANT4 with root and am having some issues resolving an error. I have specified the path of the root library for GEANT4 but I am getting the following errors when I make my sim: fatal error: TString.…

---

## [‘string\_view’ is not a member of ‘std’ error. c++ version error?](https://root-forum.cern.ch/t/string-view-is-not-a-member-of-std-error-c-version-error/47713)

<div class="topic-metadata">

**Author:** [@jwbae](https://root-forum.cern.ch/u/jwbae)\
**Replies:** 2\
**Last updated:** [November 18, 2021, 8:03am UTC](https://root-forum.cern.ch/t/string-view-is-not-a-member-of-std-error-c-version-error/47713 "2021-11-18T08:03:40Z")

</div>

\_ROOT Version:6.24 \_Platform: WSL (Ubuntu 20.04) \_Compiler: gcc 9.3.0, cmake 3.16.3 Dear all, Hi. I’m trying to compile geant4 example written with ROOT. But I encountered following errors. It looks like an error of …

---

## [Faster way to Load Libraries and Precompile .cpp files?](https://root-forum.cern.ch/t/faster-way-to-load-libraries-and-precompile-cpp-files/47698)

<div class="topic-metadata">

**Author:** [@andrew](https://root-forum.cern.ch/u/andrew)\
**Replies:** 4\
**Last updated:** [November 17, 2021, 3:40pm UTC](https://root-forum.cern.ch/t/faster-way-to-load-libraries-and-precompile-cpp-files/47698 "2021-11-17T15:40:52Z")

</div>

Hi everyone, In order for my macros to run properly on ROOT, I have to load a library and compile a .cpp file (that defines class functions of a .hpp header). I don’t like to launch ROOT and load both manually everytime…

---

## [Integrating a function using TF1](https://root-forum.cern.ch/t/integrating-a-function-using-tf1/47691)

<div class="topic-metadata">

**Author:** [@SarahHamad](https://root-forum.cern.ch/u/SarahHamad)\
**Replies:** 3\
**Last updated:** [November 17, 2021, 3:25pm UTC](https://root-forum.cern.ch/t/integrating-a-function-using-tf1/47691 "2021-11-17T15:25:31Z")

</div>

I am trying to plot a function f(t)=f1(t)/f2(t) where f1 is a gaussian and f2 contains an integral. How can I use TF1 to integrate the following function from 0 to t: a\*exp(-0.5\*((x-280)/10)\*\*2)) dx Thank you

---

## [How to setup Xming in Ubuntu on windows 10](https://root-forum.cern.ch/t/how-to-setup-xming-in-ubuntu-on-windows-10/47693)

<div class="topic-metadata">

**Author:** [@SarahHamad](https://root-forum.cern.ch/u/SarahHamad)\
**Replies:** 3\
**Last updated:** [November 17, 2021, 3:01pm UTC](https://root-forum.cern.ch/t/how-to-setup-xming-in-ubuntu-on-windows-10/47693 "2021-11-17T15:01:31Z")

</div>

I installed ROOT on Windows 10 using Ubuntu, however, I am having trouble setting up Xming. I tried adding commands I saw online to setup Xming for display but I am always getting the error: Can’t open display: localhost…

---

## [Root Projects in Google Summer Of Code](https://root-forum.cern.ch/t/root-projects-in-google-summer-of-code/47648)

<div class="topic-metadata">

**Author:** [@Sayandeep\_Ghosh](https://root-forum.cern.ch/u/Sayandeep_Ghosh)\
**Replies:** 3\
**Last updated:** [November 15, 2021, 6:10pm UTC](https://root-forum.cern.ch/t/root-projects-in-google-summer-of-code/47648 "2021-11-15T18:10:03Z")

</div>

Hi, I want to know whether it is a necessity to use Linux operating system for all the big root projects like the previous projects of google summer of code, or it can be done comfortably using Linux subsystem in windows…

---

## [Root 5.34 error: Error in \<TApplication::TApplication\>: only one instance of TApplication allowed](https://root-forum.cern.ch/t/root-5-34-error-error-in-tapplication-tapplication-only-one-instance-of-tapplication-allowed/33723)

<div class="topic-metadata">

**Author:** [@babintsev](https://root-forum.cern.ch/u/babintsev)\
**Replies:** 8\
**Last updated:** [November 15, 2021, 4:45pm UTC](https://root-forum.cern.ch/t/root-5-34-error-error-in-tapplication-tapplication-only-one-instance-of-tapplication-allowed/33723 "2021-11-15T16:45:42Z")

</div>

Hello, I have problem with root-5.34 : I cannot compile any program here !? I use UBUNTU-14, 32 bits uname -a Linux phpc55 3.13.0-168-generic #218-Ubuntu SMP Thu Mar 14 16:55:19 UTC 2019 i686 i686 i686 GNU/Linux Exa…

---

## [Using TControlBar to show event by event](https://root-forum.cern.ch/t/using-tcontrolbar-to-show-event-by-event/47646)

<div class="topic-metadata">

**Author:** [@Karl007](https://root-forum.cern.ch/u/Karl007)\
**Replies:** 2\
**Last updated:** [November 13, 2021, 2:03pm UTC](https://root-forum.cern.ch/t/using-tcontrolbar-to-show-event-by-event/47646 "2021-11-13T14:03:28Z")

</div>

Hi, I am using TControlBar to show event by event (entry by entry if you like). I already have a function called “show\_entry” and I am trying to call that function inside control bar to make an interactive session. For e…

---

## [TRatioPlot error](https://root-forum.cern.ch/t/tratioplot-error/47618)

<div class="topic-metadata">

**Author:** [@paulan](https://root-forum.cern.ch/u/paulan)\
**Replies:** 4\
**Last updated:** [November 11, 2021, 12:20pm UTC](https://root-forum.cern.ch/t/tratioplot-error/47618 "2021-11-11T12:20:19Z")

</div>

Hi everyone, I need to plot the difference between my data in histogram and the fitting curve. My fit function is a sum of gaussian and landau functions defined over two separate ranges. I am using TRatioPlot but I get…

---

## [Start ROOT without having to source thisroot.sh](https://root-forum.cern.ch/t/start-root-without-having-to-source-thisroot-sh/47624)

<div class="topic-metadata">

**Author:** [@mzriu](https://root-forum.cern.ch/u/mzriu)\
**Replies:** 4\
**Last updated:** [November 11, 2021, 12:08pm UTC](https://root-forum.cern.ch/t/start-root-without-having-to-source-thisroot-sh/47624 "2021-11-11T12:08:57Z")

</div>

Hi, I would like to know if there is a way to avoid sourcing thisroot.sh everytime I want to launch ROOT ? I am pretty new to Linux so the informations on the Install page of ROOT are not very clear to me… I have the l…

---

## [Fitting a gaussian distribution when given the mean and standard deviation](https://root-forum.cern.ch/t/fitting-a-gaussian-distribution-when-given-the-mean-and-standard-deviation/47598)

<div class="topic-metadata">

**Author:** [@SarahHamad](https://root-forum.cern.ch/u/SarahHamad)\
**Replies:** 2\
**Last updated:** [November 10, 2021, 4:12pm UTC](https://root-forum.cern.ch/t/fitting-a-gaussian-distribution-when-given-the-mean-and-standard-deviation/47598 "2021-11-10T16:12:15Z")

</div>

\_what functions do we use if we want to fit a gaussian when given standard deviation and mean on pyroot?

---

## [Loop over all events within RDataFrame](https://root-forum.cern.ch/t/loop-over-all-events-within-rdataframe/47599)

<div class="topic-metadata">

**Author:** [@Karl007](https://root-forum.cern.ch/u/Karl007)\
**Replies:** 5\
**Last updated:** [November 10, 2021, 1:27pm UTC](https://root-forum.cern.ch/t/loop-over-all-events-within-rdataframe/47599 "2021-11-10T13:27:06Z")

</div>

Hi, is it possible to loop over all events and show the “inserted event” in some sort of an interactive way. I tried: auto all\_events = df.Filter("EventNumber \> 0 "); for i in all\_events {}.... // not sure what to pu…

---

## [Installing ROOT on Ubuntu VMware workstation](https://root-forum.cern.ch/t/installing-root-on-ubuntu-vmware-workstation/47603)

<div class="topic-metadata">

**Author:** [@vasco](https://root-forum.cern.ch/u/vasco)\
**Replies:** 1\
**Last updated:** [November 10, 2021, 9:14am UTC](https://root-forum.cern.ch/t/installing-root-on-ubuntu-vmware-workstation/47603 "2021-11-10T09:14:49Z")

</div>

Hello. I\`m trying to install ROOT at my Ubuntu VMware workstation but I got an error. After running the comand: cmake --build . – install -j4; appear the following masege: \[ 57%\] Built target Unix make: \*\*\* \[Makefile:…

---

## [Making an histogram showing bin content from data file](https://root-forum.cern.ch/t/making-an-histogram-showing-bin-content-from-data-file/47607)

<div class="topic-metadata">

**Author:** [@Alberto\_Navarro](https://root-forum.cern.ch/u/Alberto_Navarro)\
**Replies:** 4\
**Last updated:** [November 10, 2021, 8:04am UTC](https://root-forum.cern.ch/t/making-an-histogram-showing-bin-content-from-data-file/47607 "2021-11-10T08:04:08Z")

</div>

Hello, I have a set of data in a text file with three columns and I want to make a plot/histogram like the one shown below I would appreciate some help to identify this kind of plot and the ROOT class I should use, s…

---

## [Draw ratio between 2 TEfficiency object](https://root-forum.cern.ch/t/draw-ratio-between-2-tefficiency-object/47514)

<div class="topic-metadata">

**Author:** [@Sam12](https://root-forum.cern.ch/u/Sam12)\
**Replies:** 3\
**Last updated:** [November 9, 2021, 8:59pm UTC](https://root-forum.cern.ch/t/draw-ratio-between-2-tefficiency-object/47514 "2021-11-09T20:59:29Z")

</div>

Hi everyone, I have 2 TEfficiency plots and i want to take the ratio between them. Since i have TEfficiency object i can’t use the Divide method. What is the solution to these problem? TPad\* pad1 = (TPad\*)c-\>cd(); pa…

---

## [Removing time stamp on root plots](https://root-forum.cern.ch/t/removing-time-stamp-on-root-plots/47588)

<div class="topic-metadata">

**Author:** [@Bassam](https://root-forum.cern.ch/u/Bassam)\
**Replies:** 11\
**Last updated:** [November 8, 2021, 7:28pm UTC](https://root-forum.cern.ch/t/removing-time-stamp-on-root-plots/47588 "2021-11-08T19:28:11Z")

</div>

Hello experts, I was wondering if there is a way to get rid of the time stamp that shows up by default when generating a root plot? Please, see the attached example plot below. I am referring to the “Mon Nov 8 11:54:25 …

---

## [Changing leaf in TTree ROOT](https://root-forum.cern.ch/t/changing-leaf-in-ttree-root/47577)

<div class="topic-metadata">

**Author:** [@Kirill](https://root-forum.cern.ch/u/Kirill)\
**Replies:** 5\
**Last updated:** [November 8, 2021, 5:02pm UTC](https://root-forum.cern.ch/t/changing-leaf-in-ttree-root/47577 "2021-11-08T17:02:12Z")

</div>

Hi all, i am trying to use ROOT for GEANT4 analysis. I am saving a root file with counts as a leaf, and Energy deposit, x and y as a branches. It is easy to use analysis in this way, to cut off specific x’s and y’s when …

---

## [CompilerVersion of binary distribution](https://root-forum.cern.ch/t/compilerversion-of-binary-distribution/47478)

<div class="topic-metadata">

**Author:** [@nazar\_sokour](https://root-forum.cern.ch/u/nazar_sokour)\
**Replies:** 4\
**Last updated:** [November 8, 2021, 10:39am UTC](https://root-forum.cern.ch/t/compilerversion-of-binary-distribution/47478 "2021-11-08T10:39:27Z")

</div>

Windows 10, x64, root\_v6.24.06 Dear people, I had installed 6.24.06 using downloaded binary distribution. After running root, I’ve tried gSystem-\>GetBuildCompiler() and get the next answer: (const char \*) “C:/Program …

---

## [Problem with TVector3 Rotation around a vector v1.Rotate(TMath::Pi()/4, v2); // rotation around v2](https://root-forum.cern.ch/t/problem-with-tvector3-rotation-around-a-vector-v1-rotate-tmath-pi-4-v2-rotation-around-v2/47423)

<div class="topic-metadata">

**Author:** [@Fabio\_Crespi](https://root-forum.cern.ch/u/Fabio_Crespi)\
**Replies:** 9\
**Last updated:** [November 8, 2021, 7:53am UTC](https://root-forum.cern.ch/t/problem-with-tvector3-rotation-around-a-vector-v1-rotate-tmath-pi-4-v2-rotation-around-v2/47423 "2021-11-08T07:53:26Z")

</div>

For some reason when I use the “Rotate” member function of a TVector3 the result is always a TVector3 “v3” with all the 3 coordinates equal to zero. I get the warning in TRotation::Rotate(angle,axis): zero axis. Thi…

---

## [ROOT macros compilation](https://root-forum.cern.ch/t/root-macros-compilation/47539)

<div class="topic-metadata">

**Author:** [@Henry\_Billiot](https://root-forum.cern.ch/u/Henry_Billiot)\
**Replies:** 7\
**Last updated:** [November 7, 2021, 5:26pm UTC](https://root-forum.cern.ch/t/root-macros-compilation/47539 "2021-11-07T17:26:36Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.24.04 Platform: MacOS Monterey Compiler: gcc 13.0.0 I am still quite new to ROOT and have some general questions as well as a s…

---

## [Dataloader says tree has 0 events](https://root-forum.cern.ch/t/dataloader-says-tree-has-0-events/47544)

<div class="topic-metadata">

**Author:** [@Dan](https://root-forum.cern.ch/u/Dan)\
**Replies:** 2\
**Last updated:** [November 5, 2021, 4:12pm UTC](https://root-forum.cern.ch/t/dataloader-says-tree-has-0-events/47544 "2021-11-05T16:12:37Z")

</div>

ROOT Version: 6.24 Platform: VSCode Compiler: macOS C++ Compiler Hi, I’m trying to practice the basics of Root. I followed along with the TMVAClassification tutorial, and I got that to work. Now, I’m trying to use …

---

## [Makefile error: root-config --libs --cflags](https://root-forum.cern.ch/t/makefile-error-root-config-libs-cflags/47537)

<div class="topic-metadata">

**Author:** [@MicheleScattola](https://root-forum.cern.ch/u/MicheleScattola)\
**Replies:** 2\
**Last updated:** [November 4, 2021, 4:24pm UTC](https://root-forum.cern.ch/t/makefile-error-root-config-libs-cflags/47537 "2021-11-04T16:24:25Z")

</div>

\#Root version and compilers at the bottom of the post thanks in advance for any help, I am fairly new to ROOT since we are starting to use it in my university class so forgive me if I did any basic mistake. I tried to t…

---

## [RDataFrame.Snapshot never ends](https://root-forum.cern.ch/t/rdataframe-snapshot-never-ends/47525)

<div class="topic-metadata">

**Author:** [@caetano.eirea](https://root-forum.cern.ch/u/caetano.eirea)\
**Replies:** 2\
**Last updated:** [November 4, 2021, 10:47am UTC](https://root-forum.cern.ch/t/rdataframe-snapshot-never-ends/47525 "2021-11-04T10:47:22Z")

</div>

Hi all, I just wanted to ask why this simple code is not working. As a part of a bigger project I wanted to read a ntuple, fiter it and save it to another .root file using RDataFrame. Snapshot, but the creation of the tu…

---

## [Slow Multi-thread Integrals](https://root-forum.cern.ch/t/slow-multi-thread-integrals/47518)

<div class="topic-metadata">

**Author:** [@Dyn0402](https://root-forum.cern.ch/u/Dyn0402)\
**Replies:** 1\
**Last updated:** [November 4, 2021, 10:33am UTC](https://root-forum.cern.ch/t/slow-multi-thread-integrals/47518 "2021-11-04T10:33:56Z")

</div>

I’ve found that while multi-threading on Ubuntu TF1::IntegralOneDim integration slows down multi-job processes to a single thread speed. Looking further, it seems this is only true when using gsl integrators. I believe t…

---

## [Dear experts, Can you suggest me the PDF use for fit of the #DeltaE distribution?](https://root-forum.cern.ch/t/dear-experts-can-you-suggest-me-the-pdf-use-for-fit-of-the-deltae-distribution/47477)

<div class="topic-metadata">

**Author:** [@Manish](https://root-forum.cern.ch/u/Manish)\
**Replies:** 3\
**Last updated:** [November 3, 2021, 4:40pm UTC](https://root-forum.cern.ch/t/dear-experts-can-you-suggest-me-the-pdf-use-for-fit-of-the-deltae-distribution/47477 "2021-11-03T16:40:12Z")

</div>

Dear experts, I tried to fit the peaking background coming in #DeltaE distribution in decay mode. But due to the small statistics unable to fix the PDF. Can you suggest me from which PDF it will be fit? For easy refrenc…

---

## [Control C in gdb ignored](https://root-forum.cern.ch/t/control-c-in-gdb-ignored/47496)

<div class="topic-metadata">

**Author:** [@perev](https://root-forum.cern.ch/u/perev)\
**Replies:** 3\
**Last updated:** [November 2, 2021, 3:33pm UTC](https://root-forum.cern.ch/t/control-c-in-gdb-ignored/47496 "2021-11-02T15:33:54Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version: 6.16.00 \_Platform: Linux \_Compiler: gcc

---

## [Easy way to convert an int to a string?](https://root-forum.cern.ch/t/easy-way-to-convert-an-int-to-a-string/47503)

<div class="topic-metadata">

**Author:** [@mzriu](https://root-forum.cern.ch/u/mzriu)\
**Replies:** 2\
**Last updated:** [November 2, 2021, 1:44pm UTC](https://root-forum.cern.ch/t/easy-way-to-convert-an-int-to-a-string/47503 "2021-11-02T13:44:41Z")

</div>

Hi, I would like to know if there are any easy ways to convert an Int\_t into a TString or a string in ROOT ? In my case : for(Int\_t i = 1; i \<= 84; i++) { h\[i\] = (TH1F\*)f-\>Get("h"+TString(i)); } I would like to c…

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

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