# Newbie

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

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

---

## [Merging trees in root](https://root-forum.cern.ch/t/merging-trees-in-root/54347)

<div class="topic-metadata">

**Author:** [@Jonathan\_Baltazar](https://root-forum.cern.ch/u/Jonathan_Baltazar)\
**Replies:** 3\
**Last updated:** [April 4, 2023, 11:35am UTC](https://root-forum.cern.ch/t/merging-trees-in-root/54347 "2023-04-04T11:35:13Z")

</div>

Hi, I am trying to Merge 2 or 3 LHEF trees using root. My final TTree has the correct structure, but the values are not saved. The relavant code is the following. The Init function just sets the branch adresses of the in…

---

## [Data Fitting](https://root-forum.cern.ch/t/data-fitting/54354)

<div class="topic-metadata">

**Author:** [@tthakare](https://root-forum.cern.ch/u/tthakare)\
**Replies:** 2\
**Last updated:** [April 4, 2023, 10:30am UTC](https://root-forum.cern.ch/t/data-fitting/54354 "2023-04-04T10:30:29Z")

</div>

Hello there! I am doing Bs to Jpsi f2prime analysis in my maser’s project. I am stuck at one point. I am trying to fit model to data. I am trying trying to fit 3 peaking background to Bs-\>J/psi f2prime. But I do not have…

---

## [How to draw a letter like the caligraphic L used for Luminosity (\\mathcal{L} in Latex)?](https://root-forum.cern.ch/t/how-to-draw-a-letter-like-the-caligraphic-l-used-for-luminosity-mathcal-l-in-latex/54345)

<div class="topic-metadata">

**Author:** [@Zajo](https://root-forum.cern.ch/u/Zajo)\
**Replies:** 1\
**Last updated:** [April 3, 2023, 1:52pm UTC](https://root-forum.cern.ch/t/how-to-draw-a-letter-like-the-caligraphic-l-used-for-luminosity-mathcal-l-in-latex/54345 "2023-04-03T13:52:35Z")

</div>

Hi, I am aware that in the past this question had been asked and negative answers were given. But the posts were a cpouple of years old and some kind of TODO list has been always mentioned, so I am just checking. Is th…

---

## [How to plot the X and Y axis projection on a 3D plot](https://root-forum.cern.ch/t/how-to-plot-the-x-and-y-axis-projection-on-a-3d-plot/54309)

<div class="topic-metadata">

**Author:** [@gini](https://root-forum.cern.ch/u/gini)\
**Replies:** 8\
**Last updated:** [April 3, 2023, 1:31pm UTC](https://root-forum.cern.ch/t/how-to-plot-the-x-and-y-axis-projection-on-a-3d-plot/54309 "2023-04-03T13:31:15Z")

</div>

Hi, I am plotting a 3D plot (mass-energy spectrum with 2D fitting): In the plot I would like to plot the projection of the TKE axis as well as the mass axis to show the 1D spectrum (in the white space opposite to th…

---

## [How to find 2D Histogram min and max value](https://root-forum.cern.ch/t/how-to-find-2d-histogram-min-and-max-value/54306)

<div class="topic-metadata">

**Author:** [@Goktug\_Bayram](https://root-forum.cern.ch/u/Goktug_Bayram)\
**Replies:** 4\
**Last updated:** [March 31, 2023, 3:45pm UTC](https://root-forum.cern.ch/t/how-to-find-2d-histogram-min-and-max-value/54306 "2023-03-31T15:45:01Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided Hello Dear experts, I having a problem with 2D histogram. I am trying…

---

## [Using a member function in a functor](https://root-forum.cern.ch/t/using-a-member-function-in-a-functor/54278)

<div class="topic-metadata">

**Author:** [@leonardi](https://root-forum.cern.ch/u/leonardi)\
**Replies:** 3\
**Last updated:** [March 30, 2023, 7:52am UTC](https://root-forum.cern.ch/t/using-a-member-function-in-a-functor/54278 "2023-03-30T07:52:21Z")

</div>

ROOT Version: 6.08/02 Platform: Linux CentOS 7 Compiler: ROOT interpreter I am trying to minimize a user defined function. Looking at some online documentation, I found several examples which use a Functor as input …

---

## [Augmenting Cling with Custom Functions](https://root-forum.cern.ch/t/augmenting-cling-with-custom-functions/53250)

<div class="topic-metadata">

**Author:** [@salz-root](https://root-forum.cern.ch/u/salz-root)\
**Replies:** 18\
**Last updated:** [March 29, 2023, 5:02pm UTC](https://root-forum.cern.ch/t/augmenting-cling-with-custom-functions/53250 "2023-03-29T17:02:17Z")

</div>

I had asked about building a custom interpreter using root in this post . I was pointed to this cling-demo as a possible solution. I downloaded and built cling and built the cling-demo. However, what it does is not wha…

---

## [Using TF1 functions](https://root-forum.cern.ch/t/using-tf1-functions/54272)

<div class="topic-metadata">

**Author:** [@leonardi](https://root-forum.cern.ch/u/leonardi)\
**Replies:** 4\
**Last updated:** [March 29, 2023, 10:06am UTC](https://root-forum.cern.ch/t/using-tf1-functions/54272 "2023-03-29T10:06:05Z")

</div>

ROOT Version: 6.08/02 Platform: Linux CentOS 7 Compiler: Root macro In a ROOT macro I am defining a TF1 function to be used in histogram fitting. The function depends on some variables defined in the main program. A…

---

## [Fitting Spline functions but get NaN value](https://root-forum.cern.ch/t/fitting-spline-functions-but-get-nan-value/54271)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 1\
**Last updated:** [March 29, 2023, 6:56am UTC](https://root-forum.cern.ch/t/fitting-spline-functions-but-get-nan-value/54271 "2023-03-29T06:56:03Z")

</div>

Dear Experts I want to read some values from several files, and fit the points to several spline functions, but when I check the output file, only the points from the first input file were successfully fitted, others gi…

---

## [TFile PyROOT: TypeError: none of the 2 overloaded methods succeeded](https://root-forum.cern.ch/t/tfile-pyroot-typeerror-none-of-the-2-overloaded-methods-succeeded/54265)

<div class="topic-metadata">

**Author:** [@xaratustra](https://root-forum.cern.ch/u/xaratustra)\
**Replies:** 4\
**Last updated:** [March 28, 2023, 2:17pm UTC](https://root-forum.cern.ch/t/tfile-pyroot-typeerror-none-of-the-2-overloaded-methods-succeeded/54265 "2023-03-28T14:17:51Z")

</div>

I get the above mentioned error while trying to open a file: ff=TFile('blah.root', 'recreate') ff.close() same happens with the with style. A similar issue has been posted here. There it seems that the problem would be…

---

## [Error in executing main91 of pythia example](https://root-forum.cern.ch/t/error-in-executing-main91-of-pythia-example/54258)

<div class="topic-metadata">

**Author:** [@Songshaptak\_De](https://root-forum.cern.ch/u/Songshaptak_De)\
**Replies:** 1\
**Last updated:** [March 28, 2023, 7:14am UTC](https://root-forum.cern.ch/t/error-in-executing-main91-of-pythia-example/54258 "2023-03-28T07:14:09Z")

</div>

Upon error-free compilation, when I am trying to run the main91.cc code in Pythia example folder, I am encountering the following error, error while loading shared libraries: libThread.so.6.20: cannot open shared objec…

---

## [I cannot draw multiple histogram](https://root-forum.cern.ch/t/i-cannot-draw-multiple-histogram/54202)

<div class="topic-metadata">

**Author:** [@DAVIDE\_GATTI](https://root-forum.cern.ch/u/DAVIDE_GATTI)\
**Replies:** 12\
**Last updated:** [March 26, 2023, 8:27am UTC](https://root-forum.cern.ch/t/i-cannot-draw-multiple-histogram/54202 "2023-03-26T08:27:40Z")

</div>

I’m trying to read a file with many columns, where each column corresponds to an element for which I need to draw a histogram. The columns I’m interested in are the fourth, the fifth, the seventh and so on. I tried writ…

---

## [OriginPro and root](https://root-forum.cern.ch/t/originpro-and-root/36157)

<div class="topic-metadata">

**Author:** [@bg92](https://root-forum.cern.ch/u/bg92)\
**Replies:** 4\
**Last updated:** [September 27, 2019, 9:03am UTC](https://root-forum.cern.ch/t/originpro-and-root/36157 "2019-09-27T09:03:07Z")

</div>

Bonjour, just have a quick question: do you guys plan do explore with ROOT7 the possibility to manipulate a data file (ascii/dat file with several columns for instance) as easily as OriginPro can do, for instance: I …

---

## [Array of vectors in a root Tree](https://root-forum.cern.ch/t/array-of-vectors-in-a-root-tree/54041)

<div class="topic-metadata">

**Author:** [@Sbecka](https://root-forum.cern.ch/u/Sbecka)\
**Replies:** 3\
**Last updated:** [March 25, 2023, 2:47am UTC](https://root-forum.cern.ch/t/array-of-vectors-in-a-root-tree/54041 "2023-03-25T02:47:47Z")

</div>

Hello, I have written as array of vectors of type UShort\_t in a root tree output file. I declared it as, vector\<UShort\_t\> test\[20\] (it has to be type UShort\_t). While trying to make the selector files from the root Tre…

---

## [Problem in drawing equal sized stacked pads](https://root-forum.cern.ch/t/problem-in-drawing-equal-sized-stacked-pads/54194)

<div class="topic-metadata">

**Author:** [@gini](https://root-forum.cern.ch/u/gini)\
**Replies:** 9\
**Last updated:** [March 24, 2023, 12:46pm UTC](https://root-forum.cern.ch/t/problem-in-drawing-equal-sized-stacked-pads/54194 "2023-03-24T12:46:13Z")

</div>

Hi, I would like to plot histograms stacked and the following is the outline of the macro I use : { gStyle-\>SetOptStat(0); gStyle-\>SetOptFit(0); // DEFINING CANVAS TCanvas \*c1 = new TCanvas("c1","JAEA Mass Distributi…

---

## [How to use colType in RDF::FromCSV?](https://root-forum.cern.ch/t/how-to-use-coltype-in-rdf-fromcsv/54155)

<div class="topic-metadata">

**Author:** [@JSHeines](https://root-forum.cern.ch/u/JSHeines)\
**Replies:** 3\
**Last updated:** [March 23, 2023, 2:01pm UTC](https://root-forum.cern.ch/t/how-to-use-coltype-in-rdf-fromcsv/54155 "2023-03-23T14:01:53Z")

</div>

Hi, I’m trying to read a text file into an RDataFrame, and need to specify that all columns should be of type Double\_t. Here is a toy example to illustrate: { std::ofstream outfile; outfile.open("./toydata.csv");…

---

## [Error: \_sigtramp (no debug info) (ROOT6)](https://root-forum.cern.ch/t/error-sigtramp-no-debug-info-root6/54174)

<div class="topic-metadata">

**Author:** [@Marcos\_Ng](https://root-forum.cern.ch/u/Marcos_Ng)\
**Replies:** 11\
**Last updated:** [March 22, 2023, 5:37pm UTC](https://root-forum.cern.ch/t/error-sigtramp-no-debug-info-root6/54174 "2023-03-22T17:37:32Z")

</div>

I have a piece of code that was previously working on ROOT5, but now I’m encountering some issues when trying to run it on ROOT6. I’m hoping to get some help in making this code compatible with ROOT6. This code runs abo…

---

## ["./configure --with-root=root-installation-directory" is not working](https://root-forum.cern.ch/t/configure-with-root-root-installation-directory-is-not-working/54049)

<div class="topic-metadata">

**Author:** [@Ace](https://root-forum.cern.ch/u/Ace)\
**Replies:** 3\
**Last updated:** [March 21, 2023, 9:37pm UTC](https://root-forum.cern.ch/t/configure-with-root-root-installation-directory-is-not-working/54049 "2023-03-21T21:37:42Z")

</div>

Ubuntu version (virtualbox) - 22.04 g++ (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0 ROOT Version: 6.28/00 Pythia8307 Please, I’ve been trying to do Pythia8 analysis with ROOT but it has not worked. I have been using the Py…

---

## [Add a histogram to tree branch in rdataframes](https://root-forum.cern.ch/t/add-a-histogram-to-tree-branch-in-rdataframes/54036)

<div class="topic-metadata">

**Author:** [@Chandra\_Sekhar\_Akond](https://root-forum.cern.ch/u/Chandra_Sekhar_Akond)\
**Replies:** 4\
**Last updated:** [March 21, 2023, 9:10pm UTC](https://root-forum.cern.ch/t/add-a-histogram-to-tree-branch-in-rdataframes/54036 "2023-03-21T21:10:53Z")

</div>

Hi, I am new to rdataframes. I am having trouble in adding this to a tree branch . Here is my code ROOT::RDataFrame rdf(my\_chain); auto rdf\_variables = rdf.Define(“mmSq”, “missing\_massSq”); auto rdf\_cut = rdf\_variable…

---

## [THttpServer - access files from the disk](https://root-forum.cern.ch/t/thttpserver-access-files-from-the-disk/54164)

<div class="topic-metadata">

**Author:** [@Imane](https://root-forum.cern.ch/u/Imane)\
**Replies:** 2\
**Last updated:** [March 21, 2023, 2:47pm UTC](https://root-forum.cern.ch/t/thttpserver-access-files-from-the-disk/54164 "2023-03-21T14:47:54Z")

</div>

Hi all, I’m building a user interface using HTML and CSS and I wanted to know if I can integrate the HTML page and CSS files to the ROOT. Although I have managed to do it for the HTML, I am unsure whether it is pos…

---

## [Change histogram characteristics](https://root-forum.cern.ch/t/change-histogram-characteristics/54116)

<div class="topic-metadata">

**Author:** [@DAVIDE\_GATTI](https://root-forum.cern.ch/u/DAVIDE_GATTI)\
**Replies:** 2\
**Last updated:** [March 20, 2023, 10:01am UTC](https://root-forum.cern.ch/t/change-histogram-characteristics/54116 "2023-03-20T10:01:42Z")

</div>

I have to draw 13 different histograms, and I want to change the line color and put the fill color transparent. I have tried to do these things using SetFillColor and SetLine Color, but it doesn’t work. Here it is my cod…

---

## [Error Running Root Examples (Error in cling::AutoLoadingVisitor::InsertIntoAutoLoadingState:)](https://root-forum.cern.ch/t/error-running-root-examples-error-in-cling/54118)

<div class="topic-metadata">

**Author:** [@MaxL](https://root-forum.cern.ch/u/MaxL)\
**Replies:** 1\
**Last updated:** [March 19, 2023, 10:43pm UTC](https://root-forum.cern.ch/t/error-running-root-examples-error-in-cling/54118 "2023-03-19T22:43:38Z")

</div>

\_ROOT Version: I am not sure how to check \_Platform: Linux \_Compiler: Not sure what this is, sorry Hi all, I am very new to all of this, and so I apologize in advance. I am working through the guide for madgraph and …

---

## [Error: use of undeclared identifier (ROOT6)](https://root-forum.cern.ch/t/error-use-of-undeclared-identifier-root6/54120)

<div class="topic-metadata">

**Author:** [@Marcos\_Ng](https://root-forum.cern.ch/u/Marcos_Ng)\
**Replies:** 2\
**Last updated:** [March 19, 2023, 6:58pm UTC](https://root-forum.cern.ch/t/error-use-of-undeclared-identifier-root6/54120 "2023-03-19T18:58:57Z")

</div>

I have a piece of code that was previously working on ROOT5, but now I’m encountering some issues when trying to run it on ROOT6. I’m hoping to get some help in making this code compatible with ROOT6. My current status…

---

## [Trying to use ProjectionY on TGraph](https://root-forum.cern.ch/t/trying-to-use-projectiony-on-tgraph/54090)

<div class="topic-metadata">

**Author:** [@Goktug\_Bayram](https://root-forum.cern.ch/u/Goktug_Bayram)\
**Replies:** 1\
**Last updated:** [March 17, 2023, 4:53pm UTC](https://root-forum.cern.ch/t/trying-to-use-projectiony-on-tgraph/54090 "2023-03-17T16:53:27Z")

</div>

Dear experts, I have a txt data about my project. I can read and draw this data with TGraph. I want to fit certain range of my data. I have a chart and I want to fit only the min and max values ​​of this chart. I’m usin…

---

## [Error Installing ROOT-5.34.38](https://root-forum.cern.ch/t/error-installing-root-5-34-38/54080)

<div class="topic-metadata">

**Author:** [@Diego\_Costas\_Rodrigu](https://root-forum.cern.ch/u/Diego_Costas_Rodrigu)\
**Replies:** 3\
**Last updated:** [March 17, 2023, 4:42pm UTC](https://root-forum.cern.ch/t/error-installing-root-5-34-38/54080 "2023-03-17T16:42:37Z")

</div>

I am trying to install ROOT-5.34.38 on my MacBook Air 2022 with an M2 processor. Clang version is: Apple clang version 14.0.0 (clang-1400.0.29.202) Target: arm64-apple-darwin21.6.0 Thread model: posix InstalledDir: /Lib…

---

## [ROOT.gStyle.SetOptFit(1111)](https://root-forum.cern.ch/t/root-gstyle-setoptfit-1111/54071)

<div class="topic-metadata">

**Author:** [@L\_N](https://root-forum.cern.ch/u/L_N)\
**Replies:** 29\
**Last updated:** [March 17, 2023, 4:28pm UTC](https://root-forum.cern.ch/t/root-gstyle-setoptfit-1111/54071 "2023-03-17T16:28:59Z")

</div>

Hello, I have a question regarding some fit results. My problem is that the fit parameter shown in the final canvas, which includes the data, the fit and the fitparameters (for which I used ROOT.gStyle.SetOptFit(1111) …

---

## [Exponent in the plot axis](https://root-forum.cern.ch/t/exponent-in-the-plot-axis/54079)

<div class="topic-metadata">

**Author:** [@NgJunKai](https://root-forum.cern.ch/u/NgJunKai)\
**Replies:** 4\
**Last updated:** [March 17, 2023, 8:37am UTC](https://root-forum.cern.ch/t/exponent-in-the-plot-axis/54079 "2023-03-17T08:37:51Z")

</div>

I am using scientific notation by TAXis::SetMaxDigits(N) but when i do multiple plots without border or gap, says Divide(1,3,0,0), this exponent will get blocked. Any method to access this guy and probably I can use Se…

---

## [Optimize memory usage while using RDataFrame](https://root-forum.cern.ch/t/optimize-memory-usage-while-using-rdataframe/54014)

<div class="topic-metadata">

**Author:** [@AntoninoFulci](https://root-forum.cern.ch/u/AntoninoFulci)\
**Replies:** 6\
**Last updated:** [March 17, 2023, 8:23am UTC](https://root-forum.cern.ch/t/optimize-memory-usage-while-using-rdataframe/54014 "2023-03-17T08:23:44Z")

</div>

ROOT Version: 6.28/00 Platform: “CentOS Linux 7 (Core)” Compiler: g++ (GCC) 12.2.1 20221030 Dear all, I wrote a code that analyze simulations, stored in root files, using RDataFrame. The code works fine on my PC (M…

---

## [Ratio histogram](https://root-forum.cern.ch/t/ratio-histogram/54078)

<div class="topic-metadata">

**Author:** [@alex14](https://root-forum.cern.ch/u/alex14)\
**Replies:** 1\
**Last updated:** [March 17, 2023, 7:25am UTC](https://root-forum.cern.ch/t/ratio-histogram/54078 "2023-03-17T07:25:56Z")

</div>

Hi, I have a histogram with three peaks, and I want to fit a flat line over each peak in order to extract the particle-to-anti-particle ratio. I tried several options, but none of them were successful. Could someone plea…

---

## [Compiling C file with .L](https://root-forum.cern.ch/t/compiling-c-file-with-l/54053)

<div class="topic-metadata">

**Author:** [@f\_stuetz](https://root-forum.cern.ch/u/f_stuetz)\
**Replies:** 4\
**Last updated:** [March 16, 2023, 10:06am UTC](https://root-forum.cern.ch/t/compiling-c-file-with-l/54053 "2023-03-16T10:06:31Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.28/00 Platform: Windows 10 Compiler: Not Provided I managed to build cling and install root version 6.28/00 on windows 10. Int…

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

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