# Newbie

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

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

---

## [Creating a custom Fit using Fitter for data on TH2](https://root-forum.cern.ch/t/creating-a-custom-fit-using-fitter-for-data-on-th2/63065)

<div class="topic-metadata">

**Author:** [@Lyn](https://root-forum.cern.ch/u/Lyn)\
**Replies:** 4\
**Last updated:** [March 7, 2025, 5:56am UTC](https://root-forum.cern.ch/t/creating-a-custom-fit-using-fitter-for-data-on-th2/63065 "2025-03-07T05:56:43Z")

</div>

Hello everyone, I’m trying to adapt CombinedFit.C (from ROOT examples) to solve my problem of optimisation. I want to fit two data sets (as TH2) to two different functions that have two parameters, both shared between t…

---

## [Skim events on values of a vector variable](https://root-forum.cern.ch/t/skim-events-on-values-of-a-vector-variable/62875)

<div class="topic-metadata">

**Author:** [@bomben](https://root-forum.cern.ch/u/bomben)\
**Replies:** 11\
**Last updated:** [March 6, 2025, 4:00pm UTC](https://root-forum.cern.ch/t/skim-events-on-values-of-a-vector-variable/62875 "2025-03-06T16:00:05Z")

</div>

Dear all, I have just started using RDataFrame and I would like to skim events based on the values of a vector variable. My tree contains tracks made out of hits from different layers. Here it is a snapshot of the tree…

---

## [CMake library does not load in root macro](https://root-forum.cern.ch/t/cmake-library-does-not-load-in-root-macro/63078)

<div class="topic-metadata">

**Author:** [@nnathans](https://root-forum.cern.ch/u/nnathans)\
**Replies:** 13\
**Last updated:** [March 5, 2025, 2:51pm UTC](https://root-forum.cern.ch/t/cmake-library-does-not-load-in-root-macro/63078 "2025-03-05T14:51:59Z")

</div>

Hi, I have been trying to use ROOT in a CMake project and have come up against an issue. I have a group of custom classes in .cxx files with associated header .h files. Now I want to create a shared dynamic dictionary,…

---

## [Converting a TGraph to a TH1D nearly works](https://root-forum.cern.ch/t/converting-a-tgraph-to-a-th1d-nearly-works/63080)

<div class="topic-metadata">

**Author:** [@atha.stam](https://root-forum.cern.ch/u/atha.stam)\
**Replies:** 4\
**Last updated:** [March 5, 2025, 1:24pm UTC](https://root-forum.cern.ch/t/converting-a-tgraph-to-a-th1d-nearly-works/63080 "2025-03-05T13:24:57Z")

</div>

ROOT Version: 6.16 Platform: 20.04 Compiler: linuxx8664gcc Dear co-rooters, I am trying to convert a TGraph to a TH1D. This is convenient because i can use the TH1 functions later on. For that I created a function…

---

## [Ratio of two TEfficiency objects](https://root-forum.cern.ch/t/ratio-of-two-tefficiency-objects/63027)

<div class="topic-metadata">

**Author:** [@smeriano](https://root-forum.cern.ch/u/smeriano)\
**Replies:** 5\
**Last updated:** [March 4, 2025, 4:45pm UTC](https://root-forum.cern.ch/t/ratio-of-two-tefficiency-objects/63027 "2025-03-04T16:45:55Z")

</div>

Hello experts, This question has been asked in the past (See Refs \[1\] , \[2\], \[3\]) but since some years passed I want to make sure we understand the correct way of dividing two TEfficiency objects. Assuming we have two …

---

## [RDataFrame Cut left out some events](https://root-forum.cern.ch/t/rdataframe-cut-left-out-some-events/63072)

<div class="topic-metadata">

**Author:** [@jbrom](https://root-forum.cern.ch/u/jbrom)\
**Replies:** 3\
**Last updated:** [March 4, 2025, 7:42am UTC](https://root-forum.cern.ch/t/rdataframe-cut-left-out-some-events/63072 "2025-03-04T07:42:45Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.32.10 Platform: win64 Compiler: MSVC 19.39.33521.0 A couple weeks ago I was attempting to make cuts on a root file using RDF an…

---

## [Issue with creating TCanvas and drawing histograms](https://root-forum.cern.ch/t/issue-with-creating-tcanvas-and-drawing-histograms/63003)

<div class="topic-metadata">

**Author:** [@jbrom](https://root-forum.cern.ch/u/jbrom)\
**Replies:** 8\
**Last updated:** [March 3, 2025, 12:08pm UTC](https://root-forum.cern.ch/t/issue-with-creating-tcanvas-and-drawing-histograms/63003 "2025-03-03T12:08:43Z")

</div>

ROOT Version: 6.34.02 Platform: win64 (Windows 11) Compiler: MSVC 19.39.33521.0 I am attempting to make some mass distribution histograms of the phi meson for 4 different beam polarizations and 10 t-ranges. I have de…

---

## [Error while running inference.py from TMVA SOFIE tutorials](https://root-forum.cern.ch/t/error-while-running-inference-py-from-tmva-sofie-tutorials/63039)

<div class="topic-metadata">

**Author:** [@Prasanna\_Kasar](https://root-forum.cern.ch/u/Prasanna_Kasar)\
**Replies:** 5\
**Last updated:** [March 3, 2025, 11:04am UTC](https://root-forum.cern.ch/t/error-while-running-inference-py-from-tmva-sofie-tutorials/63039 "2025-03-03T11:04:14Z")

</div>

Hi, I am preparing for TMVA SOFIE in this years GSoC I tried to run the inference.py tutorial from TMVA SOFIE website and I got this error: Traceback (most recent call last): File “/home/prasanna/Desktop/Prasanna/SOFI…

---

## [Sum of multiple spectra of different root files](https://root-forum.cern.ch/t/sum-of-multiple-spectra-of-different-root-files/63020)

<div class="topic-metadata">

**Author:** [@MC\_w](https://root-forum.cern.ch/u/MC_w)\
**Replies:** 3\
**Last updated:** [March 3, 2025, 9:21am UTC](https://root-forum.cern.ch/t/sum-of-multiple-spectra-of-different-root-files/63020 "2025-03-03T09:21:18Z")

</div>

Hi! I have multiple root files with the structure as in the photo. Inside the outTree I have some Tleaves. In the Ener1, I have the deposited energy of a radioactive source. I aim to sum all of the Ener1 outputs to a si…

---

## [Custom Tooltips](https://root-forum.cern.ch/t/custom-tooltips/62993)

<div class="topic-metadata">

**Author:** [@nsj](https://root-forum.cern.ch/u/nsj)\
**Replies:** 7\
**Last updated:** [March 1, 2025, 4:12am UTC](https://root-forum.cern.ch/t/custom-tooltips/62993 "2025-03-01T04:12:19Z")

</div>

Hi, Please could you give me an example for how to show a tooltip for a JSROOT object (eg filled circle) on a TCanvas? Is the “polar” drawing option supported for 2D histograms in JSROOT? Please could you tell me how …

---

## [How to Install TMVA-SOFIE in ROOT 6.34? on windows](https://root-forum.cern.ch/t/how-to-install-tmva-sofie-in-root-6-34-on-windows/63030)

<div class="topic-metadata">

**Author:** [@Sanchit](https://root-forum.cern.ch/u/Sanchit)\
**Replies:** 1\
**Last updated:** [February 27, 2025, 8:50am UTC](https://root-forum.cern.ch/t/how-to-install-tmva-sofie-in-root-6-34-on-windows/63030 "2025-02-27T08:50:28Z")

</div>

Hi ROOT Team, I am preparing for GSoC 2025 and working on the TMVA-SOFIE project. I installed ROOT 6.34 using Snap, but TMVA::SOFIE is missing when I try to use it. I would like to know: Does the current ROOT Snap p…

---

## [Convert root file to txt, csv file](https://root-forum.cern.ch/t/convert-root-file-to-txt-csv-file/58729)

<div class="topic-metadata">

**Author:** [@TianYi](https://root-forum.cern.ch/u/TianYi)\
**Replies:** 13\
**Last updated:** [February 27, 2025, 4:35am UTC](https://root-forum.cern.ch/t/convert-root-file-to-txt-csv-file/58729 "2025-02-27T04:35:27Z")

</div>

Hi all, I would like to convert the root file to a more intuitive way of storing data, such as txt, csv file format, can anyone solve this problem, thank you very much (Linux, Ubuntu 16.04, ROOT 6.10/02)

---

## [Vdt includes](https://root-forum.cern.ch/t/vdt-includes/63009)

<div class="topic-metadata">

**Author:** [@Giuseppe\_Battistoni](https://root-forum.cern.ch/u/Giuseppe_Battistoni)\
**Replies:** 15\
**Last updated:** [February 26, 2025, 4:44pm UTC](https://root-forum.cern.ch/t/vdt-includes/63009 "2025-02-26T16:44:17Z")

</div>

I am trying to compile root from source using mac M3 with system 14.7.1 After cmake, I cannot find in my build directory include/vdt and ginclude/vdt Notice that vdt is installed in my system (via MacPorts) I need the…

---

## [Reading TTree branch: vector of vectors](https://root-forum.cern.ch/t/reading-ttree-branch-vector-of-vectors/63013)

<div class="topic-metadata">

**Author:** [@cej25](https://root-forum.cern.ch/u/cej25)\
**Replies:** 8\
**Last updated:** [February 25, 2025, 6:54pm UTC](https://root-forum.cern.ch/t/reading-ttree-branch-vector-of-vectors/63013 "2025-02-25T18:54:43Z")

</div>

Hello, I have a TTree with the following branches: HitData.wr\_t – Long64\_t HitData.trace – std::vector\<Float\_t\> “wr\_t” and “trace” are members of my own class, HitData, but I want to assume someone can read this tree…

---

## [Beginner-Friendly Issues for GSoC 2025 - Getting Started with ROOT](https://root-forum.cern.ch/t/beginner-friendly-issues-for-gsoc-2025-getting-started-with-root/62982)

<div class="topic-metadata">

**Author:** [@MohanadKhaled03](https://root-forum.cern.ch/u/MohanadKhaled03)\
**Replies:** 1\
**Last updated:** [February 19, 2025, 3:21pm UTC](https://root-forum.cern.ch/t/beginner-friendly-issues-for-gsoc-2025-getting-started-with-root/62982 "2025-02-19T15:21:32Z")

</div>

Hello, Mohanad here, a Computer Science student at Ain Shams University. I am interested in contributing to the ROOT project and two projects have caught my interest (the GeneROOT and JSROOT ones) I have built ROOT’s l…

---

## [Cannot display canvas with snap package](https://root-forum.cern.ch/t/cannot-display-canvas-with-snap-package/62964)

<div class="topic-metadata">

**Author:** [@HienDoan](https://root-forum.cern.ch/u/HienDoan)\
**Replies:** 2\
**Last updated:** [February 18, 2025, 2:51pm UTC](https://root-forum.cern.ch/t/cannot-display-canvas-with-snap-package/62964 "2025-02-18T14:51:09Z")

</div>

Hello, I have install root using the snap package. sudo snap install root-framework a few days ago, so it should be one of the latest versions. Then I tried to make a graph using TTree::Draw, in the interactive mode,…

---

## [Histogram bins getting connected](https://root-forum.cern.ch/t/histogram-bins-getting-connected/62962)

<div class="topic-metadata">

**Author:** [@phylmath](https://root-forum.cern.ch/u/phylmath)\
**Replies:** 4\
**Last updated:** [February 17, 2025, 1:54pm UTC](https://root-forum.cern.ch/t/histogram-bins-getting-connected/62962 "2025-02-17T13:54:13Z")

</div>

ROOT Version: 6.32.04 Platform: WSL2 Ubuntu Hello! I am attempting to draw a histogram, however ROOT connects the individual markers. I am guessing it has something to do with the binning but cannot find a solution. A…

---

## [TBrowser Error](https://root-forum.cern.ch/t/tbrowser-error/62918)

<div class="topic-metadata">

**Author:** [@green910](https://root-forum.cern.ch/u/green910)\
**Replies:** 9\
**Last updated:** [February 15, 2025, 8:58pm UTC](https://root-forum.cern.ch/t/tbrowser-error/62918 "2025-02-15T20:58:53Z")

</div>

Dear fellow root users! I just installed root using homebrew on mac OS. I have been trying to open / run a window using the “TBrowser b;” command in the terminal but repeatedly get this error root \[0\] TBrowser b; \[ru…

---

## [Odd results when working with histograms of the same name from different files](https://root-forum.cern.ch/t/odd-results-when-working-with-histograms-of-the-same-name-from-different-files/62933)

<div class="topic-metadata">

**Author:** [@kahaeuss](https://root-forum.cern.ch/u/kahaeuss)\
**Replies:** 5\
**Last updated:** [February 14, 2025, 3:46pm UTC](https://root-forum.cern.ch/t/odd-results-when-working-with-histograms-of-the-same-name-from-different-files/62933 "2025-02-14T15:46:29Z")

</div>

Hi, I have two root files (in the example “even.root” and “odd.root”), which contain histograms with identical names (“histA” and “histB” in each of the two files). Sometimes when I merge histograms (and the merged his…

---

## [TGraphErrors member function AddPointError()](https://root-forum.cern.ch/t/tgrapherrors-member-function-addpointerror/62945)

<div class="topic-metadata">

**Author:** [@A.V.2025](https://root-forum.cern.ch/u/A.V.2025)\
**Replies:** 2\
**Last updated:** [February 14, 2025, 11:56am UTC](https://root-forum.cern.ch/t/tgrapherrors-member-function-addpointerror/62945 "2025-02-14T11:56:23Z")

</div>

Hello Rooters, I’m working on a TGraphErrors which is supposed to be filled with single points. Therefore is use the classes member function AddPointError() as stated in the documentation / class reference. Sadly the f…

---

## [Get TestTree and TrainTree after TMVA is completed](https://root-forum.cern.ch/t/get-testtree-and-traintree-after-tmva-is-completed/62942)

<div class="topic-metadata">

**Author:** [@ygr](https://root-forum.cern.ch/u/ygr)\
**Replies:** 1\
**Last updated:** [February 14, 2025, 7:56am UTC](https://root-forum.cern.ch/t/get-testtree-and-traintree-after-tmva-is-completed/62942 "2025-02-14T07:56:43Z")

</div>

TMVA writes “dataset” directory and TestTree TrainTree with its outputs. Is it possible to get those trees with a method like GetIOTree on the same macro file TMVAClassification.C without opening the output file TMVA.ro…

---

## [Area peak integration](https://root-forum.cern.ch/t/area-peak-integration/62878)

<div class="topic-metadata">

**Author:** [@Illiaklyuyev](https://root-forum.cern.ch/u/Illiaklyuyev)\
**Replies:** 1\
**Last updated:** [February 11, 2025, 3:13pm UTC](https://root-forum.cern.ch/t/area-peak-integration/62878 "2025-02-11T15:13:44Z")

</div>

Hello,fellor root users. Im now struggling with intehration of peak (area of peak calculation). Here is part of my code where i do this double integralRangeStart = f-\>GetParameter(1) - 3 \* f-\>GetParameter(2); double…

---

## [Merging two TTrees with different variables but 1 common key](https://root-forum.cern.ch/t/merging-two-ttrees-with-different-variables-but-1-common-key/55861)

<div class="topic-metadata">

**Author:** [@helton](https://root-forum.cern.ch/u/helton)\
**Replies:** 15\
**Last updated:** [February 11, 2025, 11:15am UTC](https://root-forum.cern.ch/t/merging-two-ttrees-with-different-variables-but-1-common-key/55861 "2025-02-11T11:15:37Z")

</div>

Hi everyone. I have 2 TTrees t1 and t2 from 1 .root file. I created a RDataFrame for each tree and now want to merge them. The trees contain different variables and have different amount of coloums as a rdf. But they hav…

---

## [Webpanel tutorial error](https://root-forum.cern.ch/t/webpanel-tutorial-error/62704)

<div class="topic-metadata">

**Author:** [@jerryjin](https://root-forum.cern.ch/u/jerryjin)\
**Replies:** 3\
**Last updated:** [February 11, 2025, 1:19am UTC](https://root-forum.cern.ch/t/webpanel-tutorial-error/62704 "2025-02-11T01:19:05Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version: v6-34-02 \_Platform: ubuntu 24.04 \_Compiler: gcc Hello, I’m trying webpanel tutorial under /opt/root/tutorials/webui/panel: # ro…

---

## [Should I manage pointers of double from ROOT::Math::Minimizer::X()](https://root-forum.cern.ch/t/should-i-manage-pointers-of-double-from-root-x/62828)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 1\
**Last updated:** [February 6, 2025, 8:58am UTC](https://root-forum.cern.ch/t/should-i-manage-pointers-of-double-from-root-x/62828 "2025-02-06T08:58:25Z")

</div>

Dear experts When I use a minimizer to minimize the function, I want to retrieve the parameters after it, this is how I did: fFit-\>Minimize(); //fFit is a instantiation of ROOT::Math::Minimizer double const\* pars =…

---

## [Understanding NBD Fit parameters](https://root-forum.cern.ch/t/understanding-nbd-fit-parameters/62818)

<div class="topic-metadata">

**Author:** [@phylmath](https://root-forum.cern.ch/u/phylmath)\
**Replies:** 2\
**Last updated:** [February 5, 2025, 1:15pm UTC](https://root-forum.cern.ch/t/understanding-nbd-fit-parameters/62818 "2025-02-05T13:15:00Z")

</div>

ROOT Version: 6.32.04 Platform: WSL2 Ubuntu Hello! I am performing an NBD fit to a charged hadron multiplicity curve. I define a fit function: // Fitting function TF1 \*fist = new TF1("fist", "\[0\]\*ROOT::Math::negative\_…

---

## [Chi2/ndf issue](https://root-forum.cern.ch/t/chi2-ndf-issue/62821)

<div class="topic-metadata">

**Author:** [@Illiaklyuyev](https://root-forum.cern.ch/u/Illiaklyuyev)\
**Replies:** 1\
**Last updated:** [February 5, 2025, 12:06am UTC](https://root-forum.cern.ch/t/chi2-ndf-issue/62821 "2025-02-05T00:06:06Z")

</div>

I have an issue with Chi2/ndf in fitting data on Root. For example o have fit function of sqrt(ax+b) , and data. The visual of graph is ok, i think, but the value of chi2/ndf espesialy value of chi2 is very very big. I c…

---

## [Questions about TClonesArray::Remove / ::RemoveAt](https://root-forum.cern.ch/t/questions-about-tclonesarray-remove-removeat/62777)

<div class="topic-metadata">

**Author:** [@ctacke](https://root-forum.cern.ch/u/ctacke)\
**Replies:** 3\
**Last updated:** [January 28, 2025, 10:05pm UTC](https://root-forum.cern.ch/t/questions-about-tclonesarray-remove-removeat/62777 "2025-01-28T22:05:51Z")

</div>

I was looking into the code of TClonesArray::Remove and TClonesArray::RemoveAt in comparison to the TObjArray implementation. This was somewhat confusing to me. (I will come to my use case later on.) Let’s call Remove …

---

## [How to find mode or maximum bin of a data set](https://root-forum.cern.ch/t/how-to-find-mode-or-maximum-bin-of-a-data-set/62773)

<div class="topic-metadata">

**Author:** [@Spencer\_H](https://root-forum.cern.ch/u/Spencer_H)\
**Replies:** 1\
**Last updated:** [January 28, 2025, 5:05am UTC](https://root-forum.cern.ch/t/how-to-find-mode-or-maximum-bin-of-a-data-set/62773 "2025-01-28T05:05:26Z")

</div>

ROOT Version: 6.34.02 Platform: Linux Compiler: CMake I’m new to ROOT so I’m looking for a simple way to find the mode of a data set or the x-axis value of the maximum bin in a histogram. Is there a command I can use…

---

## [TString form function with TString or string variable](https://root-forum.cern.ch/t/tstring-form-function-with-tstring-or-string-variable/62771)

<div class="topic-metadata">

**Author:** [@ygr](https://root-forum.cern.ch/u/ygr)\
**Replies:** 2\
**Last updated:** [January 27, 2025, 2:46pm UTC](https://root-forum.cern.ch/t/tstring-form-function-with-tstring-or-string-variable/62771 "2025-01-27T14:46:07Z")

</div>

I dont know if there has been a solution for this or a simple workaround that I dont know yet. I have been using TString with its Form function which is quite useful, but when it comes to including string or another TSt…

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

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