# Newbie

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

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

---

## [Setting up the ROOT Environment on vscode-server](https://root-forum.cern.ch/t/setting-up-the-root-environment-on-vscode-server/62163)

<div class="topic-metadata">

**Author:** [@lost\_soul\_519](https://root-forum.cern.ch/u/lost_soul_519)\
**Replies:** 2\
**Last updated:** [November 8, 2024, 1:05pm UTC](https://root-forum.cern.ch/t/setting-up-the-root-environment-on-vscode-server/62163 "2024-11-08T13:05:01Z")

</div>

Hi, I am having some trouble with my environment on the Uni’s server where I am trying to work. I want to use pyroot, for which I use the following script. source /user/software/root/rootSetup.sh 6.24.06 # Root is bui…

---

## [Adding a column to dataframe without changing its name](https://root-forum.cern.ch/t/adding-a-column-to-dataframe-without-changing-its-name/62174)

<div class="topic-metadata">

**Author:** [@amansas](https://root-forum.cern.ch/u/amansas)\
**Replies:** 1\
**Last updated:** [November 8, 2024, 10:59am UTC](https://root-forum.cern.ch/t/adding-a-column-to-dataframe-without-changing-its-name/62174 "2024-11-08T10:59:09Z")

</div>

Hello. So I was playing around with data frames and wanted to know how I can add columns to my existing dataframe without having to create/define a new one. For eg. let’s say I have a dataframe df0 with the columns x,y,z …

---

## [Using defaulted ctor on TObject derived classes?](https://root-forum.cern.ch/t/using-defaulted-ctor-on-tobject-derived-classes/59548)

<div class="topic-metadata">

**Author:** [@ctacke](https://root-forum.cern.ch/u/ctacke)\
**Replies:** 7\
**Last updated:** [November 7, 2024, 4:27pm UTC](https://root-forum.cern.ch/t/using-defaulted-ctor-on-tobject-derived-classes/59548 "2024-11-07T16:27:12Z")

</div>

From the below Pull Request on Github I learned that using = default; to create a defaulted ctor for TNamed introduces some issues. I have not fully understood those. This confuses me somewhat: If I create a normal u…

---

## [Fit not matching the given data](https://root-forum.cern.ch/t/fit-not-matching-the-given-data/62158)

<div class="topic-metadata">

**Author:** [@amansas](https://root-forum.cern.ch/u/amansas)\
**Replies:** 3\
**Last updated:** [November 7, 2024, 11:45am UTC](https://root-forum.cern.ch/t/fit-not-matching-the-given-data/62158 "2024-11-07T11:45:05Z")

</div>

Hello. I’ve been trying to perform di-muon analysis using CMS open data taken from here. I’m trying to isolate the resonance peaks of the invariant mass and fit them to find their mean, and to compare this with the given…

---

## [Incomprehensible errors when running code from opendata tutorial for dimuon analysis](https://root-forum.cern.ch/t/incomprehensible-errors-when-running-code-from-opendata-tutorial-for-dimuon-analysis/62150)

<div class="topic-metadata">

**Author:** [@amansas](https://root-forum.cern.ch/u/amansas)\
**Replies:** 4\
**Last updated:** [November 6, 2024, 12:35pm UTC](https://root-forum.cern.ch/t/incomprehensible-errors-when-running-code-from-opendata-tutorial-for-dimuon-analysis/62150 "2024-11-06T12:35:19Z")

</div>

Hello there. I’m following a tutorial on CMS open data analysis from here. I’m running into a bunch of error while running some code and I am unable to understand them. Would greatly appreciate any help on understanding …

---

## [Bi-exponential Fit getting fails value of chi-square is too large](https://root-forum.cern.ch/t/bi-exponential-fit-getting-fails-value-of-chi-square-is-too-large/62134)

<div class="topic-metadata">

**Author:** [@Rehmaniftikhar](https://root-forum.cern.ch/u/Rehmaniftikhar)\
**Replies:** 5\
**Last updated:** [November 5, 2024, 6:23pm UTC](https://root-forum.cern.ch/t/bi-exponential-fit-getting-fails-value-of-chi-square-is-too-large/62134 "2024-11-05T18:23:06Z")

</div>

I am focusing on analyzing the global time to extract both the decay and rise times by applying a bi-exponential fit. However, I am encountering some challenges with the fitting process. Specifically, the chi-squared val…

---

## [Error in compilation due to path issues](https://root-forum.cern.ch/t/error-in-compilation-due-to-path-issues/62128)

<div class="topic-metadata">

**Author:** [@AD\_01](https://root-forum.cern.ch/u/AD_01)\
**Replies:** 2\
**Last updated:** [November 2, 2024, 5:51pm UTC](https://root-forum.cern.ch/t/error-in-compilation-due-to-path-issues/62128 "2024-11-02T17:51:58Z")

</div>

\_ROOT Version:\_6.30.06 Platform: linux Compiler: g++ I installed fastjet contrib through rivet. I tried to run an example code from the package but it had an error in compilation. Location of the file (softdrop\_test)…

---

## [Bus error while trying to plot](https://root-forum.cern.ch/t/bus-error-while-trying-to-plot/61954)

<div class="topic-metadata">

**Author:** [@boon\_toor](https://root-forum.cern.ch/u/boon_toor)\
**Replies:** 11\
**Last updated:** [October 30, 2024, 9:39pm UTC](https://root-forum.cern.ch/t/bus-error-while-trying-to-plot/61954 "2024-10-30T21:39:47Z")

</div>

Unsure if this is an issue with ROOT or macOS Sequoia, but I thought this may help others facing the same issue. ROOT (6.22.06, 6.26.06, 6.28.06) was working fine while I was still on macOS Sonoma on my M1 MacBook Pro, …

---

## [Compile errors with Delphes and ExRootAnalysis](https://root-forum.cern.ch/t/compile-errors-with-delphes-and-exrootanalysis/62020)

<div class="topic-metadata">

**Author:** [@Dyson\_Kennedy](https://root-forum.cern.ch/u/Dyson_Kennedy)\
**Replies:** 3\
**Last updated:** [October 28, 2024, 6:07pm UTC](https://root-forum.cern.ch/t/compile-errors-with-delphes-and-exrootanalysis/62020 "2024-10-28T18:07:23Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version:6 \_Platform: UBUNTU 20.04 \_Compiler:g++ The cluster I’m working on recently updated to ubuntu20.04 and I’m trying to get everythi…

---

## [How to make LEGO plots using my own table data?](https://root-forum.cern.ch/t/how-to-make-lego-plots-using-my-own-table-data/62018)

<div class="topic-metadata">

**Author:** [@WeiZheng](https://root-forum.cern.ch/u/WeiZheng)\
**Replies:** 1\
**Last updated:** [October 26, 2024, 5:40am UTC](https://root-forum.cern.ch/t/how-to-make-lego-plots-using-my-own-table-data/62018 "2024-10-26T05:40:56Z")

</div>

Hi, I have a 2D data set which is saved as .txt file. The dimension is 17x24. When I use the following command lines to load the data and assign the data to the pointer hist like this std::ifstream input\_file("mytxt.tx…

---

## [Could someone help me understand the codes?](https://root-forum.cern.ch/t/could-someone-help-me-understand-the-codes/62017)

<div class="topic-metadata">

**Author:** [@WeiZheng](https://root-forum.cern.ch/u/WeiZheng)\
**Replies:** 1\
**Last updated:** [October 25, 2024, 9:38pm UTC](https://root-forum.cern.ch/t/could-someone-help-me-understand-the-codes/62017 "2024-10-25T21:38:02Z")

</div>

Here are the codes: TCanvas \*c=new TCanvas(c,name,600,600); TH2F \*histo2=new TH2F(histo2,name,20,0,20,20,0,20); TF2 \*dist=new TF2(dist,\[0\]+\[1\]\*x+\[2\]\*y,0,20,0,20); dist-\>SetParameters(1,0,0); histo2-\>F…

---

## [Bi-exponential Fit getting fails](https://root-forum.cern.ch/t/bi-exponential-fit-getting-fails/62013)

<div class="topic-metadata">

**Author:** [@Rehmaniftikhar](https://root-forum.cern.ch/u/Rehmaniftikhar)\
**Replies:** 5\
**Last updated:** [October 24, 2024, 12:41pm UTC](https://root-forum.cern.ch/t/bi-exponential-fit-getting-fails/62013 "2024-10-24T12:41:46Z")

</div>

I am focusing on analyzing the global time to extract both the decay and rise times by applying a bi-exponential fit. However, I am encountering some challenges with the fitting process. Specifically, the chi-squared val…

---

## [How do I draw a histogram with a condition?](https://root-forum.cern.ch/t/how-do-i-draw-a-histogram-with-a-condition/61983)

<div class="topic-metadata">

**Author:** [@Terklton](https://root-forum.cern.ch/u/Terklton)\
**Replies:** 1\
**Last updated:** [October 21, 2024, 11:46am UTC](https://root-forum.cern.ch/t/how-do-i-draw-a-histogram-with-a-condition/61983 "2024-10-21T11:46:55Z")

</div>

Hi. I have a simple question in root python. Let’s say I’m trying to plot a histogram of column X such that column Y==1. Is there a way of doing it inside the definition of the histogram and not to define new columns, e…

---

## [Unable to Access Data from Delphes Leaf](https://root-forum.cern.ch/t/unable-to-access-data-from-delphes-leaf/61941)

<div class="topic-metadata">

**Author:** [@rydermendelson](https://root-forum.cern.ch/u/rydermendelson)\
**Replies:** 17\
**Last updated:** [October 18, 2024, 6:08pm UTC](https://root-forum.cern.ch/t/unable-to-access-data-from-delphes-leaf/61941 "2024-10-18T18:08:48Z")

</div>

Hello, I am trying to iterate over the data from a ROOT file produced by Delphes to access the muons from each event and find the invariant mass of a W’ boson. I found it difficult to understand exactly what I am suppose…

---

## [Ambiguous expansion of macro 'ClassDef'](https://root-forum.cern.ch/t/ambiguous-expansion-of-macro-classdef/61958)

<div class="topic-metadata">

**Author:** [@amansas](https://root-forum.cern.ch/u/amansas)\
**Replies:** 8\
**Last updated:** [October 18, 2024, 12:06pm UTC](https://root-forum.cern.ch/t/ambiguous-expansion-of-macro-classdef/61958 "2024-10-18T12:06:28Z")

</div>

ROOT Version: 6.32.06 Platform: Ubuntu 22.04 Compiler: Not Provided Hello all, I’m following a tutorial provided by my prof to make my own EventClass. The header file is as follows: #ifndef \_MYEVENT\_ #define \_MYEV…

---

## [mergeSelective not working](https://root-forum.cern.ch/t/mergeselective-not-working/61842)

<div class="topic-metadata">

**Author:** [@pawankn](https://root-forum.cern.ch/u/pawankn)\
**Replies:** 5\
**Last updated:** [October 17, 2024, 1:48pm UTC](https://root-forum.cern.ch/t/mergeselective-not-working/61842 "2024-10-17T13:48:31Z")

</div>

Hi I am trying to use mergeSelective.C as an example for merging of selective histograms and trees from a bunch of root files. It does not seem to work properly, only merging tree and not the histograms. Also including…

---

## [No anti- neutrino symbols in BLSSM model during doing a (tautau~)e3e3bar](https://root-forum.cern.ch/t/no-anti-neutrino-symbols-in-blssm-model-during-doing-a-tautau-e3e3bar/61949)

<div class="topic-metadata">

**Author:** [@Ahmed\_Sayed](https://root-forum.cern.ch/u/Ahmed_Sayed)\
**Replies:** 3\
**Last updated:** [October 16, 2024, 4:55pm UTC](https://root-forum.cern.ch/t/no-anti-neutrino-symbols-in-blssm-model-during-doing-a-tautau-e3e3bar/61949 "2024-10-16T16:55:32Z")

</div>

hello root team, I dont find anti- neutrino symbols in BLSSM model during doing a (tautau~)e3e3bar decay how i handle this problem or is there alternative or modified BLSSM model? // MG5\_aMC\>import BLSSM --modelname …

---

## [ASImage2gif](https://root-forum.cern.ch/t/asimage2gif/60443)

<div class="topic-metadata">

**Author:** [@archiron](https://root-forum.cern.ch/u/archiron)\
**Replies:** 11\
**Last updated:** [October 15, 2024, 6:20am UTC](https://root-forum.cern.ch/t/asimage2gif/60443 "2024-10-15T06:20:22Z")

</div>

Hi, When I made some picture with a script I always have this msg for all the pictures : ASImage2gif():1137:\<gifs/h\_ele\_foundHitsVsEta\_Extended\_pfx.gif\> (null) The pictures are correct, its only the msg I would like to…

---

## [Two plotting aesthetics questions (TGraph and TAxis)](https://root-forum.cern.ch/t/two-plotting-aesthetics-questions-tgraph-and-taxis/61900)

<div class="topic-metadata">

**Author:** [@Will\_Flanagan](https://root-forum.cern.ch/u/Will_Flanagan)\
**Replies:** 5\
**Last updated:** [October 13, 2024, 3:25am UTC](https://root-forum.cern.ch/t/two-plotting-aesthetics-questions-tgraph-and-taxis/61900 "2024-10-13T03:25:06Z")

</div>

I have two questions relating to a plotting macro, code below and output pdf attached. (1) When I draw TGraphs on a dummy TH2D (for formatting), why doesn’t my TGraph continue to the x-maximum of the plot range? As a co…

---

## [chain-\>Draw("var:chain-\>GetTreeNumber()")](https://root-forum.cern.ch/t/chain-draw-var-chain-gettreenumber/61909)

<div class="topic-metadata">

**Author:** [@mfglinux\_gmail](https://root-forum.cern.ch/u/mfglinux_gmail)\
**Replies:** 4\
**Last updated:** [October 11, 2024, 6:46pm UTC](https://root-forum.cern.ch/t/chain-draw-var-chain-gettreenumber/61909 "2024-10-11T18:46:23Z")

</div>

Hello Is there a way to use TTree::Draw to plot a variable vs the tree index inside its chain? for instance, if I have 10 TTree’s inside the chain, then the X axis should run from 0…9. This was actually asked here but …

---

## [VecOps container of string or TString](https://root-forum.cern.ch/t/vecops-container-of-string-or-tstring/61912)

<div class="topic-metadata">

**Author:** [@hohshita](https://root-forum.cern.ch/u/hohshita)\
**Replies:** 2\
**Last updated:** [October 11, 2024, 1:33pm UTC](https://root-forum.cern.ch/t/vecops-container-of-string-or-tstring/61912 "2024-10-11T13:33:39Z")

</div>

Dear ROOT experts, I am trying to read a text file using the RDF::FromCSV method. For elements of string, the VecOps container of type string works, but the VecOps container of type TString does not seem to work. Why…

---

## [Using EErrorCode from pyroot](https://root-forum.cern.ch/t/using-eerrorcode-from-pyroot/61897)

<div class="topic-metadata">

**Author:** [@clark2668](https://root-forum.cern.ch/u/clark2668)\
**Replies:** 2\
**Last updated:** [October 10, 2024, 4:34pm UTC](https://root-forum.cern.ch/t/using-eerrorcode-from-pyroot/61897 "2024-10-10T16:34:07Z")

</div>

I would like to call gInterpreter.ProcessLine on a custom header file in pyroot. When finding that file fails, I would like to catch the error and report it to the user. Reading the documentation, I think this means I ne…

---

## [Windows 11 silent uninstall CERNroot](https://root-forum.cern.ch/t/windows-11-silent-uninstall-cernroot/61902)

<div class="topic-metadata">

**Author:** [@Kevin\_Dunford](https://root-forum.cern.ch/u/Kevin_Dunford)\
**Replies:** 3\
**Last updated:** [October 10, 2024, 7:16am UTC](https://root-forum.cern.ch/t/windows-11-silent-uninstall-cernroot/61902 "2024-10-10T07:16:04Z")

</div>

I need to deploy CERNroot via Microsoft Autopilot / Intune. When deploying applications via Intune need to use silent install and uninstall commands. For a silent installation this works root\_v6.32.02.win64.vc17.exe /SP…

---

## [Handling Missing Input Files in RDF with xrootd](https://root-forum.cern.ch/t/handling-missing-input-files-in-rdf-with-xrootd/61875)

<div class="topic-metadata">

**Author:** [@Jindrich](https://root-forum.cern.ch/u/Jindrich)\
**Replies:** 1\
**Last updated:** [October 8, 2024, 5:16am UTC](https://root-forum.cern.ch/t/handling-missing-input-files-in-rdf-with-xrootd/61875 "2024-10-08T05:16:27Z")

</div>

Dear ROOT experts, I have a question regarding RDF and handling missing input files. In my work, I sometimes use data files that are stored remotely and accessed via xrootd. I create an RDataFrame from a TChain, and whe…

---

## [Error when trying to run ROOT in conda virtual environment](https://root-forum.cern.ch/t/error-when-trying-to-run-root-in-conda-virtual-environment/61707)

<div class="topic-metadata">

**Author:** [@Chanhyuk\_Park](https://root-forum.cern.ch/u/Chanhyuk_Park)\
**Replies:** 3\
**Last updated:** [October 6, 2024, 8:30pm UTC](https://root-forum.cern.ch/t/error-when-trying-to-run-root-in-conda-virtual-environment/61707 "2024-10-06T20:30:38Z")

</div>

I’m using a Macbook Pro with Sonoma 14.6.1. I created a conda virtual environment and installed ROOT successfully. But when I try to start a terminal session by typing in root, following error pops up. /opt/anaconda3/…

---

## [Converting Standard Deviation from Log Scale to Linear Scale](https://root-forum.cern.ch/t/converting-standard-deviation-from-log-scale-to-linear-scale/61855)

<div class="topic-metadata">

**Author:** [@Raveena](https://root-forum.cern.ch/u/Raveena)\
**Replies:** 1\
**Last updated:** [October 6, 2024, 7:54am UTC](https://root-forum.cern.ch/t/converting-standard-deviation-from-log-scale-to-linear-scale/61855 "2024-10-06T07:54:27Z")

</div>

\_ROOT Version: 6.32.06 Platform: Linux Compiler: gcc Hi all, I’ve been working on Energy distribution of muons that I plotted using logarithms (base 10), and I have a couple of questions regarding how to interpret a…

---

## [Qtweb issues](https://root-forum.cern.ch/t/qtweb-issues/61849)

<div class="topic-metadata">

**Author:** [@CIAE](https://root-forum.cern.ch/u/CIAE)\
**Replies:** 5\
**Last updated:** [October 5, 2024, 12:34pm UTC](https://root-forum.cern.ch/t/qtweb-issues/61849 "2024-10-05T12:34:03Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version: 6.32.06 \_Platform: archlinux \_Compiler: gcc 14.2.1 the command of cmake root： sudo cmake -DCMAKE\_INSTALL\_PREFIX=../root\_install …

---

## [Read TRefArray with TTreeReader](https://root-forum.cern.ch/t/read-trefarray-with-ttreereader/60477)

<div class="topic-metadata">

**Author:** [@qiqiqi](https://root-forum.cern.ch/u/qiqiqi)\
**Replies:** 12\
**Last updated:** [October 4, 2024, 8:36am UTC](https://root-forum.cern.ch/t/read-trefarray-with-ttreereader/60477 "2024-10-04T08:36:30Z")

</div>

Dear experts, I hope to ask the recommended way to read TRefArray using TTreeReader. It is related to this thread. I am trying to read from the output file generated by Delphes. And the FatJet.Constituents branch stores…

---

## [Comparing DataFrame entries to numpy array](https://root-forum.cern.ch/t/comparing-dataframe-entries-to-numpy-array/61825)

<div class="topic-metadata">

**Author:** [@Terklton](https://root-forum.cern.ch/u/Terklton)\
**Replies:** 3\
**Last updated:** [October 3, 2024, 6:03am UTC](https://root-forum.cern.ch/t/comparing-dataframe-entries-to-numpy-array/61825 "2024-10-03T06:03:25Z")

</div>

Hi all, I’m using Jupyter with python I have a dataframe which includes many rows and each row is split into lines. There are two relevant columns hitX and hitY I also have a np.array with, say, 50 pairs of (x,y) coo…

---

## [Cannot find $ROOTSYS after Homebrew install](https://root-forum.cern.ch/t/cannot-find-rootsys-after-homebrew-install/61798)

<div class="topic-metadata">

**Author:** [@Will\_Flanagan](https://root-forum.cern.ch/u/Will_Flanagan)\
**Replies:** 5\
**Last updated:** [September 30, 2024, 3:23pm UTC](https://root-forum.cern.ch/t/cannot-find-rootsys-after-homebrew-install/61798 "2024-09-30T15:23:37Z")

</div>

I cannot find my $ROOTSYS after installing root on my Mac with homebrew (i.e. brew install root) In particular, I am searching for the tutorial directory so as to run and modify ROOT: tutorials/unfold/testUnfold1.C Fil…

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

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