# Newbie

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

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

---

## [The equations of the pre-defined Chebyshev polynomials](https://root-forum.cern.ch/t/the-equations-of-the-pre-defined-chebyshev-polynomials/53629)

<div class="topic-metadata">

**Author:** [@Jackhammer0102](https://root-forum.cern.ch/u/Jackhammer0102)\
**Replies:** 1\
**Last updated:** [February 15, 2023, 6:50am UTC](https://root-forum.cern.ch/t/the-equations-of-the-pre-defined-chebyshev-polynomials/53629 "2023-02-15T06:50:02Z")

</div>

Hi, ROOT experts, If I were to show people, in a presentation, the equations of pre-defined functions cheb0, cheb1, cheb2, cheb3, …, and cheb9, what would be the equations? Thank you!

---

## [TLegend not taking TF1 line color](https://root-forum.cern.ch/t/tlegend-not-taking-tf1-line-color/53563)

<div class="topic-metadata">

**Author:** [@allanfgodoi](https://root-forum.cern.ch/u/allanfgodoi)\
**Replies:** 7\
**Last updated:** [February 11, 2023, 12:17am UTC](https://root-forum.cern.ch/t/tlegend-not-taking-tf1-line-color/53563 "2023-02-11T00:17:06Z")

</div>

Greetings. I have a multigraph with 4 graphs with a fit with a different color within. Every fit is set like the model: fit1 = TF1("fit1", "pol1") fit1.SetLineColor(kRed) But when I call the legend with legend = TLeg…

---

## [Opening a TFile after initialization](https://root-forum.cern.ch/t/opening-a-tfile-after-initialization/53568)

<div class="topic-metadata">

**Author:** [@JackLindon](https://root-forum.cern.ch/u/JackLindon)\
**Replies:** 1\
**Last updated:** [February 10, 2023, 5:35pm UTC](https://root-forum.cern.ch/t/opening-a-tfile-after-initialization/53568 "2023-02-10T17:35:55Z")

</div>

I need to open a TFile after it is already initialized. I thought I could just do: TFile f\_file; f\_file.Open(fileName.c\_str()); However this doesn’t work, testing TFile f\_file(fileName.c\_str()); std::cout \<\< f\_file.…

---

## [Please explain \`isptr\` usage in \`TTree::SetBranchAddress\`](https://root-forum.cern.ch/t/please-explain-isptr-usage-in-ttree-setbranchaddress/53571)

<div class="topic-metadata">

**Author:** [@ctacke](https://root-forum.cern.ch/u/ctacke)\
**Replies:** 1\
**Last updated:** [February 10, 2023, 5:03pm UTC](https://root-forum.cern.ch/t/please-explain-isptr-usage-in-ttree-setbranchaddress/53571 "2023-02-10T17:03:52Z")

</div>

I would like to understand some of ROOTs internal code (trying to debug our TTree usage). I think, the TTree::SetBranchAddress(name, T\*) overload will finally call this code: Int\_t TTree::SetBranchAddress(const char\* …

---

## [TF1 with "sqrt" and "erf" will not draw (Python)](https://root-forum.cern.ch/t/tf1-with-sqrt-and-erf-will-not-draw-python/53561)

<div class="topic-metadata">

**Author:** [@RNugent](https://root-forum.cern.ch/u/RNugent)\
**Replies:** 5\
**Last updated:** [February 10, 2023, 4:10pm UTC](https://root-forum.cern.ch/t/tf1-with-sqrt-and-erf-will-not-draw-python/53561 "2023-02-10T16:10:13Z")

</div>

Hello all, I’ve been familiarizing myself with the TF1 class and have been trying to create a function with a “sqrt” and “erf” that both have a set parameter. My problem is when I go to draw the function with TCanvas() …

---

## [Cannot get TF1 with Sqrt() to plot](https://root-forum.cern.ch/t/cannot-get-tf1-with-sqrt-to-plot/53559)

<div class="topic-metadata">

**Author:** [@izzy](https://root-forum.cern.ch/u/izzy)\
**Replies:** 4\
**Last updated:** [February 10, 2023, 3:16pm UTC](https://root-forum.cern.ch/t/cannot-get-tf1-with-sqrt-to-plot/53559 "2023-02-10T15:16:23Z")

</div>

ROOT Version: JupyROOT 6.22/06 Platform: macOS Ventura 13.2 Compiler: Jupyter Lab I am making TF1 objects from functions in python 3.11.0. I have been unable to get a sqrt to work, either via Sqrt() or Pow(x,1/2). I…

---

## [TRandom3 seed number](https://root-forum.cern.ch/t/trandom3-seed-number/53530)

<div class="topic-metadata">

**Author:** [@SergeyAmirkhanyan](https://root-forum.cern.ch/u/SergeyAmirkhanyan)\
**Replies:** 1\
**Last updated:** [February 10, 2023, 12:23pm UTC](https://root-forum.cern.ch/t/trandom3-seed-number/53530 "2023-02-10T12:23:16Z")

</div>

Tell please what is sense of seed number here TRandom3 rndm(1) ? What does it affect ?

---

## [Thisroot.csh gives setenv error, unless included in the ~/.cshrc file](https://root-forum.cern.ch/t/thisroot-csh-gives-setenv-error-unless-included-in-the-cshrc-file/43567)

<div class="topic-metadata">

**Author:** [@pauln](https://root-forum.cern.ch/u/pauln)\
**Replies:** 2\
**Last updated:** [February 10, 2023, 11:22am UTC](https://root-forum.cern.ch/t/thisroot-csh-gives-setenv-error-unless-included-in-the-cshrc-file/43567 "2023-02-10T11:22:03Z")

</div>

Hi, I am trying to declutter my environment after hitting some issues. One such problem is with ROOT and Jupyter, where something was killing Jupyter Lab. I previously had: \`\`setenv ROOTSYS “/cern/root/v6.22.03g9/” …

---

## [After energy calibration, some histogram bins are empty](https://root-forum.cern.ch/t/after-energy-calibration-some-histogram-bins-are-empty/53539)

<div class="topic-metadata">

**Author:** [@LUSI2323](https://root-forum.cern.ch/u/LUSI2323)\
**Replies:** 4\
**Last updated:** [February 10, 2023, 8:32am UTC](https://root-forum.cern.ch/t/after-energy-calibration-some-histogram-bins-are-empty/53539 "2023-02-10T08:32:12Z")

</div>

Hello everybody! I am quite a beginner with ROOT and I have some problems with the energy calibration of my gamma spectra. Hope you can help me. I use PyROOT. Below you can find the code I am using: For reference,…

---

## [RDataFrame: TH1DModel tricks to use less memory](https://root-forum.cern.ch/t/rdataframe-th1dmodel-tricks-to-use-less-memory/53553)

<div class="topic-metadata">

**Author:** [@tancredi](https://root-forum.cern.ch/u/tancredi)\
**Replies:** 1\
**Last updated:** [February 9, 2023, 7:22pm UTC](https://root-forum.cern.ch/t/rdataframe-th1dmodel-tricks-to-use-less-memory/53553 "2023-02-09T19:22:02Z")

</div>

Hello, I use RDataFrame in my analysis and I have a large number of systematic uncertainties (O(1500)). I implemented them via the Vary Method. code: model= ROOT.RDF.TH1DModel(‘hname’,‘Title’, len(ptbins\[0\])-1, ptbin…

---

## [RDataFrame apply method on vector of LorentzVectors](https://root-forum.cern.ch/t/rdataframe-apply-method-on-vector-of-lorentzvectors/53534)

<div class="topic-metadata">

**Author:** [@tancredi](https://root-forum.cern.ch/u/tancredi)\
**Replies:** 4\
**Last updated:** [February 8, 2023, 5:25pm UTC](https://root-forum.cern.ch/t/rdataframe-apply-method-on-vector-of-lorentzvectors/53534 "2023-02-08T17:25:07Z")

</div>

I can not figure out what is the correct syntax to apply a method on a RVecROOT::Math::PtEtaPhiEVector\> in python. I made an example “” import ROOT import os,sys if name == “main”: path = “root://eospublic.cern.c…

---

## [Tfile.get() method parameter](https://root-forum.cern.ch/t/tfile-get-method-parameter/53507)

<div class="topic-metadata">

**Author:** [@MITSUKI000](https://root-forum.cern.ch/u/MITSUKI000)\
**Replies:** 2\
**Last updated:** [February 8, 2023, 2:03pm UTC](https://root-forum.cern.ch/t/tfile-get-method-parameter/53507 "2023-02-08T14:03:16Z")

</div>

import ROOT as r outFile = r.TFile("outfile.root", "RECREATE") tree = openFile.Get('mini') Hi, I’m confused about this 'mini' parameter here, also what is the type of tree? As far as I know the Get() method can extract…

---

## [Plotting Ratioplots for branches from multiple Root files](https://root-forum.cern.ch/t/plotting-ratioplots-for-branches-from-multiple-root-files/53517)

<div class="topic-metadata">

**Author:** [@stabbass](https://root-forum.cern.ch/u/stabbass)\
**Replies:** 1\
**Last updated:** [February 8, 2023, 11:39am UTC](https://root-forum.cern.ch/t/plotting-ratioplots-for-branches-from-multiple-root-files/53517 "2023-02-08T11:39:38Z")

</div>

Hello All, I am new to Root and python plotting. I am trying to plot histograms from multiple root files. Each Root file has tTree(Y) with one branch named X. I would like to plot the original histograms along with rati…

---

## [Rebinning Histograms](https://root-forum.cern.ch/t/rebinning-histograms/53272)

<div class="topic-metadata">

**Author:** [@amccarrick](https://root-forum.cern.ch/u/amccarrick)\
**Replies:** 3\
**Last updated:** [February 7, 2023, 3:11pm UTC](https://root-forum.cern.ch/t/rebinning-histograms/53272 "2023-02-07T15:11:11Z")

</div>

Hi all, I am looking to rebin a histogram to have a narrower bin width (from ~5 to 0.5). Is there a way to do this without filling the histogram from scratch? Thank you! ROOT Version: 6.26/06 Platform: MacOS

---

## [XRootD and Tokens](https://root-forum.cern.ch/t/xrootd-and-tokens/53503)

<div class="topic-metadata">

**Author:** [@vitlacil](https://root-forum.cern.ch/u/vitlacil)\
**Replies:** 1\
**Last updated:** [February 7, 2023, 3:27pm UTC](https://root-forum.cern.ch/t/xrootd-and-tokens/53503 "2023-02-07T15:27:47Z")

</div>

Hi, I’m trying to configure XRootD standalone (5.5.1) server with tokens, but I’m hitting permission denied error. If there is someone who has experience with this configuration, help would be appreciated. My guess is …

---

## [Generate random numbers](https://root-forum.cern.ch/t/generate-random-numbers/35183)

<div class="topic-metadata">

**Author:** [@jbmagallanes](https://root-forum.cern.ch/u/jbmagallanes)\
**Replies:** 7\
**Last updated:** [August 1, 2019, 3:40am UTC](https://root-forum.cern.ch/t/generate-random-numbers/35183 "2019-08-01T03:40:44Z")

</div>

(1) How do I generate random numbers in ROOT? I wanted to use random numbers between 2.5 and 5.0 but with more favor on the 5.0 than 2.5. Where numbers closer to 5.0 occur twice as those closer to 2.5. (2) What do you m…

---

## [Building ROOT from source: symbol(s) not found for architecture arm64](https://root-forum.cern.ch/t/building-root-from-source-symbol-s-not-found-for-architecture-arm64/53479)

<div class="topic-metadata">

**Author:** [@Jonathan\_Baltazar](https://root-forum.cern.ch/u/Jonathan_Baltazar)\
**Replies:** 2\
**Last updated:** [February 7, 2023, 10:01am UTC](https://root-forum.cern.ch/t/building-root-from-source-symbol-s-not-found-for-architecture-arm64/53479 "2023-02-07T10:01:40Z")

</div>

Hi, I am currently building ROOT from source, but the build fails at 100%. I get the following warning: ld: warning: ignoring file /Users/opt/anaconda3/lib/libpython3.8.dylib, building for macOS-arm64 but attempting to …

---

## [How to add a image in background of Highlight connect plot?](https://root-forum.cern.ch/t/how-to-add-a-image-in-background-of-highlight-connect-plot/53472)

<div class="topic-metadata">

**Author:** [@Durand.T](https://root-forum.cern.ch/u/Durand.T)\
**Replies:** 4\
**Last updated:** [February 6, 2023, 2:43pm UTC](https://root-forum.cern.ch/t/how-to-add-a-image-in-background-of-highlight-connect-plot/53472 "2023-02-06T14:43:33Z")

</div>

Hello, I am trying to add a background image with a Highlight connection plot, is this possible or not? If it is possible, how do I do it? In my case, I write my macro as the example “hlquantiles.C”, and I can’t find …

---

## [Void error](https://root-forum.cern.ch/t/void-error/53471)

<div class="topic-metadata">

**Author:** [@MuhammadWaqas](https://root-forum.cern.ch/u/MuhammadWaqas)\
**Replies:** 1\
**Last updated:** [February 6, 2023, 10:04am UTC](https://root-forum.cern.ch/t/void-error/53471 "2023-02-06T10:04:48Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided i have an error of this \<\<\< cling interactive line includer \>\>\>:1:1: …

---

## [Creating TTree](https://root-forum.cern.ch/t/creating-ttree/53389)

<div class="topic-metadata">

**Author:** [@lost0431](https://root-forum.cern.ch/u/lost0431)\
**Replies:** 1\
**Last updated:** [February 6, 2023, 8:05am UTC](https://root-forum.cern.ch/t/creating-ttree/53389 "2023-02-06T08:05:58Z")

</div>

Hi! I’m quite new to root and trying to create a TTree. I want to have “n” amount of branches, say 3, with one arrays of values each, 100 long. When I try to run it and view in TBrowser, the first branch has one “leaf”, …

---

## [Compilation problem of a macro](https://root-forum.cern.ch/t/compilation-problem-of-a-macro/53451)

<div class="topic-metadata">

**Author:** [@spyhunter01](https://root-forum.cern.ch/u/spyhunter01)\
**Replies:** 4\
**Last updated:** [February 3, 2023, 6:20pm UTC](https://root-forum.cern.ch/t/compilation-problem-of-a-macro/53451 "2023-02-03T18:20:30Z")

</div>

Hi experts, Could you please help me to spot the problem of compilation here? I can run the macro with .x name.cpp ; however, it doesn’t work when I run and compile with .x name.cpp++. The file was quite long, but I tr…

---

## [Create a 2D histogram from two histograms](https://root-forum.cern.ch/t/create-a-2d-histogram-from-two-histograms/53445)

<div class="topic-metadata">

**Author:** [@beg1nner](https://root-forum.cern.ch/u/beg1nner)\
**Replies:** 8\
**Last updated:** [February 3, 2023, 3:41pm UTC](https://root-forum.cern.ch/t/create-a-2d-histogram-from-two-histograms/53445 "2023-02-03T15:41:06Z")

</div>

Hi, I am wondering if there is way to create a 2D histogram from two other histograms which are stored in the root file. Mainly, I have the Muon\_eta and Muon\_phi variables, which I want to plot as a function of each oth…

---

## [Cmake error at 72%: '/Applications/Xcode.app/Contents/Developer/usr/bin/make' make: \*\*\* \[all\] Error 2](https://root-forum.cern.ch/t/cmake-error-at-72-applications-xcode-app-contents-developer-usr-bin-make-make-all-error-2/53444)

<div class="topic-metadata">

**Author:** [@Jonathan\_Baltazar](https://root-forum.cern.ch/u/Jonathan_Baltazar)\
**Replies:** 3\
**Last updated:** [February 3, 2023, 3:27pm UTC](https://root-forum.cern.ch/t/cmake-error-at-72-applications-xcode-app-contents-developer-usr-bin-make-make-all-error-2/53444 "2023-02-03T15:27:57Z")

</div>

Hi, I am trying to build ROOT from source with Pythia. When tying to execute the make -j4 command, i get the following cmake error: \[ 73%\] Built target LLVMRES CMake Error at /progs/ROOT/builtins/xrootd/XROOTD-prefix/…

---

## [How does ROOT color system works?](https://root-forum.cern.ch/t/how-does-root-color-system-works/53440)

<div class="topic-metadata">

**Author:** [@Massimo\_Girola](https://root-forum.cern.ch/u/Massimo_Girola)\
**Replies:** 6\
**Last updated:** [February 3, 2023, 1:13pm UTC](https://root-forum.cern.ch/t/how-does-root-color-system-works/53440 "2023-02-03T13:13:35Z")

</div>

Hi rooters, I am confused about how the color system works in ROOT. I have read other posts (like TColor -\> Color\_t, or How to form a Color\_t from a TColor) on the forum which didn’t help me to understand very much how…

---

## [Issue in running program in root](https://root-forum.cern.ch/t/issue-in-running-program-in-root/53419)

<div class="topic-metadata">

**Author:** [@Saradindu](https://root-forum.cern.ch/u/Saradindu)\
**Replies:** 5\
**Last updated:** [February 2, 2023, 4:32pm UTC](https://root-forum.cern.ch/t/issue-in-running-program-in-root/53419 "2023-02-02T16:32:17Z")

</div>

I am using the following command to run the program root -q sand-spill-events.0.edep.root loadEDepSim.C readEDepSim.C and getting following errors In file included from input\_line\_40:1: /home/saradindu/postdoc\_genoa/…

---

## [Fit histogram to another historgam](https://root-forum.cern.ch/t/fit-histogram-to-another-historgam/53407)

<div class="topic-metadata">

**Author:** [@LuisMiguel](https://root-forum.cern.ch/u/LuisMiguel)\
**Replies:** 4\
**Last updated:** [February 2, 2023, 12:47pm UTC](https://root-forum.cern.ch/t/fit-histogram-to-another-historgam/53407 "2023-02-02T12:47:03Z")

</div>

Hello everyone I have some experimental data and simulated data of some beta decay. I want to find out a method to scale down the experimental data and stretch or shrink it so it will fit the simulated data, and getting…

---

## [Random error with pyROOT in notebook on a Conda env](https://root-forum.cern.ch/t/random-error-with-pyroot-in-notebook-on-a-conda-env/53151)

<div class="topic-metadata">

**Author:** [@TristanM](https://root-forum.cern.ch/u/TristanM)\
**Replies:** 9\
**Last updated:** [February 1, 2023, 9:05am UTC](https://root-forum.cern.ch/t/random-error-with-pyroot-in-notebook-on-a-conda-env/53151 "2023-02-01T09:05:05Z")

</div>

Hello Root expert, I work on an analysis with pyroot and notebook into a Conda environnement (I have installed Conda from Homebrew and ROOT with Conda install) on my machine and I have something like a random issue with…

---

## [Problem with the stacking/scaling(?) histogram output after peak matching](https://root-forum.cern.ch/t/problem-with-the-stacking-scaling-histogram-output-after-peak-matching/53379)

<div class="topic-metadata">

**Author:** [@thegame](https://root-forum.cern.ch/u/thegame)\
**Replies:** 1\
**Last updated:** [February 1, 2023, 7:01am UTC](https://root-forum.cern.ch/t/problem-with-the-stacking-scaling-histogram-output-after-peak-matching/53379 "2023-02-01T07:01:21Z")

</div>

Hi all, I’m trying to match six histogram peaks with a reference histogram (i=2) and try to plot them in the same frame with THStack. the scaling factor is calculated in this way, for (int i = 0; i \< 6; i++) { if (…

---

## [Regarding the installation of Root](https://root-forum.cern.ch/t/regarding-the-installation-of-root/53315)

<div class="topic-metadata">

**Author:** [@Lovish\_Sharma](https://root-forum.cern.ch/u/Lovish_Sharma)\
**Replies:** 4\
**Last updated:** [January 31, 2023, 12:25am UTC](https://root-forum.cern.ch/t/regarding-the-installation-of-root/53315 "2023-01-31T00:25:43Z")

</div>

Can root be used in linux setup in a virtual machine? if yes then what should be the configuration of virtual box and if not how much space I should give to the linux in dual-boot mode ? (P.S.- I did try to run root on t…

---

## [RDataframe stopre result of VariationsFor() in root file](https://root-forum.cern.ch/t/rdataframe-stopre-result-of-variationsfor-in-root-file/53289)

<div class="topic-metadata">

**Author:** [@tancredi](https://root-forum.cern.ch/u/tancredi)\
**Replies:** 2\
**Last updated:** [January 30, 2023, 3:14pm UTC](https://root-forum.cern.ch/t/rdataframe-stopre-result-of-variationsfor-in-root-file/53289 "2023-01-30T15:14:17Z")

</div>

Hello, is there an easy way to store the result of ROOT::RDF::Experimental::RResultMap hx = ROOT::RDF::Experimental::VariationsFor(nominal\_hx); (see manual ROOT: ROOT::RDataFrame Class Reference) to a root file ? I …

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

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