# Newbie

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

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

---

## [Problem in tree branch filled by a function](https://root-forum.cern.ch/t/problem-in-tree-branch-filled-by-a-function/62474)

<div class="topic-metadata">

**Author:** [@Sandy](https://root-forum.cern.ch/u/Sandy)\
**Replies:** 4\
**Last updated:** [December 16, 2024, 8:31am UTC](https://root-forum.cern.ch/t/problem-in-tree-branch-filled-by-a-function/62474 "2024-12-16T08:31:30Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided Hello, I am struggling with saving data (on an event by event basis) …

---

## [TBrowser error on remote server via ssh](https://root-forum.cern.ch/t/tbrowser-error-on-remote-server-via-ssh/62462)

<div class="topic-metadata">

**Author:** [@Lydnik](https://root-forum.cern.ch/u/Lydnik)\
**Replies:** 3\
**Last updated:** [December 12, 2024, 9:09pm UTC](https://root-forum.cern.ch/t/tbrowser-error-on-remote-server-via-ssh/62462 "2024-12-12T21:09:24Z")

</div>

Hi there! I’m trying to use ROOT to display some data files on a remote Linux system, via ssh in VS code, but have encountered the following error: connect localhost port 6023: Connection refused Warning in TBrowser::…

---

## [Can I use private variable by shifting address?](https://root-forum.cern.ch/t/can-i-use-private-variable-by-shifting-address/62452)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 5\
**Last updated:** [December 12, 2024, 4:25pm UTC](https://root-forum.cern.ch/t/can-i-use-private-variable-by-shifting-address/62452 "2024-12-12T16:25:39Z")

</div>

Dear experts For debugging purpose, Can I call a private member in a Class by shifting the address of the Object pointer? Where the class is inherited from TObject: class SomeClass : public TObject { private: …

---

## [Enable C++23 in ROOT 6.34.00-rc1](https://root-forum.cern.ch/t/enable-c-23-in-root-6-34-00-rc1/62433)

<div class="topic-metadata">

**Author:** [@CHN-beta](https://root-forum.cern.ch/u/CHN-beta)\
**Replies:** 7\
**Last updated:** [December 11, 2024, 3:03pm UTC](https://root-forum.cern.ch/t/enable-c-23-in-root-6-34-00-rc1/62433 "2024-12-11T15:03:05Z")

</div>

ROOT Version: 6.34.00-rc1 Platform: Linux Compiler: GCC 13 Since LLVM 18 support C++ 23, I tried to enable it in 6.34.00-rc1. I have done the following things: set -DCMAKE\_CXX\_STANDARD=23 when building ROOT. Patch …

---

## [Abnormal Delphes Output](https://root-forum.cern.ch/t/abnormal-delphes-output/62432)

<div class="topic-metadata">

**Author:** [@AlexC](https://root-forum.cern.ch/u/AlexC)\
**Replies:** 1\
**Last updated:** [December 10, 2024, 5:19pm UTC](https://root-forum.cern.ch/t/abnormal-delphes-output/62432 "2024-12-10T17:19:36Z")

</div>

Dear Experts, I am not sure if I should ask this question here as it is mainly a Delphes question instead of a ROOT question. But I hope I can find many people who know Delphes in this forum. I am running Delphes over a…

---

## [How to calculate a correction for a function](https://root-forum.cern.ch/t/how-to-calculate-a-correction-for-a-function/62413)

<div class="topic-metadata">

**Author:** [@Terklton](https://root-forum.cern.ch/u/Terklton)\
**Replies:** 1\
**Last updated:** [December 7, 2024, 12:24pm UTC](https://root-forum.cern.ch/t/how-to-calculate-a-correction-for-a-function/62413 "2024-12-07T12:24:14Z")

</div>

I have a 2D Histogram of values y(x). I know they’re supposed to lie along y=x line but they resemble y=a\*log(x)+b better. I found the fit for the log function and found “a” and “b” parameters. Now what I want is to a…

---

## [Uproot histogram behaviors](https://root-forum.cern.ch/t/uproot-histogram-behaviors/62414)

<div class="topic-metadata">

**Author:** [@Dyson\_Kennedy](https://root-forum.cern.ch/u/Dyson_Kennedy)\
**Replies:** 1\
**Last updated:** [December 7, 2024, 5:12am UTC](https://root-forum.cern.ch/t/uproot-histogram-behaviors/62414 "2024-12-07T05:12:01Z")

</div>

\_ROOT Version:6.32.08 \_Platform:mac OS 14.7.1 Python 3.13.0 Hello, I’m using uproot for the first time. I’m trying to take multiple histograms from .root files and edit them/combine them stacked. Here is the code I h…

---

## [ROOT install on MacOs 15.1.1 XCode 16.1 Old Mac Intel Core I9](https://root-forum.cern.ch/t/root-install-on-macos-15-1-1-xcode-16-1-old-mac-intel-core-i9/62407)

<div class="topic-metadata">

**Author:** [@hk\_kirill](https://root-forum.cern.ch/u/hk_kirill)\
**Replies:** 6\
**Last updated:** [December 6, 2024, 8:51am UTC](https://root-forum.cern.ch/t/root-install-on-macos-15-1-1-xcode-16-1-old-mac-intel-core-i9/62407 "2024-12-06T08:51:01Z")

</div>

Hello, I have installed root using homebrew. Root basics work, but trying to compile an app using root libraries produces the error below. It looks that it tries to use an ancient version of g++, but not the one provide…

---

## [How to properly delete TTree\* and TGraph\* and renew them](https://root-forum.cern.ch/t/how-to-properly-delete-ttree-and-tgraph-and-renew-them/55351)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 9\
**Last updated:** [December 5, 2024, 1:34am UTC](https://root-forum.cern.ch/t/how-to-properly-delete-ttree-and-tgraph-and-renew-them/55351 "2024-12-05T01:34:28Z")

</div>

Dear Experts I want to declare a pointer of TGraph, TFile, Three and TH1D and use new method for them inside a for loop, at the end of one loop I delete them so that I can reuse them at the next loop. Here is what I wro…

---

## [Nbr of Bins per Subgroup](https://root-forum.cern.ch/t/nbr-of-bins-per-subgroup/62369)

<div class="topic-metadata">

**Author:** [@Mustaphaa](https://root-forum.cern.ch/u/Mustaphaa)\
**Replies:** 12\
**Last updated:** [December 2, 2024, 3:00pm UTC](https://root-forum.cern.ch/t/nbr-of-bins-per-subgroup/62369 "2024-12-02T15:00:02Z")

</div>

Dear ROOT experts, I have a dataset of app 300M entries, and i am plotting a quantity (pT). My goal is to split the data equally into subgroups (as shown in the plot), where each subgroup contains a specific number of…

---

## [Remove box border in 2d histograms](https://root-forum.cern.ch/t/remove-box-border-in-2d-histograms/62349)

<div class="topic-metadata">

**Author:** [@homura](https://root-forum.cern.ch/u/homura)\
**Replies:** 1\
**Last updated:** [November 29, 2024, 11:58am UTC](https://root-forum.cern.ch/t/remove-box-border-in-2d-histograms/62349 "2024-11-29T11:58:36Z")

</div>

Hello, I have this 2D correlation plot shown below, and I would like to remove the box surrounding the plot as well as the grid on the z-axis so that I have the axes but not the 3d box. I have looked around in root but …

---

## [How to change transparency in ROOT's GL viewer](https://root-forum.cern.ch/t/how-to-change-transparency-in-roots-gl-viewer/62323)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 7\
**Last updated:** [November 27, 2024, 4:55pm UTC](https://root-forum.cern.ch/t/how-to-change-transparency-in-roots-gl-viewer/62323 "2024-11-27T16:55:09Z")

</div>

Dear experts How can I change the transparency automatically for all volumes in the TGeoManager since they have different materials and densities, both using command line and GUI clicking? I didn’t find such a Botton o…

---

## [TTree problems with branching I guess](https://root-forum.cern.ch/t/ttree-problems-with-branching-i-guess/62311)

<div class="topic-metadata">

**Author:** [@eduarddlin](https://root-forum.cern.ch/u/eduarddlin)\
**Replies:** 4\
**Last updated:** [November 26, 2024, 1:36pm UTC](https://root-forum.cern.ch/t/ttree-problems-with-branching-i-guess/62311 "2024-11-26T13:36:30Z")

</div>

Hello everyone! I am trying to to copy a TTree and do some analysis with it. TTree is created by converting .dat data. It is separated into branches as so: t-\>Branch("px",px,"px\[n\]/F"); t-\>Branch("py",py,"py\[n\]/F"…

---

## [Issue with Iteratively Drawing Whisker Plot in ROOT - Only Last Iteration Displayed](https://root-forum.cern.ch/t/issue-with-iteratively-drawing-whisker-plot-in-root-only-last-iteration-displayed/62021)

<div class="topic-metadata">

**Author:** [@mgamero](https://root-forum.cern.ch/u/mgamero)\
**Replies:** 3\
**Last updated:** [November 25, 2024, 5:42am UTC](https://root-forum.cern.ch/t/issue-with-iteratively-drawing-whisker-plot-in-root-only-last-iteration-displayed/62021 "2024-11-25T05:42:33Z")

</div>

Hello, I am trying to plot a kind of “whisker” plot in ROOT using TLine for the vertical and horizontal whiskers, and TMarker for the median. The plot is meant to display several “whiskers” iteratively for different da…

---

## [Unusual disk space occupied by wsl (ubuntu 20) in windows 11 system](https://root-forum.cern.ch/t/unusual-disk-space-occupied-by-wsl-ubuntu-20-in-windows-11-system/60244)

<div class="topic-metadata">

**Author:** [@thegame](https://root-forum.cern.ch/u/thegame)\
**Replies:** 4\
**Last updated:** [November 24, 2024, 9:45pm UTC](https://root-forum.cern.ch/t/unusual-disk-space-occupied-by-wsl-ubuntu-20-in-windows-11-system/60244 "2024-11-24T21:45:34Z")

</div>

I have installed WSL (Ubuntu 20.04) on my Windows 11 system with a 1TB SSD. After working with the WSL setup for a couple of weeks, I’ve noticed that WSL occupies almost 620 GB of disk space, whereas the home folder i…

---

## [Should I release memory of a TBranch member](https://root-forum.cern.ch/t/should-i-release-memory-of-a-tbranch-member/62287)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 4\
**Last updated:** [November 22, 2024, 5:01am UTC](https://root-forum.cern.ch/t/should-i-release-memory-of-a-tbranch-member/62287 "2024-11-22T05:01:32Z")

</div>

Dear experts I want to read a std::vector\<double\> from a TTree so I do: std::vector\<double\>\* a; std::vector\<std::vector\<double\>\> b; t-\>SetBranchAddress("a", &a); t-\>GetEntry(0); b.push\_back(std::move(\*a)); should I do…

---

## [Build a TF function from TFormula](https://root-forum.cern.ch/t/build-a-tf-function-from-tformula/62290)

<div class="topic-metadata">

**Author:** [@MrSi1ence](https://root-forum.cern.ch/u/MrSi1ence)\
**Replies:** 2\
**Last updated:** [November 22, 2024, 12:21am UTC](https://root-forum.cern.ch/t/build-a-tf-function-from-tformula/62290 "2024-11-22T00:21:51Z")

</div>

I want to build a TF1 function from 2 TFormula function:(for newbie practice) { auto fa1 = new TFormula("fa1","\[0\]\*cos(\[1\]\*x)"); fa1-\>SetParameter(0,7); fa1-\>SetParameter(1,6); auto fa2 = new TFormula("fa2",…

---

## [Read TH1D from .root file via pyROOT](https://root-forum.cern.ch/t/read-th1d-from-root-file-via-pyroot/62293)

<div class="topic-metadata">

**Author:** [@Dyson\_Kennedy](https://root-forum.cern.ch/u/Dyson_Kennedy)\
**Replies:** 2\
**Last updated:** [November 21, 2024, 7:37pm UTC](https://root-forum.cern.ch/t/read-th1d-from-root-file-via-pyroot/62293 "2024-11-21T19:37:04Z")

</div>

Please read tips for efficient and successful posting and posting code Please fill also the fields below. Note that root -b -q will tell you this info, and starting from 6.28/06 upwards, you can call .forum bug from th…

---

## [Same TSelector for different Trees](https://root-forum.cern.ch/t/same-tselector-for-different-trees/62285)

<div class="topic-metadata">

**Author:** [@gerbz](https://root-forum.cern.ch/u/gerbz)\
**Replies:** 1\
**Last updated:** [November 20, 2024, 7:00pm UTC](https://root-forum.cern.ch/t/same-tselector-for-different-trees/62285 "2024-11-20T19:00:30Z")

</div>

ROOT Version: 6.28/06 Platform: Ubuntu 20.04 Compiler: gcc 9.4.0 I have a TSelector class that I created using MakeSelector. I would like to use this class to analyze two different trees, one for data and one for si…

---

## [Python failing to recognize ROOT package despite successful installation and present within list of packages](https://root-forum.cern.ch/t/python-failing-to-recognize-root-package-despite-successful-installation-and-present-within-list-of-packages/62274)

<div class="topic-metadata">

**Author:** [@Aidan\_Ireland](https://root-forum.cern.ch/u/Aidan_Ireland)\
**Replies:** 2\
**Last updated:** [November 20, 2024, 7:37am UTC](https://root-forum.cern.ch/t/python-failing-to-recognize-root-package-despite-successful-installation-and-present-within-list-of-packages/62274 "2024-11-20T07:37:00Z")

</div>

Hello, I am having issues when I attempt Import ROOT into a Jupyter Notebook. To preface, I am using Ubuntu on a windows computer. I have successfully followed the instructions for installing root within ubuntu using sn…

---

## [Issue with Chi-Square Calculation After Scaling Histogram](https://root-forum.cern.ch/t/issue-with-chi-square-calculation-after-scaling-histogram/62272)

<div class="topic-metadata">

**Author:** [@Rehmaniftikhar](https://root-forum.cern.ch/u/Rehmaniftikhar)\
**Replies:** 1\
**Last updated:** [November 18, 2024, 5:04pm UTC](https://root-forum.cern.ch/t/issue-with-chi-square-calculation-after-scaling-histogram/62272 "2024-11-18T17:04:04Z")

</div>

Hello! I’m encountering an unusual issue while working with histograms in ROOT. When I scale my histogram using the command hist-\>Scale(1.0/maxBinContent);, the chi-square value seems to change unexpectedly. However, as…

---

## [ROOT is slow on lxplus (MacOS)](https://root-forum.cern.ch/t/root-is-slow-on-lxplus-macos/62267)

<div class="topic-metadata">

**Author:** [@treddel](https://root-forum.cern.ch/u/treddel)\
**Replies:** 3\
**Last updated:** [November 18, 2024, 1:26pm UTC](https://root-forum.cern.ch/t/root-is-slow-on-lxplus-macos/62267 "2024-11-18T13:26:36Z")

</div>

I am trying to keep my analysis work in lxplus/ssh however running ROOT on lxplus for me is incredibly slow. As I am on a later MacOS version I am having to use xQuartz to allow X11 forwarding. Running ROOT in zsh/bash t…

---

## [Is it possible/reasonable to count the number of field lines that terminate on an object in Garfield++?](https://root-forum.cern.ch/t/is-it-possible-reasonable-to-count-the-number-of-field-lines-that-terminate-on-an-object-in-garfield/62184)

<div class="topic-metadata">

**Author:** [@JamesIV](https://root-forum.cern.ch/u/JamesIV)\
**Replies:** 5\
**Last updated:** [November 14, 2024, 10:54pm UTC](https://root-forum.cern.ch/t/is-it-possible-reasonable-to-count-the-number-of-field-lines-that-terminate-on-an-object-in-garfield/62184 "2024-11-14T22:54:00Z")

</div>

I am plotting an electric field map that I made in Elmer, and I wanted to calculate the transparency of the electric field (number of field lines terminating at the end / total number of field lines). The idea is identic…

---

## [ProfileX of histogram can fit for pol3 but not pol5](https://root-forum.cern.ch/t/profilex-of-histogram-can-fit-for-pol3-but-not-pol5/62154)

<div class="topic-metadata">

**Author:** [@George\_Sun](https://root-forum.cern.ch/u/George_Sun)\
**Replies:** 5\
**Last updated:** [November 13, 2024, 1:34pm UTC](https://root-forum.cern.ch/t/profilex-of-histogram-can-fit-for-pol3-but-not-pol5/62154 "2024-11-13T13:34:52Z")

</div>

Hello all, I am fairly new to root, so I’m sorry if this is posted or something in the documentation. I got this 2D histogram that I shared here and tried to use it to fit for the first-order term of a pol5. I could fit…

---

## [RDataFrame, pandas and save to hdf5](https://root-forum.cern.ch/t/rdataframe-pandas-and-save-to-hdf5/62220)

<div class="topic-metadata">

**Author:** [@eneb](https://root-forum.cern.ch/u/eneb)\
**Replies:** 4\
**Last updated:** [November 13, 2024, 7:41am UTC](https://root-forum.cern.ch/t/rdataframe-pandas-and-save-to-hdf5/62220 "2024-11-13T07:41:22Z")

</div>

Dear experts, I am not sure if this is the correct place to ask, but since it has to do at least partially with the RDataFrame functionalities, maybe someone can help me out. Usually I just use RDataFrame to create his…

---

## [Compiler flag errors](https://root-forum.cern.ch/t/compiler-flag-errors/61908)

<div class="topic-metadata">

**Author:** [@petros](https://root-forum.cern.ch/u/petros)\
**Replies:** 12\
**Last updated:** [November 12, 2024, 9:27am UTC](https://root-forum.cern.ch/t/compiler-flag-errors/61908 "2024-11-12T09:27:14Z")

</div>

Hello everyone, i’ve been trying to compile ROOT (git cloning latest) as a dependency to gate on a MacM3 (Sequioa 15.0.1, XCode 16.0 (16A242d)) as a dependency to GATE9.0. I was getting these errors with multiple versio…

---

## [Installing ROOT on WSL2](https://root-forum.cern.ch/t/installing-root-on-wsl2/62152)

<div class="topic-metadata">

**Author:** [@JSWong](https://root-forum.cern.ch/u/JSWong)\
**Replies:** 11\
**Last updated:** [November 11, 2024, 5:59pm UTC](https://root-forum.cern.ch/t/installing-root-on-wsl2/62152 "2024-11-11T17:59:15Z")

</div>

Dear all, I am trying to install ROOT via a package manager Snap since it is a pre-requisite for GATE/Geant4. When I try to snap run root-framework, the following output shows: 2024/11/06 12:11:16.917855 cmd\_run.go:1285…

---

## [Windows instalation step-by-step](https://root-forum.cern.ch/t/windows-instalation-step-by-step/62201)

<div class="topic-metadata">

**Author:** [@SerGor000](https://root-forum.cern.ch/u/SerGor000)\
**Replies:** 1\
**Last updated:** [November 11, 2024, 12:07pm UTC](https://root-forum.cern.ch/t/windows-instalation-step-by-step/62201 "2024-11-11T12:07:46Z")

</div>

Hi! I have tried to install ROOT on Windows 11 and I want to use pyROOT, but I failed and this is my current error message in python: RegOpenKeyEx(HKEY\_LOCAL\_MACHINE\\SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\$VERSION\\I…

---

## [Using TUnfold 17. 9 with PyROOT](https://root-forum.cern.ch/t/using-tunfold-17-9-with-pyroot/62189)

<div class="topic-metadata">

**Author:** [@mandalaritra1](https://root-forum.cern.ch/u/mandalaritra1)\
**Replies:** 3\
**Last updated:** [November 9, 2024, 6:07pm UTC](https://root-forum.cern.ch/t/using-tunfold-17-9-with-pyroot/62189 "2024-11-09T18:07:44Z")

</div>

ROOT Version: 6. 28/02 Platform: Docker image (linux) Compiler: Not Provided Hello, My question is similar to another post from 2017. I am posting this since I could not find a solution on this forum. I want to us…

---

## [How to Display the contents of a dataframe with multi-threading on?](https://root-forum.cern.ch/t/how-to-display-the-contents-of-a-dataframe-with-multi-threading-on/62175)

<div class="topic-metadata">

**Author:** [@amansas](https://root-forum.cern.ch/u/amansas)\
**Replies:** 1\
**Last updated:** [November 8, 2024, 4:31pm UTC](https://root-forum.cern.ch/t/how-to-display-the-contents-of-a-dataframe-with-multi-threading-on/62175 "2024-11-08T16:31:00Z")

</div>

Hello, I’m trying to see the current structure of my rdataframe (name df0) using df0.Display("",20)-\>Print() but I had created this dataframe with multithreading on. Is there anyway I can view the tabular content of the …

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

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