# Newbie

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

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

---

## [Loading a keras model in ROOT](https://root-forum.cern.ch/t/loading-a-keras-model-in-root/54666)

<div class="topic-metadata">

**Author:** [@tmaurin](https://root-forum.cern.ch/u/tmaurin)\
**Replies:** 8\
**Last updated:** [June 5, 2023, 1:20pm UTC](https://root-forum.cern.ch/t/loading-a-keras-model-in-root/54666 "2023-06-05T13:20:02Z")

</div>

ROOT Version: 6.24/08 Platform: CentOS Linux release 7.9.2009 Dear experts, After training and saving a keras model using a python script, is it possible to load it in ROOT to make C++ functions? I am not sure how t…

---

## [Installation of ROOT in macOS](https://root-forum.cern.ch/t/installation-of-root-in-macos/55183)

<div class="topic-metadata">

**Author:** [@Amit1](https://root-forum.cern.ch/u/Amit1)\
**Replies:** 2\
**Last updated:** [June 5, 2023, 1:19pm UTC](https://root-forum.cern.ch/t/installation-of-root-in-macos/55183 "2023-06-05T13:19:47Z")

</div>

Hello everyone, I just switched from linux to Mac and things are a bit complicated. I used to download the prerequisites and binary file for sourcing the root and running it in Ubuntu. Now for Mac, I downloaded the xcod…

---

## [Histogram operation optimization](https://root-forum.cern.ch/t/histogram-operation-optimization/54639)

<div class="topic-metadata">

**Author:** [@meyerma](https://root-forum.cern.ch/u/meyerma)\
**Replies:** 6\
**Last updated:** [June 2, 2023, 3:43pm UTC](https://root-forum.cern.ch/t/histogram-operation-optimization/54639 "2023-06-02T15:43:39Z")

</div>

Hi, I have implemented some histogram operations (flip x axis, fourier transform, convolution,…) This is done bin by bin and I would like to speed up the process. How would you proceed ? I was thinking about getting t…

---

## [Setting up older ROOT version on M1 mac](https://root-forum.cern.ch/t/setting-up-older-root-version-on-m1-mac/55121)

<div class="topic-metadata">

**Author:** [@Revan](https://root-forum.cern.ch/u/Revan)\
**Replies:** 3\
**Last updated:** [June 1, 2023, 8:47pm UTC](https://root-forum.cern.ch/t/setting-up-older-root-version-on-m1-mac/55121 "2023-06-01T20:47:26Z")

</div>

I’ve been trying to install delphes for a long time now, but always throws fatal errors that I can’t understand or find online, so I decided to find a tutorial that incorporates everything I’m trying to learn. However, i…

---

## [Use TF1 using the leafs of a TTree](https://root-forum.cern.ch/t/use-tf1-using-the-leafs-of-a-ttree/55136)

<div class="topic-metadata">

**Author:** [@mfglinux\_gmail](https://root-forum.cern.ch/u/mfglinux_gmail)\
**Replies:** 1\
**Last updated:** [June 1, 2023, 8:19pm UTC](https://root-forum.cern.ch/t/use-tf1-using-the-leafs-of-a-ttree/55136 "2023-06-01T20:19:50Z")

</div>

Hello I have a TTree with leafs made of Double\_t and I also stored there a TF1, called wZ. In my code: TF1 \*wZ=new TF1("wZ","0.003843\*TMath::Sqrt( 1. + TMath::Power( (x-44.99)/0.1736 , 2) )",43.,45.5); TFile \*fout = n…

---

## [Compilation error on root 6.24](https://root-forum.cern.ch/t/compilation-error-on-root-6-24/55139)

<div class="topic-metadata">

**Author:** [@zazbone](https://root-forum.cern.ch/u/zazbone)\
**Replies:** 3\
**Last updated:** [June 1, 2023, 4:57pm UTC](https://root-forum.cern.ch/t/compilation-error-on-root-6-24/55139 "2023-06-01T16:57:17Z")

</div>

Hi, I’ve developed a cmake library depending on root 6.26 which stdc++17, but I need to use it with root 6.24, so I’ve changed the stdc++ flag to stdc++14. But I’m not able to compile my library due to an error in root…

---

## [Reading a Histogram from a Canvas stored in a Root file](https://root-forum.cern.ch/t/reading-a-histogram-from-a-canvas-stored-in-a-root-file/55109)

<div class="topic-metadata">

**Author:** [@Natilus](https://root-forum.cern.ch/u/Natilus)\
**Replies:** 4\
**Last updated:** [June 1, 2023, 2:49pm UTC](https://root-forum.cern.ch/t/reading-a-histogram-from-a-canvas-stored-in-a-root-file/55109 "2023-06-01T14:49:22Z")

</div>

Dear Root experts, I have a simple script that reads histograms from several root files (one histogram called JPsiMass from a Canvase with the same name stored in each file) and stores in a vector of TH1D\*. After readi…

---

## [No labels on drawn color palette](https://root-forum.cern.ch/t/no-labels-on-drawn-color-palette/55123)

<div class="topic-metadata">

**Author:** [@abunka](https://root-forum.cern.ch/u/abunka)\
**Replies:** 1\
**Last updated:** [May 31, 2023, 8:24pm UTC](https://root-forum.cern.ch/t/no-labels-on-drawn-color-palette/55123 "2023-05-31T20:24:45Z")

</div>

Hello ROOTers I am making a contour plot from a TH1D, using Draw-\>(“CONTZ”); It is working well except the color key has no labels, just the colors: How can I get the numbers to show? Thanks!

---

## [Can I make TGraph from two histograms](https://root-forum.cern.ch/t/can-i-make-tgraph-from-two-histograms/55056)

<div class="topic-metadata">

**Author:** [@gkoe](https://root-forum.cern.ch/u/gkoe)\
**Replies:** 10\
**Last updated:** [May 31, 2023, 5:13pm UTC](https://root-forum.cern.ch/t/can-i-make-tgraph-from-two-histograms/55056 "2023-05-31T17:13:27Z")

</div>

Hi, I have a root file with few histograms in it. I have to make a TGraph - on xAaxis to have data form one histogram, and yAxis - from other histogram. Is it possible? And can you give me some hints how to do it? Than…

---

## [Drawing histograms without vertical lines](https://root-forum.cern.ch/t/drawing-histograms-without-vertical-lines/55103)

<div class="topic-metadata">

**Author:** [@abunka](https://root-forum.cern.ch/u/abunka)\
**Replies:** 2\
**Last updated:** [May 31, 2023, 4:55pm UTC](https://root-forum.cern.ch/t/drawing-histograms-without-vertical-lines/55103 "2023-05-31T16:55:35Z")

</div>

Hello ROOTers I want to draw a set of histograms without the vertical lines at the bin edges. The draw option (“\]\[”) works for removing the first and last such lines, but I am not sure how to remove the others. I have …

---

## [Code crashing while extracting data from ROOT file](https://root-forum.cern.ch/t/code-crashing-while-extracting-data-from-root-file/55115)

<div class="topic-metadata">

**Author:** [@barishan\_das](https://root-forum.cern.ch/u/barishan_das)\
**Replies:** 1\
**Last updated:** [May 31, 2023, 2:11pm UTC](https://root-forum.cern.ch/t/code-crashing-while-extracting-data-from-root-file/55115 "2023-05-31T14:11:30Z")

</div>

While extracting data from root files, my code is crashing every time I seem to run it. Please let me know if there is any particular reason. The code and the entire stack trace is as follows: #include \<TFile.h\> #includ…

---

## [Transverse mass calculalation from arrays with different lengths](https://root-forum.cern.ch/t/transverse-mass-calculalation-from-arrays-with-different-lengths/55013)

<div class="topic-metadata">

**Author:** [@helton](https://root-forum.cern.ch/u/helton)\
**Replies:** 2\
**Last updated:** [May 31, 2023, 9:25am UTC](https://root-forum.cern.ch/t/transverse-mass-calculalation-from-arrays-with-different-lengths/55013 "2023-05-31T09:25:43Z")

</div>

Hello, I have a very general question regarding the calculation of a transverse mass. I have a MC data .root file from a ttbar-\>WbWb-\>lepton,neutrino,2jets decay. Lets say I wanted to calculate the transverse mass of th…

---

## [ROOT and jupyter notebook on visual studio code](https://root-forum.cern.ch/t/root-and-jupyter-notebook-on-visual-studio-code/55092)

<div class="topic-metadata">

**Author:** [@germanocarella](https://root-forum.cern.ch/u/germanocarella)\
**Replies:** 2\
**Last updated:** [May 30, 2023, 3:03pm UTC](https://root-forum.cern.ch/t/root-and-jupyter-notebook-on-visual-studio-code/55092 "2023-05-30T15:03:35Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided Hello, I am having some problems using ROOT with ipython and jupyter …

---

## [TGraphErrors with root 6.22.06](https://root-forum.cern.ch/t/tgrapherrors-with-root-6-22-06/55093)

<div class="topic-metadata">

**Author:** [@github-arpita](https://root-forum.cern.ch/u/github-arpita)\
**Replies:** 1\
**Last updated:** [May 30, 2023, 12:57pm UTC](https://root-forum.cern.ch/t/tgrapherrors-with-root-6-22-06/55093 "2023-05-30T12:57:05Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version: \_6.22.06 Platform: Not Provided Compiler: Not Provided Hello everyone! I want to plot the values with error bar only in one ax…

---

## [Header file to handle the TSeq class in a macro file](https://root-forum.cern.ch/t/header-file-to-handle-the-tseq-class-in-a-macro-file/55078)

<div class="topic-metadata">

**Author:** [@hohshita](https://root-forum.cern.ch/u/hohshita)\
**Replies:** 1\
**Last updated:** [May 29, 2023, 7:18am UTC](https://root-forum.cern.ch/t/header-file-to-handle-the-tseq-class-in-a-macro-file/55078 "2023-05-29T07:18:41Z")

</div>

Dear root experts, Do you know which header file I should include to handle the TSeq class in the macro file? Attached are two samples. The first one works within cling. You can make it work as follows; $ root -l tse…

---

## [Can not AddPoint() to a TGraphErrors](https://root-forum.cern.ch/t/can-not-addpoint-to-a-tgrapherrors/55067)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 3\
**Last updated:** [May 28, 2023, 7:15am UTC](https://root-forum.cern.ch/t/can-not-addpoint-to-a-tgrapherrors/55067 "2023-05-28T07:15:42Z")

</div>

Dear Experts I want to add points to two different TGraphErrors for comparison, when I add all points in the same graph it works fine, all points are correctly set. But when I try to separate them into two graphs, the s…

---

## [Adding MakeIterator() method to TObject class?](https://root-forum.cern.ch/t/adding-makeiterator-method-to-tobject-class/55023)

<div class="topic-metadata">

**Author:** [@tspark](https://root-forum.cern.ch/u/tspark)\
**Replies:** 6\
**Last updated:** [May 26, 2023, 3:11am UTC](https://root-forum.cern.ch/t/adding-makeiterator-method-to-tobject-class/55023 "2023-05-26T03:11:41Z")

</div>

Hi, I am wondering if there is a possibility to add the following method to TObject class: virtual TIterator \* TObject::MakeIterator (Bool\_t dir = kIterForward ) const { MayNotUse(""); return 0; } The thing is that, …

---

## [Having trouble with include path in vs code on lxplus](https://root-forum.cern.ch/t/having-trouble-with-include-path-in-vs-code-on-lxplus/55038)

<div class="topic-metadata">

**Author:** [@aoverton](https://root-forum.cern.ch/u/aoverton)\
**Replies:** 1\
**Last updated:** [May 25, 2023, 5:54pm UTC](https://root-forum.cern.ch/t/having-trouble-with-include-path-in-vs-code-on-lxplus/55038 "2023-05-25T17:54:48Z")

</div>

I’m having trouble getting my vs code to find certain source files on lxplus. Specifically (included in correction.h) and \<string\_view\> (included in correction\_version.h). I’m using CMSSW\_12\_5\_2\_patch1 and have tried i…

---

## [Limiting range when sampling normal distribution](https://root-forum.cern.ch/t/limiting-range-when-sampling-normal-distribution/54690)

<div class="topic-metadata">

**Author:** [@Javier\_Rufino](https://root-forum.cern.ch/u/Javier_Rufino)\
**Replies:** 3\
**Last updated:** [May 25, 2023, 3:49pm UTC](https://root-forum.cern.ch/t/limiting-range-when-sampling-normal-distribution/54690 "2023-05-25T15:49:58Z")

</div>

When sampling a normal distribution is there a way to limit the output, or limit the range of the number generated? For example, if I wanted to simulate a beam that has a gaussian shape I would use 2D gaussian sampling f…

---

## [Cannot draw error bar with SetMarkerStyle when the errors are small in TGraphErrors](https://root-forum.cern.ch/t/cannot-draw-error-bar-with-setmarkerstyle-when-the-errors-are-small-in-tgrapherrors/55026)

<div class="topic-metadata">

**Author:** [@iyuicu](https://root-forum.cern.ch/u/iyuicu)\
**Replies:** 21\
**Last updated:** [May 25, 2023, 12:21pm UTC](https://root-forum.cern.ch/t/cannot-draw-error-bar-with-setmarkerstyle-when-the-errors-are-small-in-tgrapherrors/55026 "2023-05-25T12:21:14Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version:6.26/10 \_Platform:Ubuntu 22.04 \_Compiler:g++ 11.3 When I use this code below, it works properly. { gStyle-\>SetEndErrorSize(5.…

---

## [Failed to set title of TGraph](https://root-forum.cern.ch/t/failed-to-set-title-of-tgraph/55020)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 2\
**Last updated:** [May 25, 2023, 7:14am UTC](https://root-forum.cern.ch/t/failed-to-set-title-of-tgraph/55020 "2023-05-25T07:14:19Z")

</div>

Dear Experts I want to set titles of graphs which I drawn on the same canvas, here is what I tried, but the title didn’t appear. Can you suggest me which procedure I’m missing? root -l somefile.root //in the root UI C…

---

## [Problem with RDataFrame "Run: event loop was interrupted"](https://root-forum.cern.ch/t/problem-with-rdataframe-run-event-loop-was-interrupted/54965)

<div class="topic-metadata">

**Author:** [@lata](https://root-forum.cern.ch/u/lata)\
**Replies:** 4\
**Last updated:** [May 24, 2023, 5:08pm UTC](https://root-forum.cern.ch/t/problem-with-rdataframe-run-event-loop-was-interrupted/54965 "2023-05-24T17:08:46Z")

</div>

Hello, I am new to RDataFrame. I am facing an error after which my event loop gets killed: “RDataFrame::Run: event loop was interrupted” Could you please let me know what could be reason of it? Best regards, Lata P…

---

## [Pyroot read leaves with dot in name](https://root-forum.cern.ch/t/pyroot-read-leaves-with-dot-in-name/54533)

<div class="topic-metadata">

**Author:** [@ROOTer1](https://root-forum.cern.ch/u/ROOTer1)\
**Replies:** 3\
**Last updated:** [May 24, 2023, 9:46am UTC](https://root-forum.cern.ch/t/pyroot-read-leaves-with-dot-in-name/54533 "2023-05-24T09:46:58Z")

</div>

Dear, I have the following example where I read leaves from a tree: chain = ROOT.TChain() chain.Add("path\_to\_rootfile/tree") for iev in chain: print(iev.var) # if leaf (=var) has no dots in name = works! print(…

---

## [2d histogram subtraction(TH2D)](https://root-forum.cern.ch/t/2d-histogram-subtraction-th2d/55007)

<div class="topic-metadata">

**Author:** [@Saradindu](https://root-forum.cern.ch/u/Saradindu)\
**Replies:** 1\
**Last updated:** [May 24, 2023, 8:26am UTC](https://root-forum.cern.ch/t/2d-histogram-subtraction-th2d/55007 "2023-05-24T08:26:29Z")

</div>

Hello, Could anyone tell me how to subtract 2 2-dimensional histograms? Thanks

---

## [Adding events directly in a existing histogram](https://root-forum.cern.ch/t/adding-events-directly-in-a-existing-histogram/54902)

<div class="topic-metadata">

**Author:** [@Saradindu](https://root-forum.cern.ch/u/Saradindu)\
**Replies:** 12\
**Last updated:** [May 23, 2023, 11:13am UTC](https://root-forum.cern.ch/t/adding-events-directly-in-a-existing-histogram/54902 "2023-05-23T11:13:35Z")

</div>

Hello, How do i can add events directly in a existing histogram ? thanks Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not…

---

## [TGenPhaceSpcae for nuclear reaction at low energy](https://root-forum.cern.ch/t/tgenphacespcae-for-nuclear-reaction-at-low-energy/54979)

<div class="topic-metadata">

**Author:** [@anhle263](https://root-forum.cern.ch/u/anhle263)\
**Replies:** 1\
**Last updated:** [May 23, 2023, 9:48am UTC](https://root-forum.cern.ch/t/tgenphacespcae-for-nuclear-reaction-at-low-energy/54979 "2023-05-23T09:48:24Z")

</div>

Hello ROOT experts, Can TGenPhaceSpace be used for simulating nuclear reactions induced by gamma or proton at low energy (below 300 MeV)? And Can it be used if one of the outgoing channels is excited nucleus? Thank yo…

---

## [ExRootAnalysis building failed despite functional root - MacOS 13.3\_x86\_64](https://root-forum.cern.ch/t/exrootanalysis-building-failed-despite-functional-root-macos-13-3-x86-64/54986)

<div class="topic-metadata">

**Author:** [@user1234](https://root-forum.cern.ch/u/user1234)\
**Replies:** 1\
**Last updated:** [May 23, 2023, 9:45am UTC](https://root-forum.cern.ch/t/exrootanalysis-building-failed-despite-functional-root-macos-13-3-x86-64/54986 "2023-05-23T09:45:45Z")

</div>

Hello, I’ve been struggling with this for a few days, so any help would be much appreciated I have installed ROOT from brew (version 6.26), and it works fine, but when I try to install ExRootAnalysis it shows the same …

---

## [How to remove the box from surf1 histogram](https://root-forum.cern.ch/t/how-to-remove-the-box-from-surf1-histogram/54984)

<div class="topic-metadata">

**Author:** [@Sharey\_Als](https://root-forum.cern.ch/u/Sharey_Als)\
**Replies:** 2\
**Last updated:** [May 22, 2023, 11:15am UTC](https://root-forum.cern.ch/t/how-to-remove-the-box-from-surf1-histogram/54984 "2023-05-22T11:15:34Z")

</div>

Hi rooters, I am trying to draw a histogram using surf1 option, however, I want to remove the black box around it and the grid lines. How can I do it?

---

## [Expired TLS certificate on \`root.cern.ch\` website](https://root-forum.cern.ch/t/expired-tls-certificate-on-root-cern-ch-website/54943)

<div class="topic-metadata">

**Author:** [@marty1885](https://root-forum.cern.ch/u/marty1885)\
**Replies:** 1\
**Last updated:** [May 19, 2023, 8:06am UTC](https://root-forum.cern.ch/t/expired-tls-certificate-on-root-cern-ch-website/54943 "2023-05-19T08:06:23Z")

</div>

Hi, I just want to inform that the TLS cert for https://root.cern.ch has expired and my browser is warning that. I’ve attached the screenshot of what Chrome shows. The cert expires on May 18th 23:59. And my local time is…

---

## [Debugging the following crash](https://root-forum.cern.ch/t/debugging-the-following-crash/54945)

<div class="topic-metadata">

**Author:** [@Fabi](https://root-forum.cern.ch/u/Fabi)\
**Replies:** 1\
**Last updated:** [May 19, 2023, 8:03am UTC](https://root-forum.cern.ch/t/debugging-the-following-crash/54945 "2023-05-19T08:03:25Z")

</div>

To all the expert in the forum, I am running a simple macro to convert .asc to .root file. The macro is working properly, but on the last file to be precessed, I always get this error: \*\*\*\* Break \*\*\* segmentation viol…

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

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