# Newbie

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

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

---

## [Applying cuts after drawing a histogram](https://root-forum.cern.ch/t/applying-cuts-after-drawing-a-histogram/33937)

<div class="topic-metadata">

**Author:** [@KatR](https://root-forum.cern.ch/u/KatR)\
**Replies:** 1\
**Last updated:** [May 7, 2019, 12:27pm UTC](https://root-forum.cern.ch/t/applying-cuts-after-drawing-a-histogram/33937 "2019-05-07T12:27:11Z")

</div>

Hi all, I think this is probably a really basic question, but my knowledge of coding in general is very shaky so I’m finding it hard to understand the documentation. I’ve been asked to ‘plot variable x in bins of variab…

---

## [Transforming TEfficiency to it's inverse efficiency (show 1-itself)](https://root-forum.cern.ch/t/transforming-tefficiency-to-its-inverse-efficiency-show-1-itself/33908)

<div class="topic-metadata">

**Author:** [@armin.kadlecsik](https://root-forum.cern.ch/u/armin.kadlecsik)\
**Replies:** 2\
**Last updated:** [May 6, 2019, 2:29pm UTC](https://root-forum.cern.ch/t/transforming-tefficiency-to-its-inverse-efficiency-show-1-itself/33908 "2019-05-06T14:29:56Z")

</div>

Hello, Currently, I am creating a TEfficiency histogram using the constructor TEfficiency(const TH1 &passed, const TH1 &total) with TH1F histograms as arguments. This gets me the efficiency results I’m expecting, howev…

---

## [Problem with fstream library](https://root-forum.cern.ch/t/problem-with-fstream-library/33846)

<div class="topic-metadata">

**Author:** [@JohnyBoy](https://root-forum.cern.ch/u/JohnyBoy)\
**Replies:** 2\
**Last updated:** [May 4, 2019, 1:38pm UTC](https://root-forum.cern.ch/t/problem-with-fstream-library/33846 "2019-05-04T13:38:33Z")

</div>

Hello everyone. I have a problem with the fstream library in C++ when I try to use it in a ROOT macro. This is what I’m trying to do. I have a file (call it F1) with 4 data columns. I 'm trying to read those columns in…

---

## [Cell map with root](https://root-forum.cern.ch/t/cell-map-with-root/33890)

<div class="topic-metadata">

**Author:** [@yosse\_andrean](https://root-forum.cern.ch/u/yosse_andrean)\
**Replies:** 7\
**Last updated:** [May 3, 2019, 2:35pm UTC](https://root-forum.cern.ch/t/cell-map-with-root/33890 "2019-05-03T14:35:14Z")

</div>

Dear experts, I am wondering if producing such plot is possible to do in root. If so, what object and approach would you advice to use? Short example with pyroot is appreciated! Thanks!

---

## [New Root User guide to install](https://root-forum.cern.ch/t/new-root-user-guide-to-install/33697)

<div class="topic-metadata">

**Author:** [@1231](https://root-forum.cern.ch/u/1231)\
**Replies:** 3\
**Last updated:** [May 2, 2019, 9:06am UTC](https://root-forum.cern.ch/t/new-root-user-guide-to-install/33697 "2019-05-02T09:06:20Z")

</div>

Dear all I am new to root , i am medical physicist , i want to use root for radiotherphy data analysis. Please guide me ,how can i install root in Linux ubtan18.04. And pre requirement to install this software. Thank y…

---

## [Label points in graph](https://root-forum.cern.ch/t/label-points-in-graph/33841)

<div class="topic-metadata">

**Author:** [@Svante](https://root-forum.cern.ch/u/Svante)\
**Replies:** 8\
**Last updated:** [May 2, 2019, 9:01am UTC](https://root-forum.cern.ch/t/label-points-in-graph/33841 "2019-05-02T09:01:14Z")

</div>

Dear all, I have fitting curve plotted on a canvas and I need to label the points by which the fitting curve pass throw. Do you know how to do it in root? I have also to label points in a spectrum. Thank you

---

## [Issue with building ROOT](https://root-forum.cern.ch/t/issue-with-building-root/33807)

<div class="topic-metadata">

**Author:** [@amiucci](https://root-forum.cern.ch/u/amiucci)\
**Replies:** 4\
**Last updated:** [May 2, 2019, 6:53am UTC](https://root-forum.cern.ch/t/issue-with-building-root/33807 "2019-05-02T06:53:20Z")

</div>

Hello, I am trying to compile ROOT on Centos7. Unfortunately it fails while compiling due to the following error: /terabig/amiucci/root-6.16.00/rootx/src/rootxx.cxx:28:10: fatal error: X11/Xlib.h: No such file or dire…

---

## [Curve Fitting (python)](https://root-forum.cern.ch/t/curve-fitting-python/33839)

<div class="topic-metadata">

**Author:** [@Ricky\_Dube](https://root-forum.cern.ch/u/Ricky_Dube)\
**Replies:** 1\
**Last updated:** [May 2, 2019, 3:46am UTC](https://root-forum.cern.ch/t/curve-fitting-python/33839 "2019-05-02T03:46:11Z")

</div>

Hello! I am extremely new to ROOT, and I have produced a 2d dE/dx histogram, and now I am trying to fit a curve in order to make cuts on the particles. I have tried to find a guide but all the manuals appear to be for t…

---

## [TRefArray apears empty (reading via makeClass)](https://root-forum.cern.ch/t/trefarray-apears-empty-reading-via-makeclass/32903)

<div class="topic-metadata">

**Author:** [@Day](https://root-forum.cern.ch/u/Day)\
**Replies:** 5\
**Last updated:** [May 1, 2019, 3:03pm UTC](https://root-forum.cern.ch/t/trefarray-apears-empty-reading-via-makeclass/32903 "2019-05-01T15:03:03Z")

</div>

Last week this forum gave me some assistance in reading my TTree, you kindly pointed out that MakeClass was the place to start. Following these instruction I generated a class from my tree, there where some errors in th…

---

## [From CSV file to graph](https://root-forum.cern.ch/t/from-csv-file-to-graph/33828)

<div class="topic-metadata">

**Author:** [@FabioFracas](https://root-forum.cern.ch/u/FabioFracas)\
**Replies:** 8\
**Last updated:** [April 30, 2019, 2:50pm UTC](https://root-forum.cern.ch/t/from-csv-file-to-graph/33828 "2019-04-30T14:50:35Z")

</div>

Hi to all. I’m really a newbie and it’s my first approach to ROOT. I’m trying to undestand the logics so what I wish to do is only to read a CSV file (in form N\_ID, column1, column2, column3), show the content of the fi…

---

## [Using TGraphErrors](https://root-forum.cern.ch/t/using-tgrapherrors/33826)

<div class="topic-metadata">

**Author:** [@Thabo\_Lepota](https://root-forum.cern.ch/u/Thabo_Lepota)\
**Replies:** 4\
**Last updated:** [April 30, 2019, 12:25pm UTC](https://root-forum.cern.ch/t/using-tgrapherrors/33826 "2019-04-30T12:25:48Z")

</div>

Hi All, I would like to plot a graph with errors using the Tgrapherror function but i seem to be getting errors when i run this script tidfit.c (2.5 KB) to read and plot this data Run\_13-19.txt (3.2 KB) i don’t know w…

---

## [Plot best fit with errors](https://root-forum.cern.ch/t/plot-best-fit-with-errors/33802)

<div class="topic-metadata">

**Author:** [@Thabo\_Lepota](https://root-forum.cern.ch/u/Thabo_Lepota)\
**Replies:** 6\
**Last updated:** [April 29, 2019, 12:58pm UTC](https://root-forum.cern.ch/t/plot-best-fit-with-errors/33802 "2019-04-29T12:58:12Z")

</div>

Hello, How can i plot and fit the data with first degree polynomial, reading in the data from an ascii file (see attached) Run\_13-19.txt (1.7 KB) i’m tryin to use this script basic.C (2.7 KB) instead of plotting histo…

---

## [Print a filtered list histograms stored in a file via command line](https://root-forum.cern.ch/t/print-a-filtered-list-histograms-stored-in-a-file-via-command-line/33809)

<div class="topic-metadata">

**Author:** [@Andrey\_Pozdnyakov](https://root-forum.cern.ch/u/Andrey_Pozdnyakov)\
**Replies:** 1\
**Last updated:** [April 29, 2019, 10:53am UTC](https://root-forum.cern.ch/t/print-a-filtered-list-histograms-stored-in-a-file-via-command-line/33809 "2019-04-29T10:53:15Z")

</div>

Hello, I have a noobie question here: I would like a command like this to work: \[0\] \_file0-\>Print("myName\_\*") or \[1\] .ls("myName\_\*") That is to print only a subset of the histograms stored in a file, matching the n…

---

## [How to debug macro using the stack trace](https://root-forum.cern.ch/t/how-to-debug-macro-using-the-stack-trace/33767)

<div class="topic-metadata">

**Author:** [@newbie1](https://root-forum.cern.ch/u/newbie1)\
**Replies:** 4\
**Last updated:** [April 25, 2019, 6:35pm UTC](https://root-forum.cern.ch/t/how-to-debug-macro-using-the-stack-trace/33767 "2019-04-25T18:35:44Z")

</div>

Hello, Running root I get crashes sometimes and those return a stack trace, but I never knew how to use it to debug my macros. How can I use the stack trace to debug my code? Should I use gdb or gDebug? I know the line …

---

## [Plotting slopes without data points](https://root-forum.cern.ch/t/plotting-slopes-without-data-points/33751)

<div class="topic-metadata">

**Author:** [@Thabo\_Lepota](https://root-forum.cern.ch/u/Thabo_Lepota)\
**Replies:** 6\
**Last updated:** [April 25, 2019, 12:44pm UTC](https://root-forum.cern.ch/t/plotting-slopes-without-data-points/33751 "2019-04-25T12:44:14Z")

</div>

Dear all, Can you please assist, i wanna plot slopes with its parameters (po,p1) only and exclude the data points This is the code i’m using to plot basichist.c (5.0 KB) 19-03-16-2.zip (1.5 MB) thank you in advance.

---

## [Getting Values from TTree events](https://root-forum.cern.ch/t/getting-values-from-ttree-events/33689)

<div class="topic-metadata">

**Author:** [@Rootie](https://root-forum.cern.ch/u/Rootie)\
**Replies:** 4\
**Last updated:** [April 24, 2019, 5:25pm UTC](https://root-forum.cern.ch/t/getting-values-from-ttree-events/33689 "2019-04-24T17:25:36Z")

</div>

Hi, Im trying to get values from a tree wich have several entries , or instances per event. I’m trying to do this as Double\_t energy; mytree-\>SetBranchAddress(“myenergy”,&energy) then, if i do mytree-\>GetEntry(# pl…

---

## [Fit does not include all values](https://root-forum.cern.ch/t/fit-does-not-include-all-values/33472)

<div class="topic-metadata">

**Author:** [@garu77](https://root-forum.cern.ch/u/garu77)\
**Replies:** 1\
**Last updated:** [April 6, 2019, 10:28am UTC](https://root-forum.cern.ch/t/fit-does-not-include-all-values/33472 "2019-04-06T10:28:21Z")

</div>

I have not learned anything about programming but was told how to write a specific program and to add my own data. In an experiment on the IV characteristics of an LED I have drawn a graph and need to fit the equation y=…

---

## [TChain-\>GetEntry() Slow](https://root-forum.cern.ch/t/tchain-getentry-slow/33578)

<div class="topic-metadata">

**Author:** [@Andi1](https://root-forum.cern.ch/u/Andi1)\
**Replies:** 5\
**Last updated:** [April 24, 2019, 2:28pm UTC](https://root-forum.cern.ch/t/tchain-getentry-slow/33578 "2019-04-24T14:28:35Z")

</div>

Dear Root-Users, I am currently working with GATE for a Project and therefore with ROOT 6.14/06. My OS is Ubuntu 16.04LTS. I have a problem using the TChain and I think I probably use it wrong and was hoping that maybe…

---

## [Is there a way to extract the best fit line in fitting a 2D histogram](https://root-forum.cern.ch/t/is-there-a-way-to-extract-the-best-fit-line-in-fitting-a-2d-histogram/33605)

<div class="topic-metadata">

**Author:** [@Thabo\_Lepota](https://root-forum.cern.ch/u/Thabo_Lepota)\
**Replies:** 22\
**Last updated:** [April 24, 2019, 11:40am UTC](https://root-forum.cern.ch/t/is-there-a-way-to-extract-the-best-fit-line-in-fitting-a-2d-histogram/33605 "2019-04-24T11:40:20Z")

</div>

I have plotted a 2D histogram and fitted it with a best-fit line, now I want to extract the best-fit lines and plot them separately. Below is the example of the plot I have

---

## [Reading a .root file converted from .lhe](https://root-forum.cern.ch/t/reading-a-root-file-converted-from-lhe/33744)

<div class="topic-metadata">

**Author:** [@Saumyenk](https://root-forum.cern.ch/u/Saumyenk)\
**Replies:** 3\
**Last updated:** [April 24, 2019, 10:29am UTC](https://root-forum.cern.ch/t/reading-a-root-file-converted-from-lhe/33744 "2019-04-24T10:29:25Z")

</div>

Hello, As I am new to ROOT, I’m a bit confused with certain things. For my analysis, I converted my .lhe file generated by MG5, to .root using ExRootLHEFConverter. I wanted to know if there is any way to read the cont…

---

## [Cannot plot RooDataSet entries](https://root-forum.cern.ch/t/cannot-plot-roodataset-entries/33714)

<div class="topic-metadata">

**Author:** [@jenegger](https://root-forum.cern.ch/u/jenegger)\
**Replies:** 3\
**Last updated:** [April 23, 2019, 10:35am UTC](https://root-forum.cern.ch/t/cannot-plot-roodataset-entries/33714 "2019-04-23T10:35:44Z")

</div>

Hi experts, I have a question concerning the plotting of a dataset (RooDataSet) on RooFit. I have a dataset ‘complete\_lambda.root’ which contains the values of different observables. For my analysis cuts are used to bin…

---

## [ROOT Python Plotting TTree with TGraph Formatting Issue](https://root-forum.cern.ch/t/root-python-plotting-ttree-with-tgraph-formatting-issue/33685)

<div class="topic-metadata">

**Author:** [@Food](https://root-forum.cern.ch/u/Food)\
**Replies:** 2\
**Last updated:** [April 23, 2019, 10:10am UTC](https://root-forum.cern.ch/t/root-python-plotting-ttree-with-tgraph-formatting-issue/33685 "2019-04-23T10:10:38Z")

</div>

dt-stormer-verlet.root (708.2 KB) readroot.py (1.5 KB) I’m trying to format a TTree graph that I’m piping to a TGraph object (g1) in python 2.7. Here’s a look at the libraries. import ROOT from ROOT import TTree,TFil…

---

## [Plot graphs with errors](https://root-forum.cern.ch/t/plot-graphs-with-errors/33722)

<div class="topic-metadata">

**Author:** [@Thabo\_Lepota](https://root-forum.cern.ch/u/Thabo_Lepota)\
**Replies:** 1\
**Last updated:** [April 23, 2019, 8:10am UTC](https://root-forum.cern.ch/t/plot-graphs-with-errors/33722 "2019-04-23T08:10:53Z")

</div>

Dear all I want to plot multiple plots with errors in one canvas, i wanna read in the errors and data from a txt file. How can i do that ? kindly find the attached text file, the columns unnamed are the errors Thank y…

---

## [Something wrong with fit](https://root-forum.cern.ch/t/something-wrong-with-fit/33632)

<div class="topic-metadata">

**Author:** [@miki-6](https://root-forum.cern.ch/u/miki-6)\
**Replies:** 2\
**Last updated:** [April 20, 2019, 11:43pm UTC](https://root-forum.cern.ch/t/something-wrong-with-fit/33632 "2019-04-20T23:43:26Z")

</div>

Hi everybody. I am fitting the sidebands of a histogram (in other words, I exclude a continuous central range in the fitting procedure) several times through a loop. The concerned histogram changes each time as due to di…

---

## [For loop over histograms](https://root-forum.cern.ch/t/for-loop-over-histograms/33645)

<div class="topic-metadata">

**Author:** [@Marta](https://root-forum.cern.ch/u/Marta)\
**Replies:** 2\
**Last updated:** [April 18, 2019, 12:07pm UTC](https://root-forum.cern.ch/t/for-loop-over-histograms/33645 "2019-04-18T12:07:00Z")

</div>

Hello. I have a problem with creating hstack. I have a bunch of histograms in different .root files and I want to add them. I know how to do that, but because there is so many of them and they all look like zmumu1.root,…

---

## [Use of digamma function in root](https://root-forum.cern.ch/t/use-of-digamma-function-in-root/33622)

<div class="topic-metadata">

**Author:** [@remcodesmit](https://root-forum.cern.ch/u/remcodesmit)\
**Replies:** 1\
**Last updated:** [April 16, 2019, 4:31pm UTC](https://root-forum.cern.ch/t/use-of-digamma-function-in-root/33622 "2019-04-16T16:31:01Z")

</div>

Dear, For my project I have to fit a gamma distribution through my data points. This fit works well, but I want to extract data points from this fit with error bars. For these error bars I use partial derivatives w.r.t.…

---

## [How to Manually Edit X Axis Range for TEfficiency object](https://root-forum.cern.ch/t/how-to-manually-edit-x-axis-range-for-tefficiency-object/33129)

<div class="topic-metadata">

**Author:** [@jcorrado](https://root-forum.cern.ch/u/jcorrado)\
**Replies:** 8\
**Last updated:** [April 16, 2019, 1:36pm UTC](https://root-forum.cern.ch/t/how-to-manually-edit-x-axis-range-for-tefficiency-object/33129 "2019-04-16T13:36:07Z")

</div>

I am trying to plot a set of efficiency curves. For some reason, the x limits on the plot are not consistent with those I set for xup and xlow when I initialized the TEfficiency objects. I’ve tried TEfficiency::GetPainte…

---

## [GetBinContent(Int\_t binx, Int\_t biny, Int\_t) in TH2](https://root-forum.cern.ch/t/getbincontent-int-t-binx-int-t-biny-int-t-in-th2/33566)

<div class="topic-metadata">

**Author:** [@Reik](https://root-forum.cern.ch/u/Reik)\
**Replies:** 6\
**Last updated:** [April 15, 2019, 12:48pm UTC](https://root-forum.cern.ch/t/getbincontent-int-t-binx-int-t-biny-int-t-in-th2/33566 "2019-04-15T12:48:41Z")

</div>

The prototype of method GetBinContent(Int\_t binx, Int\_t biny, Int\_t ) in TH2 - https://root.cern.ch/doc/master/classTH2.html#a84bfa4a81446cdc420a9f000d0e89688 specifies that the first parameter is the bin number of the x…

---

## [V5.34.34 make error in Ubuntu 18.04.2](https://root-forum.cern.ch/t/v5-34-34-make-error-in-ubuntu-18-04-2/33552)

<div class="topic-metadata">

**Author:** [@jbrummer](https://root-forum.cern.ch/u/jbrummer)\
**Replies:** 5\
**Last updated:** [April 15, 2019, 3:08pm UTC](https://root-forum.cern.ch/t/v5-34-34-make-error-in-ubuntu-18-04-2/33552 "2019-04-15T15:08:51Z")

</div>

Hello I am running Ubuntu 18.04.2 and trying to build ROOT v5.34.34 (environment driven build) but I am getting a error during make which I don’t recognize. All of the prerequisite packages have been installed. The erro…

---

## [Break Segmentation violation with TMatrixD](https://root-forum.cern.ch/t/break-segmentation-violation-with-tmatrixd/33593)

<div class="topic-metadata">

**Author:** [@BiaseGabriel](https://root-forum.cern.ch/u/BiaseGabriel)\
**Replies:** 5\
**Last updated:** [April 14, 2019, 8:13am UTC](https://root-forum.cern.ch/t/break-segmentation-violation-with-tmatrixd/33593 "2019-04-14T08:13:30Z")

</div>

Hi, I am a relatively new ROOT user working on big data from ATLAS experiment. I have been putting effort in take some data from a tree. This tree has one branch with some leafs. I took the data from the leaf &sample an…

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

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