# Newbie

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

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

---

## [RDataFrame Fill to fill a TTree](https://root-forum.cern.ch/t/rdataframe-fill-to-fill-a-ttree/57182)

<div class="topic-metadata">

**Author:** [@Patrick\_Flanagan](https://root-forum.cern.ch/u/Patrick_Flanagan)\
**Replies:** 5\
**Last updated:** [November 24, 2023, 7:47am UTC](https://root-forum.cern.ch/t/rdataframe-fill-to-fill-a-ttree/57182 "2023-11-24T07:47:33Z")

</div>

I’m trying to use RDataFrame’s Fill action to fill a ttree instead of snapshot so I can save defined branches as c-style arrays. So the custom class looks something like: class Filltree{ TTree\* output\_tree; int …

---

## [Access to root file works fine on first computer but not on second computer : root (cont'ed, cancel with .@) \[2\]](https://root-forum.cern.ch/t/access-to-root-file-works-fine-on-first-computer-but-not-on-second-computer-root-conted-cancel-with-2/57234)

<div class="topic-metadata">

**Author:** [@SarahBlind](https://root-forum.cern.ch/u/SarahBlind)\
**Replies:** 2\
**Last updated:** [November 23, 2023, 3:38pm UTC](https://root-forum.cern.ch/t/access-to-root-file-works-fine-on-first-computer-but-not-on-second-computer-root-conted-cancel-with-2/57234 "2023-11-23T15:38:03Z")

</div>

Dear Root users, My question may be obvious but if anyone has any advice to give me… I’m working with two computers, both with Ubuntu 20.04.6 LTS and root 6.28/08. On computer number 1 I manage to retrieve the desired…

---

## [JSROOT rendering differs from browser to browser](https://root-forum.cern.ch/t/jsroot-rendering-differs-from-browser-to-browser/57215)

<div class="topic-metadata">

**Author:** [@vkireyeu](https://root-forum.cern.ch/u/vkireyeu)\
**Replies:** 5\
**Last updated:** [November 22, 2023, 7:14pm UTC](https://root-forum.cern.ch/t/jsroot-rendering-differs-from-browser-to-browser/57215 "2023-11-22T19:14:34Z")

</div>

Hi! I have this MWE: Summary\<!DOCTYPE html\> \<html lang="en"\> \<head\> \<meta charset="utf-8"\> \<title\>Test\</title\> \</head\> \<body\> …

---

## [How to read a std::vector values stored in TTree branch?](https://root-forum.cern.ch/t/how-to-read-a-std-vector-values-stored-in-ttree-branch/57212)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 2\
**Last updated:** [November 22, 2023, 2:45pm UTC](https://root-forum.cern.ch/t/how-to-read-a-std-vector-values-stored-in-ttree-branch/57212 "2023-11-22T14:45:26Z")

</div>

Hi, I have a TTRee that has a branch comprising std::vectors (doubles). how can I from the the interactive session read the contents of these vectors ? Here is the TTree structure root \[14\] B5-\>Show(2) ======\> EVENT:2 …

---

## [Drawing a kink in Y axis?](https://root-forum.cern.ch/t/drawing-a-kink-in-y-axis/57196)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 6\
**Last updated:** [November 22, 2023, 1:28pm UTC](https://root-forum.cern.ch/t/drawing-a-kink-in-y-axis/57196 "2023-11-22T13:28:17Z")

</div>

Hello everyone, I am trying to draw a small “kink” in the Y-axis to indicate it does not start from 0 I tried this by creating a different TPad and drawing various TLines (again using BrokenAxis.C by @couet ) and res…

---

## [Root macro to retrieve and copy in a csv file the number of photo-electrons from a root file](https://root-forum.cern.ch/t/root-macro-to-retrieve-and-copy-in-a-csv-file-the-number-of-photo-electrons-from-a-root-file/57189)

<div class="topic-metadata">

**Author:** [@SarahBlind](https://root-forum.cern.ch/u/SarahBlind)\
**Replies:** 4\
**Last updated:** [November 22, 2023, 6:57am UTC](https://root-forum.cern.ch/t/root-macro-to-retrieve-and-copy-in-a-csv-file-the-number-of-photo-electrons-from-a-root-file/57189 "2023-11-22T06:57:45Z")

</div>

Dear Root users, I am using GATE (an open source software dedicated to digital simulations in medical imaging and radiotherapy) to analyze some radio physical quantities (photo-electrons for example) after an X-rays irr…

---

## [Setting the Pad width, height and position?](https://root-forum.cern.ch/t/setting-the-pad-width-height-and-position/57193)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 2\
**Last updated:** [November 21, 2023, 1:17pm UTC](https://root-forum.cern.ch/t/setting-the-pad-width-height-and-position/57193 "2023-11-21T13:17:47Z")

</div>

Hello all, TPad (const char \*name, const char \*title, Double\_t xlow, Double\_t ylow, Double\_t xup, Double\_t yup, Color\_t color=-1, Short\_t bordersize=-1, Short\_t bordermode=-2) I am trying to set a Pad with and but fa…

---

## [Splitting the Y axis to accomodate two histograms?](https://root-forum.cern.ch/t/splitting-the-y-axis-to-accomodate-two-histograms/57173)

<div class="topic-metadata">

**Author:** [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Replies:** 5\
**Last updated:** [November 20, 2023, 1:44pm UTC](https://root-forum.cern.ch/t/splitting-the-y-axis-to-accomodate-two-histograms/57173 "2023-11-20T13:44:54Z")

</div>

Hello people. I am trying to “split” the Y axis by creating two different pads and placing them end to end. Here is the plot. I modified my code from BrokenAxis() shared by @couet in the “Remove some axis in a TPad”…

---

## [Error in Adding TGraph. h to cpp file](https://root-forum.cern.ch/t/error-in-adding-tgraph-h-to-cpp-file/57170)

<div class="topic-metadata">

**Author:** [@Harriet\_Kumi](https://root-forum.cern.ch/u/Harriet_Kumi)\
**Replies:** 2\
**Last updated:** [November 20, 2023, 11:40am UTC](https://root-forum.cern.ch/t/error-in-adding-tgraph-h-to-cpp-file/57170 "2023-11-20T11:40:19Z")

</div>

Good morning, Please, I have a cmake folder that I have built and installed. I included root in my CMAKELISTS.txt. After building my folder, I had an error with the make -j4. I think that the error relates to me adding …

---

## [CoMPASS won't run with ROOT Visual C++ debugger](https://root-forum.cern.ch/t/compass-wont-run-with-root-visual-c-debugger/49857)

<div class="topic-metadata">

**Author:** [@Rahon](https://root-forum.cern.ch/u/Rahon)\
**Replies:** 5\
**Last updated:** [November 20, 2023, 10:32am UTC](https://root-forum.cern.ch/t/compass-wont-run-with-root-visual-c-debugger/49857 "2023-11-20T10:32:46Z")

</div>

Hello all, I’m running Root on windows with Visual C++ (which, is somehow faster than when I run a separate version on Linus Subsystem for Windows and I’m not sure why, but that is a question for another time). Every…

---

## [Help building root from source openSUSE Tumbleweed](https://root-forum.cern.ch/t/help-building-root-from-source-opensuse-tumbleweed/57141)

<div class="topic-metadata">

**Author:** [@pixyl](https://root-forum.cern.ch/u/pixyl)\
**Replies:** 6\
**Last updated:** [November 17, 2023, 3:01pm UTC](https://root-forum.cern.ch/t/help-building-root-from-source-opensuse-tumbleweed/57141 "2023-11-17T15:01:06Z")

</div>

Hello, I’m trying to build root from source following the tutorial in the install section. Have to build from source cause I’m using openSUSE Tumbleweed. I’m having a problem with CMake: I have 3 folders in my home dir…

---

## [Can't import 'TFile' in pyROOT](https://root-forum.cern.ch/t/cant-import-tfile-in-pyroot/57031)

<div class="topic-metadata">

**Author:** [@krish](https://root-forum.cern.ch/u/krish)\
**Replies:** 3\
**Last updated:** [November 17, 2023, 10:17am UTC](https://root-forum.cern.ch/t/cant-import-tfile-in-pyroot/57031 "2023-11-17T10:17:46Z")

</div>

I am trying to use pyROOT in jupyter. I was able to import ROOT without any error, but I am not able to import other modules from ROOT. For an example:from ROOT import TFile gives me the following error ImportError: ca…

---

## [Using RVecB with Foreach in PyROOT](https://root-forum.cern.ch/t/using-rvecb-with-foreach-in-pyroot/57054)

<div class="topic-metadata">

**Author:** [@Kaan\_Guven](https://root-forum.cern.ch/u/Kaan_Guven)\
**Replies:** 1\
**Last updated:** [November 17, 2023, 9:56am UTC](https://root-forum.cern.ch/t/using-rvecb-with-foreach-in-pyroot/57054 "2023-11-17T09:56:25Z")

</div>

EDIT: Unfortunately, I had previously copied and pasted an incorrect error message. Now, it is accurate. Dear experts, I cannot succeed in applying a function on each entry of an RDataframe in PyRoot. The columns that…

---

## [Root or Cling and Bash scripting](https://root-forum.cern.ch/t/root-or-cling-and-bash-scripting/57118)

<div class="topic-metadata">

**Author:** [@cw2636](https://root-forum.cern.ch/u/cw2636)\
**Replies:** 3\
**Last updated:** [November 17, 2023, 8:40am UTC](https://root-forum.cern.ch/t/root-or-cling-and-bash-scripting/57118 "2023-11-17T08:40:18Z")

</div>

I wanted to create an executable, that i can call in a bash script, with c++ code, which when i run the bash scripts will interprete the c++ code, how can i achieved that. Bash scripts will look like #! /usr/local/bin/…

---

## [Reading Json file with root](https://root-forum.cern.ch/t/reading-json-file-with-root/57033)

<div class="topic-metadata">

**Author:** [@asanchezcastillo](https://root-forum.cern.ch/u/asanchezcastillo)\
**Replies:** 6\
**Last updated:** [November 14, 2023, 5:22pm UTC](https://root-forum.cern.ch/t/reading-json-file-with-root/57033 "2023-11-14T17:22:54Z")

</div>

Hello, I am trying to read a json file using the library nlohmann-json. My code is the following: #include "/usr/local/Cellar/nlohmann-json/3.11.2/include/nlohmann/json.hpp" #include \<iostream\> void ReadJson() { st…

---

## [RuntimeError while running RDataFrame with Dask HTCondor cluster](https://root-forum.cern.ch/t/runtimeerror-while-running-rdataframe-with-dask-htcondor-cluster/57044)

<div class="topic-metadata">

**Author:** [@Cheng-Han](https://root-forum.cern.ch/u/Cheng-Han)\
**Replies:** 5\
**Last updated:** [November 14, 2023, 9:31am UTC](https://root-forum.cern.ch/t/runtimeerror-while-running-rdataframe-with-dask-htcondor-cluster/57044 "2023-11-14T09:31:28Z")

</div>

Dear experts, I want to use distributed RDataFrame to perform my analysis using Dask HTCondor cluster. Unfortunately, I always get an error and the error message is as follows. File "/dicos\_ui\_home/chenghan/miniconda…

---

## [How to read array with fixed size stored in branch from TTree in JSROOT?](https://root-forum.cern.ch/t/how-to-read-array-with-fixed-size-stored-in-branch-from-ttree-in-jsroot/57086)

<div class="topic-metadata">

**Author:** [@kinstaky](https://root-forum.cern.ch/u/kinstaky)\
**Replies:** 4\
**Last updated:** [November 13, 2023, 8:44am UTC](https://root-forum.cern.ch/t/how-to-read-array-with-fixed-size-stored-in-branch-from-ttree-in-jsroot/57086 "2023-11-13T08:44:09Z")

</div>

I am trying to read fiexd size array from branches in TTree in jsroot. At first, I built a tree with C++ and coded like // in cpp tree.Branch("px", &px, "px\[3\]/D"); So this branch is a fixed size array branch. And I am…

---

## [The SetBinError can't set right value](https://root-forum.cern.ch/t/the-setbinerror-cant-set-right-value/57082)

<div class="topic-metadata">

**Author:** [@Miracle](https://root-forum.cern.ch/u/Miracle)\
**Replies:** 12\
**Last updated:** [November 12, 2023, 2:37pm UTC](https://root-forum.cern.ch/t/the-setbinerror-cant-set-right-value/57082 "2023-11-12T14:37:08Z")

</div>

As you can see, I set the error with SetBinError in my custom function and read it with GetBinError immediately after that, and they are surprisingly different. void DirectlyAdd(TProfile\* prof, TProfile\* prof1, TProfile…

---

## [ROOT configuration failed](https://root-forum.cern.ch/t/root-configuration-failed/57049)

<div class="topic-metadata">

**Author:** [@LeonardoPlini](https://root-forum.cern.ch/u/LeonardoPlini)\
**Replies:** 2\
**Last updated:** [November 11, 2023, 4:15pm UTC](https://root-forum.cern.ch/t/root-configuration-failed/57049 "2023-11-11T16:15:40Z")

</div>

Good Morning all, I’ve tried to install ROOT on my Macbook using the information provided at the proper link ( it seems I cannot post this link since I am a new user) under the section Conda and I created an environment…

---

## [Macro crashes when closing the file after saving the trees with 'double free or corruption (out)' message](https://root-forum.cern.ch/t/macro-crashes-when-closing-the-file-after-saving-the-trees-with-double-free-or-corruption-out-message/56973)

<div class="topic-metadata">

**Author:** [@elemental](https://root-forum.cern.ch/u/elemental)\
**Replies:** 2\
**Last updated:** [November 11, 2023, 12:03pm UTC](https://root-forum.cern.ch/t/macro-crashes-when-closing-the-file-after-saving-the-trees-with-double-free-or-corruption-out-message/56973 "2023-11-11T12:03:05Z")

</div>

I am trying to fill a tree with branches with user-defined class-objects. When I am finished writing the file with the tree as in ‘t\_cands-\>Write()’, save the file as ‘outfile -\>Save();’ and then close the file as ‘outfi…

---

## [Beginner: SetTitle in canvas doesn' t work](https://root-forum.cern.ch/t/beginner-settitle-in-canvas-doesn-t-work/57070)

<div class="topic-metadata">

**Author:** [@rafal4](https://root-forum.cern.ch/u/rafal4)\
**Replies:** 2\
**Last updated:** [November 10, 2023, 8:39pm UTC](https://root-forum.cern.ch/t/beginner-settitle-in-canvas-doesn-t-work/57070 "2023-11-10T20:39:26Z")

</div>

Hello, I am beginner in ROOT. I need to write simple macro. I am trying set title and name in Canvas but it is not correct. Can anyone tell me how to correctly add a title and name in Canvas? Thank you and best regard…

---

## [Problem with MathMore](https://root-forum.cern.ch/t/problem-with-mathmore/56993)

<div class="topic-metadata">

**Author:** [@gzotti](https://root-forum.cern.ch/u/gzotti)\
**Replies:** 9\
**Last updated:** [November 10, 2023, 3:45pm UTC](https://root-forum.cern.ch/t/problem-with-mathmore/56993 "2023-11-10T15:45:51Z")

</div>

ROOT Version: 6.24/02 Platform: Ubuntu preview on Windows Compiler: gcc Good evening, this is my first question in the forum so I will try my best to be clear enough. I am trying to perform a fit of some experimental…

---

## [I want my histogram to remain in the screen](https://root-forum.cern.ch/t/i-want-my-histogram-to-remain-in-the-screen/57078)

<div class="topic-metadata">

**Author:** [@Gursharan\_singh](https://root-forum.cern.ch/u/Gursharan_singh)\
**Replies:** 1\
**Last updated:** [November 10, 2023, 11:54am UTC](https://root-forum.cern.ch/t/i-want-my-histogram-to-remain-in-the-screen/57078 "2023-11-10T11:54:40Z")

</div>

I want my histogram to remain on the screen but when I delete the dynamics memory of it, so its disappears so whats the good option that I got my plot and also delete the dynamic allocated memories as well or does root d…

---

## [Reading branches of TTree from root file](https://root-forum.cern.ch/t/reading-branches-of-ttree-from-root-file/57067)

<div class="topic-metadata">

**Author:** [@bm5](https://root-forum.cern.ch/u/bm5)\
**Replies:** 1\
**Last updated:** [November 10, 2023, 11:43am UTC](https://root-forum.cern.ch/t/reading-branches-of-ttree-from-root-file/57067 "2023-11-10T11:43:10Z")

</div>

Hello, I am a beginner with root and c++. I am trying to read the TTree found in a root file. I built root from the source with -Druntime\_cxxmodules=OFF from this blog post (How to run ROOT Macros in VS Code - ROOT). …

---

## [Parallely install conda root with the root installed with build](https://root-forum.cern.ch/t/parallely-install-conda-root-with-the-root-installed-with-build/57053)

<div class="topic-metadata">

**Author:** [@krish](https://root-forum.cern.ch/u/krish)\
**Replies:** 1\
**Last updated:** [November 9, 2023, 4:48pm UTC](https://root-forum.cern.ch/t/parallely-install-conda-root-with-the-root-installed-with-build/57053 "2023-11-09T16:48:50Z")

</div>

I have installed ROOT from scratch with the source. But due to some reason, I couldn’t use pyROOT. Now is it possible to install ROOT from conda without conflict with the previous one? ROOT Version: Not Provided Platfo…

---

## [I cannot store string in tree](https://root-forum.cern.ch/t/i-cannot-store-string-in-tree/57017)

<div class="topic-metadata">

**Author:** [@Goktug\_Bayram](https://root-forum.cern.ch/u/Goktug_Bayram)\
**Replies:** 3\
**Last updated:** [November 9, 2023, 9:33am UTC](https://root-forum.cern.ch/t/i-cannot-store-string-in-tree/57017 "2023-11-09T09:33:49Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided I am trying to store date and time data in tree. TFile f("tree3.ro…

---

## [TBrowser showing blank page and degrading clang](https://root-forum.cern.ch/t/tbrowser-showing-blank-page-and-degrading-clang/56992)

<div class="topic-metadata">

**Author:** [@amishgog](https://root-forum.cern.ch/u/amishgog)\
**Replies:** 10\
**Last updated:** [November 9, 2023, 10:10am UTC](https://root-forum.cern.ch/t/tbrowser-showing-blank-page-and-degrading-clang/56992 "2023-11-09T10:10:53Z")

</div>

My TBrowser is showing a blank page when I open it locally. I read in another discussion that this is a problem with MacOS 14 and clang 15, so I want to degrade my version of clang to use it. The problem is that I am us…

---

## [Centrality](https://root-forum.cern.ch/t/centrality/55949)

<div class="topic-metadata">

**Author:** [@A\_P\_abhisek](https://root-forum.cern.ch/u/A_P_abhisek)\
**Replies:** 4\
**Last updated:** [November 7, 2023, 3:58pm UTC](https://root-forum.cern.ch/t/centrality/55949 "2023-11-07T15:58:25Z")

</div>

Hi, I would like to know about how to divide centrality classes on the multiplicty data and use those centality cuts for further dat analysis. Could you please help me. ROOT Version: v6.28/04 Platform: Linux Compiler: …

---

## [Plotting three leafs in one canvas](https://root-forum.cern.ch/t/plotting-three-leafs-in-one-canvas/56999)

<div class="topic-metadata">

**Author:** [@Wandelsterne](https://root-forum.cern.ch/u/Wandelsterne)\
**Replies:** 4\
**Last updated:** [November 5, 2023, 9:37pm UTC](https://root-forum.cern.ch/t/plotting-three-leafs-in-one-canvas/56999 "2023-11-05T21:37:01Z")

</div>

Hi, I only recently started using root so I’m currently very confused. I have three root files, where I want to extract the leaf (?) integral\[0\] for these three files and then draw them all in one picture. extracting …

---

## [How to add experimental resolution to a 1D Histogram in root](https://root-forum.cern.ch/t/how-to-add-experimental-resolution-to-a-1d-histogram-in-root/50005)

<div class="topic-metadata">

**Author:** [@gini](https://root-forum.cern.ch/u/gini)\
**Replies:** 20\
**Last updated:** [November 5, 2023, 3:25pm UTC](https://root-forum.cern.ch/t/how-to-add-experimental-resolution-to-a-1d-histogram-in-root/50005 "2023-11-05T15:25:00Z")

</div>

Hi, I am quite new to root. Can someone tell me how to smear my theoritical mass spectra with my experimental mass resolution ? The experimental mass resolution is 3.5 amu. I want to incorporate this mass resolution i…

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

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