# Newbie

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

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

---

## [Minuit Software Usage and Insallation](https://root-forum.cern.ch/t/minuit-software-usage-and-insallation/49960)

<div class="topic-metadata">

**Author:** [@enggsajjad](https://root-forum.cern.ch/u/enggsajjad)\
**Replies:** 1\
**Last updated:** [May 12, 2022, 2:12pm UTC](https://root-forum.cern.ch/t/minuit-software-usage-and-insallation/49960 "2022-05-12T14:12:08Z")

</div>

Hi, I am writing on behalf of my freind, a materials engineer. He asked me that he want to use Minuit software for some error analysis/optimizations. I could not find any source code/application for Minuit. Where can …

---

## [Problem with changing axis label](https://root-forum.cern.ch/t/problem-with-changing-axis-label/49958)

<div class="topic-metadata">

**Author:** [@mzriu](https://root-forum.cern.ch/u/mzriu)\
**Replies:** 6\
**Last updated:** [May 12, 2022, 2:03pm UTC](https://root-forum.cern.ch/t/problem-with-changing-axis-label/49958 "2022-05-12T14:03:42Z")

</div>

Hello everyone, I am trying to plot a graph with certain y values with respect to their run numbers along the x-axis. Here is my code : const Int\_t n = 11; Double\_t run\[n\] = {1, 2, 3, 4, 5, 6, 7, 8, 9, …

---

## [Getting the mean value of the y-axis](https://root-forum.cern.ch/t/getting-the-mean-value-of-the-y-axis/49954)

<div class="topic-metadata">

**Author:** [@wfelix](https://root-forum.cern.ch/u/wfelix)\
**Replies:** 1\
**Last updated:** [May 12, 2022, 9:29am UTC](https://root-forum.cern.ch/t/getting-the-mean-value-of-the-y-axis/49954 "2022-05-12T09:29:09Z")

</div>

Hello, I am trying to get the mean value for my y-axis. I tried the method GetMean(2) but I only get zeros. Basically what I am trying to do: I want to get the mean value for an efficiency in a range from 3-10 GeV in t…

---

## [Inf/NaN propagated to the pad](https://root-forum.cern.ch/t/inf-nan-propagated-to-the-pad/49817)

<div class="topic-metadata">

**Author:** [@Dil](https://root-forum.cern.ch/u/Dil)\
**Replies:** 21\
**Last updated:** [May 11, 2022, 3:38pm UTC](https://root-forum.cern.ch/t/inf-nan-propagated-to-the-pad/49817 "2022-05-11T15:38:36Z")

</div>

Hello experts, I am trying to draw a histogram, but I got a empty plot because of the following warning. (TFile \*) 0x1f93330 root \[1\] h\_pion\_invariant\_mass\_Stat\_Syst-\>Draw("wo\_Inf\_NaN") Info in \<TCanvas::MakeDefCanva…

---

## [Segmentation violation when deleting object](https://root-forum.cern.ch/t/segmentation-violation-when-deleting-object/49935)

<div class="topic-metadata">

**Author:** [@amelia](https://root-forum.cern.ch/u/amelia)\
**Replies:** 2\
**Last updated:** [May 11, 2022, 3:14pm UTC](https://root-forum.cern.ch/t/segmentation-violation-when-deleting-object/49935 "2022-05-11T15:14:13Z")

</div>

Dear experts, I try to delete a TTreeSRedirector object in the destructor but it gives a segmentation violation: #6 0x00007ffb8e9b809a in TTreeSRedirector::Close() () from ~/alice/sw/ubuntu2004\_x86-64/AliRoot/222b69b9…

---

## [TGraph set maximum number of digits not working](https://root-forum.cern.ch/t/tgraph-set-maximum-number-of-digits-not-working/49928)

<div class="topic-metadata">

**Author:** [@gorsedh](https://root-forum.cern.ch/u/gorsedh)\
**Replies:** 7\
**Last updated:** [May 11, 2022, 10:43am UTC](https://root-forum.cern.ch/t/tgraph-set-maximum-number-of-digits-not-working/49928 "2022-05-11T10:43:14Z")

</div>

Hello there, I’m trying to draw some data but i’m having some issues with setting the maximum number of digits for the axis (for example see bottom left corner of the attached figure). I get this error randomly on 4 gr…

---

## [Reset the reader from TTreeReader](https://root-forum.cern.ch/t/reset-the-reader-from-ttreereader/49889)

<div class="topic-metadata">

**Author:** [@Daumann](https://root-forum.cern.ch/u/Daumann)\
**Replies:** 3\
**Last updated:** [May 6, 2022, 8:41pm UTC](https://root-forum.cern.ch/t/reset-the-reader-from-ttreereader/49889 "2022-05-06T20:41:58Z")

</div>

Hi, so I am reading a the branches of a tree in c++ with: TTreeReaderValue\<float\> mcWeight(reader, "mcWeight"); and i am looping through the events in the tree with: while( reader.Next()) {} But i need to make a loo…

---

## [Memory leak using TF1 function](https://root-forum.cern.ch/t/memory-leak-using-tf1-function/34660)

<div class="topic-metadata">

**Author:** [@pgreen](https://root-forum.cern.ch/u/pgreen)\
**Replies:** 5\
**Last updated:** [May 6, 2022, 4:42pm UTC](https://root-forum.cern.ch/t/memory-leak-using-tf1-function/34660 "2022-05-06T16:42:47Z")

</div>

Hi, I am having issues deleting TF1 functions that were created using new. Doing this repeatedly in a loop is causing a memory leak. For example: void test() { for (int i = 0; i \< 100000; i++){ TF1\* fGH\_tmp = new TF1…

---

## [Modification of a RDataFrame with an extracted column](https://root-forum.cern.ch/t/modification-of-a-rdataframe-with-an-extracted-column/49848)

<div class="topic-metadata">

**Author:** [@zazbone](https://root-forum.cern.ch/u/zazbone)\
**Replies:** 7\
**Last updated:** [May 6, 2022, 11:26am UTC](https://root-forum.cern.ch/t/modification-of-a-rdataframe-with-an-extracted-column/49848 "2022-05-06T11:26:06Z")

</div>

Hi everyone, I am having a problem using RDataFrame with two separated datasets. I’m working with a first dataset from a Geant4 simulation and a second one which is a reconstruction of a detector response to the simula…

---

## [Different size of divided canvas](https://root-forum.cern.ch/t/different-size-of-divided-canvas/49881)

<div class="topic-metadata">

**Author:** [@chaining](https://root-forum.cern.ch/u/chaining)\
**Replies:** 2\
**Last updated:** [May 6, 2022, 7:39am UTC](https://root-forum.cern.ch/t/different-size-of-divided-canvas/49881 "2022-05-06T07:39:01Z")

</div>

Dear Forum, I have problem about drawing divided canvas into different size. Part of my code is famillar as follows: TCanvas\* cc=new TCanvas(); cc-\>Divide(2,1); How could I draw 1st part of divided canvas into 80% of …

---

## [CMAKE - ROOT\_DIR= does not exist](https://root-forum.cern.ch/t/cmake-root-dir-does-not-exist/49809)

<div class="topic-metadata">

**Author:** [@csingleton19](https://root-forum.cern.ch/u/csingleton19)\
**Replies:** 9\
**Last updated:** [May 5, 2022, 4:07pm UTC](https://root-forum.cern.ch/t/cmake-root-dir-does-not-exist/49809 "2022-05-05T16:07:14Z")

</div>

ROOT Version: root\_v5.34.36 is the result of echo $ROOTSYS Platform: Ubuntu 20.04 Hello all, I’m trying to install g4beamline on my Ubuntu machine and I’ve run into some issues. Running the command cmake …/G4beamline…

---

## [LNK2019 and LNK1120](https://root-forum.cern.ch/t/lnk2019-and-lnk1120/49866)

<div class="topic-metadata">

**Author:** [@Mr.WhatZitToYa](https://root-forum.cern.ch/u/Mr.WhatZitToYa)\
**Replies:** 2\
**Last updated:** [May 5, 2022, 8:56am UTC](https://root-forum.cern.ch/t/lnk2019-and-lnk1120/49866 "2022-05-05T08:56:34Z")

</div>

Hello dear root community, I have recently started working with root, but I have a lot of C++ experience. I searched the forum for simular problems, but they wern’t any solutions that solved my problem. I am trying to t…

---

## [How to copy a branch into another root file](https://root-forum.cern.ch/t/how-to-copy-a-branch-into-another-root-file/49853)

<div class="topic-metadata">

**Author:** [@Miguel](https://root-forum.cern.ch/u/Miguel)\
**Replies:** 1\
**Last updated:** [May 5, 2022, 7:10am UTC](https://root-forum.cern.ch/t/how-to-copy-a-branch-into-another-root-file/49853 "2022-05-05T07:10:21Z")

</div>

Hi there! Let’s imagine that I have a root file, “input.root”, which contains a tree called “arb” with three branches, “a”, “b” and “c”. As this is such a chaotic structure, and considering that I only need to use the b…

---

## [4d scattering plot using custumize bin for color bar](https://root-forum.cern.ch/t/4d-scattering-plot-using-custumize-bin-for-color-bar/49832)

<div class="topic-metadata">

**Author:** [@Hamid\_Basiri](https://root-forum.cern.ch/u/Hamid_Basiri)\
**Replies:** 10\
**Last updated:** [May 5, 2022, 7:05am UTC](https://root-forum.cern.ch/t/4d-scattering-plot-using-custumize-bin-for-color-bar/49832 "2022-05-05T07:05:24Z")

</div>

Hi all I have a 4-column data and want to plot a 4d graph (3d + color). I am using tree and tree-\>Draw(“x:y:z:theta”,"",“COLZ”); but the color bar cannot be customized. Please help me if there is any other option or is …

---

## [Fit status](https://root-forum.cern.ch/t/fit-status/49838)

<div class="topic-metadata">

**Author:** [@mzriu](https://root-forum.cern.ch/u/mzriu)\
**Replies:** 1\
**Last updated:** [May 4, 2022, 8:04am UTC](https://root-forum.cern.ch/t/fit-status/49838 "2022-05-04T08:04:50Z")

</div>

Hi, I am looking for the right documentation about fit result but I can’t find it. I am using this code to fit some data : TFitResultPtr r; r = gr-\>Fit("fun\_fit", "MS", "e1", 110, 1450); This is basically using the Mi…

---

## [Texts' positions and sizes in variable-sized pads](https://root-forum.cern.ch/t/texts-positions-and-sizes-in-variable-sized-pads/49822)

<div class="topic-metadata">

**Author:** [@Y.S.Zhang](https://root-forum.cern.ch/u/Y.S.Zhang)\
**Replies:** 9\
**Last updated:** [May 4, 2022, 5:18am UTC](https://root-forum.cern.ch/t/texts-positions-and-sizes-in-variable-sized-pads/49822 "2022-05-04T05:18:53Z")

</div>

Dear ROOT experts and developers, I wonder if ROOT will provide a function to set the title offset of each axis by pixel or canvas margin. A related post is here. I would like to align the axes’ titles across different…

---

## [Error in \<RootX11IOErrorHandler\>: fatal X11 error (connection to server lost?!)](https://root-forum.cern.ch/t/error-in-rootx11ioerrorhandler-fatal-x11-error-connection-to-server-lost/49804)

<div class="topic-metadata">

**Author:** [@Dil](https://root-forum.cern.ch/u/Dil)\
**Replies:** 1\
**Last updated:** [May 2, 2022, 7:47am UTC](https://root-forum.cern.ch/t/error-in-rootx11ioerrorhandler-fatal-x11-error-connection-to-server-lost/49804 "2022-05-02T07:47:38Z")

</div>

Hello all, I am having the following problem in Xquartz when I tried to open the .root file. Xquartz is quit unexpectedly and got the following error. root \[1\] h\_missing\_piplus\_piminus-\>Draw() Info in TCanvas::MakeDe…

---

## [Saving a string variable in a root file](https://root-forum.cern.ch/t/saving-a-string-variable-in-a-root-file/49802)

<div class="topic-metadata">

**Author:** [@armin.kadlecsik](https://root-forum.cern.ch/u/armin.kadlecsik)\
**Replies:** 1\
**Last updated:** [May 1, 2022, 4:45am UTC](https://root-forum.cern.ch/t/saving-a-string-variable-in-a-root-file/49802 "2022-05-01T04:45:31Z")

</div>

Hello, I’d like to automate some things in my analysis. This would require a python script to save a string type variable to a ROOT file (along with other things, those are already implemented), so that later another sc…

---

## [Save data points (from a histogram) in a txt file](https://root-forum.cern.ch/t/save-data-points-from-a-histogram-in-a-txt-file/49768)

<div class="topic-metadata">

**Author:** [@stekoul](https://root-forum.cern.ch/u/stekoul)\
**Replies:** 18\
**Last updated:** [April 29, 2022, 4:12pm UTC](https://root-forum.cern.ch/t/save-data-points-from-a-histogram-in-a-txt-file/49768 "2022-04-29T16:12:14Z")

</div>

Dear all, I have made a TH2F histogram, let’s call it h5. The data used to plot this histogram is a very large (in terms of data quantity) .root file. So, i would like to ask you this: How can I print the x,y coordinat…

---

## [Construct the histogram with unix time on X-axis](https://root-forum.cern.ch/t/construct-the-histogram-with-unix-time-on-x-axis/49780)

<div class="topic-metadata">

**Author:** [@Roy](https://root-forum.cern.ch/u/Roy)\
**Replies:** 7\
**Last updated:** [April 29, 2022, 6:49am UTC](https://root-forum.cern.ch/t/construct-the-histogram-with-unix-time-on-x-axis/49780 "2022-04-29T06:49:10Z")

</div>

I have a same data set with the unix time and its corresponding data EX. Unix time stamp Data 1638338401- 43 1638338432- 23 1638338461- …

---

## [Creating 2D histogram with two seperate file](https://root-forum.cern.ch/t/creating-2d-histogram-with-two-seperate-file/49787)

<div class="topic-metadata">

**Author:** [@Roy](https://root-forum.cern.ch/u/Roy)\
**Replies:** 1\
**Last updated:** [April 29, 2022, 6:00am UTC](https://root-forum.cern.ch/t/creating-2d-histogram-with-two-seperate-file/49787 "2022-04-29T06:00:41Z")

</div>

I have been plotting a 2D-Histogram and I opened two different file for X and Y axis. How can I fill the plot for two seperate axis at once ‘’'void 2DHistogram() ULong64\_t nEntries = currentAna-\>GetEntries(); cout \<\< …

---

## [Reading text file and fit the plot](https://root-forum.cern.ch/t/reading-text-file-and-fit-the-plot/49776)

<div class="topic-metadata">

**Author:** [@Dil](https://root-forum.cern.ch/u/Dil)\
**Replies:** 2\
**Last updated:** [April 28, 2022, 1:07pm UTC](https://root-forum.cern.ch/t/reading-text-file-and-fit-the-plot/49776 "2022-04-28T13:07:57Z")

</div>

Hello experts, I am not sure if this error related to root or C program. Don’t understand my error. What I wanted to do is,I have two txt files and need to create the following function and fit the plot. rhoPiPi = |A…

---

## [Separate axis when dividing a canvas](https://root-forum.cern.ch/t/separate-axis-when-dividing-a-canvas/49782)

<div class="topic-metadata">

**Author:** [@mzriu](https://root-forum.cern.ch/u/mzriu)\
**Replies:** 2\
**Last updated:** [April 28, 2022, 12:35pm UTC](https://root-forum.cern.ch/t/separate-axis-when-dividing-a-canvas/49782 "2022-04-28T12:35:34Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version: 6.24/06 Platform: Not Provided Compiler: Not Provided Hi everyone, I am having trouble plotting histograms with a specified ran…

---

## [Not able to use "with TFile("input\_file\_name.root", "read") as" block with root 6.24/06](https://root-forum.cern.ch/t/not-able-to-use-with-tfile-input-file-name-root-read-as-block-with-root-6-24-06/49781)

<div class="topic-metadata">

**Author:** [@sarthchoudhary](https://root-forum.cern.ch/u/sarthchoudhary)\
**Replies:** 3\
**Last updated:** [April 28, 2022, 12:10pm UTC](https://root-forum.cern.ch/t/not-able-to-use-with-tfile-input-file-name-root-read-as-block-with-root-6-24-06/49781 "2022-04-28T12:10:48Z")

</div>

I had installed root from conda and been using both root as well as pyroot but this particular method doesn’t work. import ROOT from ROOT import TFile with TFile("new\_out\_file24.root", "read") as infile: hin = infil…

---

## [How to make a 2D (TH2I) histogram with non-equidistant binning](https://root-forum.cern.ch/t/how-to-make-a-2d-th2i-histogram-with-non-equidistant-binning/49764)

<div class="topic-metadata">

**Author:** [@Siddharth\_Parashari](https://root-forum.cern.ch/u/Siddharth_Parashari)\
**Replies:** 4\
**Last updated:** [April 28, 2022, 10:45am UTC](https://root-forum.cern.ch/t/how-to-make-a-2d-th2i-histogram-with-non-equidistant-binning/49764 "2022-04-28T10:45:02Z")

</div>

Hi, I am using a TH2I histogram with defined bins to plot detector flood maps but I need to use the same with non-equidistant binning to add some extra inactive space between the detectors. How it can be done for the sam…

---

## [2D histogram with same file](https://root-forum.cern.ch/t/2d-histogram-with-same-file/49779)

<div class="topic-metadata">

**Author:** [@Roy](https://root-forum.cern.ch/u/Roy)\
**Replies:** 3\
**Last updated:** [April 28, 2022, 5:17am UTC](https://root-forum.cern.ch/t/2d-histogram-with-same-file/49779 "2022-04-28T05:17:34Z")

</div>

I have a same .txt file with data and UNIX time. Is there a way so that I can produce a 2D-histogram with the same txt file? Thank You so much.

---

## [Fatal error: 'new' file not found](https://root-forum.cern.ch/t/fatal-error-new-file-not-found/49759)

<div class="topic-metadata">

**Author:** [@meliodafuu](https://root-forum.cern.ch/u/meliodafuu)\
**Replies:** 5\
**Last updated:** [April 27, 2022, 7:26am UTC](https://root-forum.cern.ch/t/fatal-error-new-file-not-found/49759 "2022-04-27T07:26:52Z")

</div>

Hey, I´m trying to run ROOT but I get this error: fatal error: 'new' file not found #include \<new\> ^~~~~ Assertion failed: OldBuilder-\>DeferredDeclsToEmit.empty() && "Should have emitted all decls deferred to …

---

## [Change path using setenv](https://root-forum.cern.ch/t/change-path-using-setenv/49750)

<div class="topic-metadata">

**Author:** [@Samer\_hisham](https://root-forum.cern.ch/u/Samer_hisham)\
**Replies:** 1\
**Last updated:** [April 26, 2022, 4:19pm UTC](https://root-forum.cern.ch/t/change-path-using-setenv/49750 "2022-04-26T16:19:08Z")

</div>

Hello, i am using root but i have installed older version and want to add it to my path export ROOTSYS=/Users/eyad/samer/programs/root export PATH=$ROOTSYS/bin:$PATH export LD\_LIBRARY\_PATH=$ROOTSYS/lib:$LD\_LIBRARY\_PATH …

---

## [Systematic error bar per bin](https://root-forum.cern.ch/t/systematic-error-bar-per-bin/49739)

<div class="topic-metadata">

**Author:** [@Dil](https://root-forum.cern.ch/u/Dil)\
**Replies:** 3\
**Last updated:** [April 26, 2022, 2:09pm UTC](https://root-forum.cern.ch/t/systematic-error-bar-per-bin/49739 "2022-04-26T14:09:36Z")

</div>

Hello Rooters, I need your help to figure out this. I have two histograms as follows. h1-\>Fill(variable, weight); h1-\>sumW2(); h2-\>Fill(variable, weight\_uncertainty); What could be the total statistics + systematics…

---

## [Weights in TMVA](https://root-forum.cern.ch/t/weights-in-tmva/49706)

<div class="topic-metadata">

**Author:** [@JunKai](https://root-forum.cern.ch/u/JunKai)\
**Replies:** 1\
**Last updated:** [April 26, 2022, 10:47am UTC](https://root-forum.cern.ch/t/weights-in-tmva/49706 "2022-04-26T10:47:05Z")

</div>

I am doing a binary classification with BDT (AdaBoost) from TMVA. I have S/B events in equal amount (say 1M each) for the training. But in the simulation data, S/B are actually in the ratio of 1/9. In order for the t…

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

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