# Newbie

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

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

---

## [Special Characters in hist title](https://root-forum.cern.ch/t/special-characters-in-hist-title/45158)

<div class="topic-metadata">

**Author:** [@TomS](https://root-forum.cern.ch/u/TomS)\
**Replies:** 1\
**Last updated:** [May 31, 2021, 11:58am UTC](https://root-forum.cern.ch/t/special-characters-in-hist-title/45158 "2021-05-31T11:58:28Z")

</div>

Hello, Does anybody know how to include polish characters (ą, ę, ń, ó) in histogram title and name ? Title and name are char strings and they are coded in ASCII I suppose. Is it possible to use UTF-8?

---

## [Fill a th2 independently (x,y)](https://root-forum.cern.ch/t/fill-a-th2-independently-x-y/45136)

<div class="topic-metadata">

**Author:** [@IKoro](https://root-forum.cern.ch/u/IKoro)\
**Replies:** 5\
**Last updated:** [May 28, 2021, 2:23pm UTC](https://root-forum.cern.ch/t/fill-a-th2-independently-x-y/45136 "2021-05-28T14:23:51Z")

</div>

Hello, I would like to plot a TH2D with in x the load for a certain “om” and in y the load with another “om”. The problem is that I don’t know how to fill only the x part of TH2 and the y part independently. void OMco…

---

## [Error trying to use functions from Mathmore](https://root-forum.cern.ch/t/error-trying-to-use-functions-from-mathmore/45099)

<div class="topic-metadata">

**Author:** [@rpitta](https://root-forum.cern.ch/u/rpitta)\
**Replies:** 2\
**Last updated:** [May 27, 2021, 6:24pm UTC](https://root-forum.cern.ch/t/error-trying-to-use-functions-from-mathmore/45099 "2021-05-27T18:24:38Z")

</div>

I’m getting the following error when I try to run a root macro in bash terminal (root -l -b mymacro.C) or when a load the macro manually in root.: IncrementalExecutor::executeFunction: symbol ‘\_ZN4ROOT4Math6expintEd’ u…

---

## [Arguments when Calling a Function](https://root-forum.cern.ch/t/arguments-when-calling-a-function/45114)

<div class="topic-metadata">

**Author:** [@gabvamp](https://root-forum.cern.ch/u/gabvamp)\
**Replies:** 1\
**Last updated:** [May 27, 2021, 2:18pm UTC](https://root-forum.cern.ch/t/arguments-when-calling-a-function/45114 "2021-05-27T14:18:00Z")

</div>

Hi, I’m new to programming in ROOT (and C in general). I was wondering about the arguments in main functions. I’ve noticed that most main functions that I’ve seen begin with the arguments/parameters shown below. How exac…

---

## [Code doesnt work in fedora but works fine in ubuntu?](https://root-forum.cern.ch/t/code-doesnt-work-in-fedora-but-works-fine-in-ubuntu/45088)

<div class="topic-metadata">

**Author:** [@dpkkumr](https://root-forum.cern.ch/u/dpkkumr)\
**Replies:** 2\
**Last updated:** [May 27, 2021, 11:48am UTC](https://root-forum.cern.ch/t/code-doesnt-work-in-fedora-but-works-fine-in-ubuntu/45088 "2021-05-27T11:48:56Z")

</div>

I just installed root in my fedora34 and got some big code from my boss. all code works fine in Ubuntu (root 6.20) but when i run them, there are many error like some header files not included(i solved them) but again i…

---

## [Error calling Migrad in python](https://root-forum.cern.ch/t/error-calling-migrad-in-python/43822)

<div class="topic-metadata">

**Author:** [@roodman](https://root-forum.cern.ch/u/roodman)\
**Replies:** 5\
**Last updated:** [May 26, 2021, 4:07pm UTC](https://root-forum.cern.ch/t/error-calling-migrad-in-python/43822 "2021-05-26T16:07:47Z")

</div>

I am getting the following error: TypeError: int TMinuit::Migrad() =\> TypeError: callable was deleted when calling: import ROOT gMinuit = ROOT.TMinuit(10) # setup the function, etc... gMinuit.Migrad() This is wit…

---

## [Critical error detected c0000374](https://root-forum.cern.ch/t/critical-error-detected-c0000374/45074)

<div class="topic-metadata">

**Author:** [@msdewey](https://root-forum.cern.ch/u/msdewey)\
**Replies:** 2\
**Last updated:** [May 27, 2021, 10:50am UTC](https://root-forum.cern.ch/t/critical-error-detected-c0000374/45074 "2021-05-27T10:50:33Z")

</div>

Hi, I have this code that iterates through a root file that contains a bunch of histograms. I’m fitting each one to a Gaussian and writing the results to a text file. Here is the essence of the code (Parameters is a f…

---

## [Retrieve TPad ranges after DrawFrame](https://root-forum.cern.ch/t/retrieve-tpad-ranges-after-drawframe/45085)

<div class="topic-metadata">

**Author:** [@gasar8](https://root-forum.cern.ch/u/gasar8)\
**Replies:** 4\
**Last updated:** [May 26, 2021, 12:45pm UTC](https://root-forum.cern.ch/t/retrieve-tpad-ranges-after-drawframe/45085 "2021-05-26T12:45:30Z")

</div>

I am adding a vertical line to a ratio plot TPad and want it to go from bottom all the way up to the top of the pad. I successfully achieved this either by getting the y range via pad-\>GetUymin() / max() or by pad-\>GetRa…

---

## [Minuit2 Changing only 1 out of four parameters in ChiSquared minimization](https://root-forum.cern.ch/t/minuit2-changing-only-1-out-of-four-parameters-in-chisquared-minimization/45044)

<div class="topic-metadata">

**Author:** [@christianwos83](https://root-forum.cern.ch/u/christianwos83)\
**Replies:** 3\
**Last updated:** [May 26, 2021, 11:16am UTC](https://root-forum.cern.ch/t/minuit2-changing-only-1-out-of-four-parameters-in-chisquared-minimization/45044 "2021-05-26T11:16:14Z")

</div>

Dear all, I am using Minuit2 to find the best values of four parameters through chi-squared minimization. For some reason, Minuit2 seems to change only one of these parameters, namely params\[3\], regardless of what I set…

---

## [TVirtual Fitter use Quiet Option](https://root-forum.cern.ch/t/tvirtual-fitter-use-quiet-option/44840)

<div class="topic-metadata">

**Author:** [@GiorgioDC](https://root-forum.cern.ch/u/GiorgioDC)\
**Replies:** 1\
**Last updated:** [May 17, 2021, 6:55am UTC](https://root-forum.cern.ch/t/tvirtual-fitter-use-quiet-option/44840 "2021-05-17T06:55:51Z")

</div>

I am performing a big amount of minimizations with TVirtualFitter. The minimization works correctly but i do not appear to be able to turn off the printing of all the steps of the fits on screen. I already have the lines…

---

## [Issues understanding BuildIndex()](https://root-forum.cern.ch/t/issues-understanding-buildindex/45002)

<div class="topic-metadata">

**Author:** [@PPierre](https://root-forum.cern.ch/u/PPierre)\
**Replies:** 1\
**Last updated:** [May 20, 2021, 8:31pm UTC](https://root-forum.cern.ch/t/issues-understanding-buildindex/45002 "2021-05-20T20:31:53Z")

</div>

Hi Root users, I do not understand the command myTree-\>BuildIndex( major, minor). Why root need 2 arguments in this function and what will root do with it ? I’m sorry I don’t get the concept of major sort and minor sor…

---

## [Issues reading a single value in a Branch](https://root-forum.cern.ch/t/issues-reading-a-single-value-in-a-branch/45003)

<div class="topic-metadata">

**Author:** [@PPierre](https://root-forum.cern.ch/u/PPierre)\
**Replies:** 4\
**Last updated:** [May 20, 2021, 8:08pm UTC](https://root-forum.cern.ch/t/issues-reading-a-single-value-in-a-branch/45003 "2021-05-20T20:08:37Z")

</div>

Hi, I’m having an issue when trying to read a single values of a branch in my TTree. Here is a snippet of my root interpreter where a is my TTree : a-\>GetEntry(1125103); a-\>Show() ======\> EVENT:1125103 batch\_index …

---

## [Axes and grid with different divisions](https://root-forum.cern.ch/t/axes-and-grid-with-different-divisions/44979)

<div class="topic-metadata">

**Author:** [@CaueEvangelista](https://root-forum.cern.ch/u/CaueEvangelista)\
**Replies:** 1\
**Last updated:** [May 20, 2021, 7:38am UTC](https://root-forum.cern.ch/t/axes-and-grid-with-different-divisions/44979 "2021-05-20T07:38:18Z")

</div>

Hello all! This is a very naive issue. I’m trying to plot a 2D histogram with a grid. My histogram covers a region from -0.5 to 0.5, both in eta and phi. My original ideia was to set a 0.02 x 0.02 grid, and so I create…

---

## [Making the numbers in the axis bigger](https://root-forum.cern.ch/t/making-the-numbers-in-the-axis-bigger/44939)

<div class="topic-metadata">

**Author:** [@Cesar1](https://root-forum.cern.ch/u/Cesar1)\
**Replies:** 3\
**Last updated:** [May 18, 2021, 1:17pm UTC](https://root-forum.cern.ch/t/making-the-numbers-in-the-axis-bigger/44939 "2021-05-18T13:17:01Z")

</div>

Dear experts, I think it is a very simple thing, but sadly, i am struggling with it. I want to make the numbers in the y and x axis bigger, like (5,10,…) . I have more than 1 histogram plotted in the plot. I tried to us…

---

## [Problem with fitting ATan function](https://root-forum.cern.ch/t/problem-with-fitting-atan-function/44941)

<div class="topic-metadata">

**Author:** [@gorsedh](https://root-forum.cern.ch/u/gorsedh)\
**Replies:** 1\
**Last updated:** [May 18, 2021, 7:54am UTC](https://root-forum.cern.ch/t/problem-with-fitting-atan-function/44941 "2021-05-18T07:54:36Z")

</div>

fasi.txt (1.8 KB) main.cpp (663 Bytes) macro.cpp (534 Bytes) Hello, I’m trying to fit a set of data but (even after initialising the parameters) i’m getting this error several times: Error in TFormula::Eval: Formula…

---

## [Can't get histogram to draw after reading from .root file](https://root-forum.cern.ch/t/cant-get-histogram-to-draw-after-reading-from-root-file/44937)

<div class="topic-metadata">

**Author:** [@Jacob\_Repucci](https://root-forum.cern.ch/u/Jacob_Repucci)\
**Replies:** 1\
**Last updated:** [May 17, 2021, 10:20pm UTC](https://root-forum.cern.ch/t/cant-get-histogram-to-draw-after-reading-from-root-file/44937 "2021-05-17T22:20:22Z")

</div>

I’m trying to write some code that reads in a histogram from a .root file and then graphs it. However, for whatever reason, when I run the code, it reads in the histogram fine (according to a cout statement which says I …

---

## [Drawing dose volume histograms (DVHs)](https://root-forum.cern.ch/t/drawing-dose-volume-histograms-dvhs/44858)

<div class="topic-metadata">

**Author:** [@Keyvan\_Tabaei](https://root-forum.cern.ch/u/Keyvan_Tabaei)\
**Replies:** 3\
**Last updated:** [May 17, 2021, 8:52pm UTC](https://root-forum.cern.ch/t/drawing-dose-volume-histograms-dvhs/44858 "2021-05-17T20:52:44Z")

</div>

Hi I want to draw Dose Volume Histograms(DVHs). I get TH3D dose distribution output from the geant4 Monte Carlo simulation. I don’t know if there is a direct or simple way by ROOT for drawing DVHs. I did some try on …

---

## [Root critical error and crash](https://root-forum.cern.ch/t/root-critical-error-and-crash/44917)

<div class="topic-metadata">

**Author:** [@pr1vatejoker](https://root-forum.cern.ch/u/pr1vatejoker)\
**Replies:** 1\
**Last updated:** [May 17, 2021, 9:13am UTC](https://root-forum.cern.ch/t/root-critical-error-and-crash/44917 "2021-05-17T09:13:22Z")

</div>

Hello! I started using root 2 months ago and done some examples from Cerns summer school, and everyhing worked fine. Back then I had install microsoft visual studio 2019 ver.16.9.3. After upgrade of MVS to ver.16.9.4 i …

---

## [Segmentation fault with RooDataSet](https://root-forum.cern.ch/t/segmentation-fault-with-roodataset/44845)

<div class="topic-metadata">

**Author:** [@wrettie](https://root-forum.cern.ch/u/wrettie)\
**Replies:** 1\
**Last updated:** [May 17, 2021, 6:21am UTC](https://root-forum.cern.ch/t/segmentation-fault-with-roodataset/44845 "2021-05-17T06:21:38Z")

</div>

Hi everyone, First time posting here. I have an issue that I believe stems from using the .add() function for a RooDataSet. ROOT Version: 6.20.06 Language: C++ Compiler: gcc 8 The main goal of the macro is to open .…

---

## [Is there a TH1::Scale that includes error propagation on the scaling term?](https://root-forum.cern.ch/t/is-there-a-th1-scale-that-includes-error-propagation-on-the-scaling-term/44846)

<div class="topic-metadata">

**Author:** [@eggsAndCoffee](https://root-forum.cern.ch/u/eggsAndCoffee)\
**Replies:** 2\
**Last updated:** [May 17, 2021, 5:59am UTC](https://root-forum.cern.ch/t/is-there-a-th1-scale-that-includes-error-propagation-on-the-scaling-term/44846 "2021-05-17T05:59:17Z")

</div>

Hello, I have an application where I am scaling a histogram by a factor that itself has an uncertainty associated with it. Is there a function with the TH1 class that would multiply the histogram and propagate the error…

---

## [Problem with main() and no output root file](https://root-forum.cern.ch/t/problem-with-main-and-no-output-root-file/44865)

<div class="topic-metadata">

**Author:** [@Noobnewbie](https://root-forum.cern.ch/u/Noobnewbie)\
**Replies:** 10\
**Last updated:** [May 14, 2021, 9:44am UTC](https://root-forum.cern.ch/t/problem-with-main-and-no-output-root-file/44865 "2021-05-14T09:44:31Z")

</div>

By running main.cc and with data.root, I should make analyzetree.root output file, but it seems the code is not working and I don’t see any error. Please give me your insight. main.cc (2.5 KB) Please read tips for effi…

---

## [Can i increase the number of bins?](https://root-forum.cern.ch/t/can-i-increase-the-number-of-bins/44857)

<div class="topic-metadata">

**Author:** [@Cesar1](https://root-forum.cern.ch/u/Cesar1)\
**Replies:** 2\
**Last updated:** [May 13, 2021, 4:31pm UTC](https://root-forum.cern.ch/t/can-i-increase-the-number-of-bins/44857 "2021-05-13T16:31:51Z")

</div>

Dear experts, I am trying to understand if i can increase the numbers of bins in a read histogram from a file. I know the .Rebin() can decrease the number of bins, but can it increase it?

---

## [Sort a double array](https://root-forum.cern.ch/t/sort-a-double-array/44821)

<div class="topic-metadata">

**Author:** [@Keyvan\_Tabaei](https://root-forum.cern.ch/u/Keyvan_Tabaei)\
**Replies:** 3\
**Last updated:** [May 11, 2021, 8:30pm UTC](https://root-forum.cern.ch/t/sort-a-double-array/44821 "2021-05-11T20:30:15Z")

</div>

hi i have a double array with 1000000 elements(size). how can i sort it in increasing order ? i tried Bubble Sort algorithm,it crashed. thanks,

---

## [Unexpected Output from Minuit2](https://root-forum.cern.ch/t/unexpected-output-from-minuit2/44809)

<div class="topic-metadata">

**Author:** [@christianwos83](https://root-forum.cern.ch/u/christianwos83)\
**Replies:** 2\
**Last updated:** [May 11, 2021, 1:04pm UTC](https://root-forum.cern.ch/t/unexpected-output-from-minuit2/44809 "2021-05-11T13:04:48Z")

</div>

Hello everyone, I am having some issues understanding the output of a chi squared minimization that I am performing with Minuit2. I have the stand alone version of Minuit2 6.15. Below is my code. What I wanted to do wa…

---

## [Analysis of Pythia Events using ROOT](https://root-forum.cern.ch/t/analysis-of-pythia-events-using-root/44815)

<div class="topic-metadata">

**Author:** [@ChinmaySeth](https://root-forum.cern.ch/u/ChinmaySeth)\
**Replies:** 3\
**Last updated:** [May 11, 2021, 1:15pm UTC](https://root-forum.cern.ch/t/analysis-of-pythia-events-using-root/44815 "2021-05-11T13:15:14Z")

</div>

Hi, I want to generate events using Pythia and save them in Trees( as a .root file). Then I want to write a root program to read the above file as an input and perform analysis(multiplicity/eta distribution etc). Althou…

---

## [Looping through root files, plot histograms and record values to an output file](https://root-forum.cern.ch/t/looping-through-root-files-plot-histograms-and-record-values-to-an-output-file/44810)

<div class="topic-metadata">

**Author:** [@rootNewbie](https://root-forum.cern.ch/u/rootNewbie)\
**Replies:** 4\
**Last updated:** [May 11, 2021, 11:04am UTC](https://root-forum.cern.ch/t/looping-through-root-files-plot-histograms-and-record-values-to-an-output-file/44810 "2021-05-11T11:04:24Z")

</div>

Hello all, I am trying to loop through a folder containing about 150 ntuple root files with a TTree histogram called EdepNTuple;1 stored in each of them. My goal is to plot the histogram with log(y) axis, save the canva…

---

## [Analysis of the example 'fitConvolution.C' in Fit Tutorial](https://root-forum.cern.ch/t/analysis-of-the-example-fitconvolution-c-in-fit-tutorial/44743)

<div class="topic-metadata">

**Author:** [@nefedov](https://root-forum.cern.ch/u/nefedov)\
**Replies:** 2\
**Last updated:** [May 8, 2021, 2:39pm UTC](https://root-forum.cern.ch/t/analysis-of-the-example-fitconvolution-c-in-fit-tutorial/44743 "2021-05-08T14:39:57Z")

</div>

Hello, I’m not sure that I am writing to the right place, but I hope you correct me. The example ‘fitConvolution.C’ in the fitting tutorial is very vague and, moreover, it seems to me contains an error. The result o…

---

## [How to use IntegralError?](https://root-forum.cern.ch/t/how-to-use-integralerror/44724)

<div class="topic-metadata">

**Author:** [@meu](https://root-forum.cern.ch/u/meu)\
**Replies:** 4\
**Last updated:** [May 7, 2021, 7:24am UTC](https://root-forum.cern.ch/t/how-to-use-integralerror/44724 "2021-05-07T07:24:05Z")

</div>

Hi, everyone I have a question about using IntegralError. I refered to next URL. https://root.cern.ch/doc/master/classTF1.html#af785051fd4b259fd13601023f2adb5f9 I used this example for my code. TFitResultPtr r = hist…

---

## [Modify a path for each loop of the function "for"](https://root-forum.cern.ch/t/modify-a-path-for-each-loop-of-the-function-for/44742)

<div class="topic-metadata">

**Author:** [@IKoro](https://root-forum.cern.ch/u/IKoro)\
**Replies:** 3\
**Last updated:** [May 6, 2021, 6:42pm UTC](https://root-forum.cern.ch/t/modify-a-path-for-each-loop-of-the-function-for/44742 "2021-05-06T18:42:57Z")

</div>

Hello, I want to save several histograms in a folder that I draw in a “for” loop. The histograms plot well but when I try to save them using print, the histogram from the previous loop erases the histogram from the next…

---

## [Colour palette on TH2 does not move with margin resizing](https://root-forum.cern.ch/t/colour-palette-on-th2-does-not-move-with-margin-resizing/44739)

<div class="topic-metadata">

**Author:** [@eggsAndCoffee](https://root-forum.cern.ch/u/eggsAndCoffee)\
**Replies:** 1\
**Last updated:** [May 6, 2021, 4:07pm UTC](https://root-forum.cern.ch/t/colour-palette-on-th2-does-not-move-with-margin-resizing/44739 "2021-05-06T16:07:17Z")

</div>

Hello, I am generating some figures in a loop, and I would like to move the right margin so that when I draw a TH2D object and add a title to the z-axis the title is actually visible. However, the colour palette does no…

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

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