# Newbie

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

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

---

## [Error bars when making histogram](https://root-forum.cern.ch/t/error-bars-when-making-histogram/35795)

<div class="topic-metadata">

**Author:** [@Patrick\_Odagiu](https://root-forum.cern.ch/u/Patrick_Odagiu)\
**Replies:** 2\
**Last updated:** [August 30, 2019, 3:58pm UTC](https://root-forum.cern.ch/t/error-bars-when-making-histogram/35795 "2019-08-30T15:58:59Z")

</div>

Hello, I am having some problems getting the error bars I want on a histogram. As an example, here is the kind of error bars I would want (the checkered bits): I understood that the way to obtain such an effect is to…

---

## [Segmentation Fault when running large data file](https://root-forum.cern.ch/t/segmentation-fault-when-running-large-data-file/35399)

<div class="topic-metadata">

**Author:** [@daniel\_algebraic](https://root-forum.cern.ch/u/daniel_algebraic)\
**Replies:** 37\
**Last updated:** [August 27, 2019, 5:21pm UTC](https://root-forum.cern.ch/t/segmentation-fault-when-running-large-data-file/35399 "2019-08-27T17:21:04Z")

</div>

Background: I am trying to run an analysis that uses the following repo: Issue: I am successful when running smaller files (tested up to 260 MB), however with the warning: Warning in \<TClass::Init\>: no dictionary fo…

---

## [How to extract the data from a 2D array branch](https://root-forum.cern.ch/t/how-to-extract-the-data-from-a-2d-array-branch/35788)

<div class="topic-metadata">

**Author:** [@Juan\_Sanchez](https://root-forum.cern.ch/u/Juan_Sanchez)\
**Replies:** 2\
**Last updated:** [August 27, 2019, 2:53pm UTC](https://root-forum.cern.ch/t/how-to-extract-the-data-from-a-2d-array-branch/35788 "2019-08-27T14:53:50Z")

</div>

Hello, I have been trying to get the data out of a 2D branch from a root file like so: chain-\>SetBranchAddress(“branchName”, branchName); Being branchName a 2D dynamically allocated array of type Double\_t\*\*. How would…

---

## [Failing to open and write .tiff images](https://root-forum.cern.ch/t/failing-to-open-and-write-tiff-images/35719)

<div class="topic-metadata">

**Author:** [@Xola](https://root-forum.cern.ch/u/Xola)\
**Replies:** 10\
**Last updated:** [August 27, 2019, 10:38am UTC](https://root-forum.cern.ch/t/failing-to-open-and-write-tiff-images/35719 "2019-08-27T10:38:38Z")

</div>

Hi When I try to convert a .jpg image to a .tiff file I get the following message: TImage \*img1 = TImage::Open("/Users/cashcrusaders/Documents/cluster/Archive/cluster.jpg"); if (!img1) { printf("Could not c…

---

## [Antialising TGraph](https://root-forum.cern.ch/t/antialising-tgraph/35509)

<div class="topic-metadata">

**Author:** [@marty1885](https://root-forum.cern.ch/u/marty1885)\
**Replies:** 8\
**Last updated:** [August 26, 2019, 10:02am UTC](https://root-forum.cern.ch/t/antialising-tgraph/35509 "2019-08-26T10:02:24Z")

</div>

Hi, I have been running into problems when plotting graphs with very densely packed values. Where the plot generated by ROOT looks bad due to TGraph is not anti aliased. For example The is the plot generated by ROOT …

---

## [TGraph2D Format not saved to file](https://root-forum.cern.ch/t/tgraph2d-format-not-saved-to-file/35734)

<div class="topic-metadata">

**Author:** [@RTS56](https://root-forum.cern.ch/u/RTS56)\
**Replies:** 11\
**Last updated:** [August 23, 2019, 1:09pm UTC](https://root-forum.cern.ch/t/tgraph2d-format-not-saved-to-file/35734 "2019-08-23T13:09:19Z")

</div>

Hello Rooters, I am creating a canvas with four pads, any combination of them will contain a two dimensional graph. If the macro is run live, the canvas is drawn and displays the formats that I specify. However, those…

---

## [Fit Circle to Points](https://root-forum.cern.ch/t/fit-circle-to-points/35721)

<div class="topic-metadata">

**Author:** [@rma491](https://root-forum.cern.ch/u/rma491)\
**Replies:** 3\
**Last updated:** [August 22, 2019, 9:08am UTC](https://root-forum.cern.ch/t/fit-circle-to-points/35721 "2019-08-22T09:08:34Z")

</div>

Hi! I am trying to adapt the following code to different data sets. https://root.cern/doc/master/fitCircle\_8C.html For some data sets the fit works for some it does not. Trying to solve the problem I modified the par…

---

## [Not sure how to use ROOT's Landau Gaussian convolution Fit](https://root-forum.cern.ch/t/not-sure-how-to-use-roots-landau-gaussian-convolution-fit/35693)

<div class="topic-metadata">

**Author:** [@aaylmao](https://root-forum.cern.ch/u/aaylmao)\
**Replies:** 3\
**Last updated:** [August 21, 2019, 6:48am UTC](https://root-forum.cern.ch/t/not-sure-how-to-use-roots-landau-gaussian-convolution-fit/35693 "2019-08-21T06:48:50Z")

</div>

Hi everyone, I’m new to ROOT and I’m trying to fit histogram data using the Landau Gaussian convolution fit found in: https://root.cern.ch/doc/v614/langaus\_8C\_source.html. My data is in a text file with each row containi…

---

## [TH3::FitSlicesZ behaving differently in macro (.C) as in ROOT console](https://root-forum.cern.ch/t/th3-fitslicesz-behaving-differently-in-macro-c-as-in-root-console/35710)

<div class="topic-metadata">

**Author:** [@mitlabence](https://root-forum.cern.ch/u/mitlabence)\
**Replies:** 0\
**Last updated:** [August 20, 2019, 1:53pm UTC](https://root-forum.cern.ch/t/th3-fitslicesz-behaving-differently-in-macro-c-as-in-root-console/35710 "2019-08-20T13:53:23Z")

</div>

Dear Root users, I need to use FitSlicesZ(), and created an example macro to see if it is working: TF3 \*gaus3d = new TF3("gaus3d", "\[0\]\*TMath::Gaus(x, \[1\], \[2\])\*TMath::Gaus(y, \[3\], \[4\])\*TMath::Gaus(z, \[5\], \[6\])", -5, 5…

---

## [Problem with TPaveText and Multiple Pads](https://root-forum.cern.ch/t/problem-with-tpavetext-and-multiple-pads/35696)

<div class="topic-metadata">

**Author:** [@LCotrozzi](https://root-forum.cern.ch/u/LCotrozzi)\
**Replies:** 3\
**Last updated:** [August 19, 2019, 5:14pm UTC](https://root-forum.cern.ch/t/problem-with-tpavetext-and-multiple-pads/35696 "2019-08-19T17:14:42Z")

</div>

Hi all. I have an issue plotting histograms (TH1F) together with TPaveText in different pads of a single canvas. If I do TPaveText-\>Draw(), the plot is cleared and only the text is left. Instead, if I plot a histogram to…

---

## [How can I find all TH2 bins that contain a specific range of values without using for loops?](https://root-forum.cern.ch/t/how-can-i-find-all-th2-bins-that-contain-a-specific-range-of-values-without-using-for-loops/35671)

<div class="topic-metadata">

**Author:** [@eggsAndCoffee](https://root-forum.cern.ch/u/eggsAndCoffee)\
**Replies:** 3\
**Last updated:** [August 18, 2019, 11:42am UTC](https://root-forum.cern.ch/t/how-can-i-find-all-th2-bins-that-contain-a-specific-range-of-values-without-using-for-loops/35671 "2019-08-18T11:42:12Z")

</div>

Hi all. I’m trying to avoid using for loops and manually querying all the bins in a TH2 that I have, and I’m wondering if ROOT has some functionality that lets me get back a list of all bin indices whose bins have a cert…

---

## [Issue loading two TFiles in function!](https://root-forum.cern.ch/t/issue-loading-two-tfiles-in-function/35645)

<div class="topic-metadata">

**Author:** [@jss](https://root-forum.cern.ch/u/jss)\
**Replies:** 2\
**Last updated:** [August 15, 2019, 5:48pm UTC](https://root-forum.cern.ch/t/issue-loading-two-tfiles-in-function/35645 "2019-08-15T17:48:15Z")

</div>

Hello ROOT, just another lost newbie here. I’m trying to access two TH1D histograms stored in two different root files within a function, but am having issues loading the root files from within the function. With the ba…

---

## [Help with SetBranchAddress()](https://root-forum.cern.ch/t/help-with-setbranchaddress/35258)

<div class="topic-metadata">

**Author:** [@abhi\_mal](https://root-forum.cern.ch/u/abhi_mal)\
**Replies:** 6\
**Last updated:** [August 14, 2019, 6:26pm UTC](https://root-forum.cern.ch/t/help-with-setbranchaddress/35258 "2019-08-14T18:26:52Z")

</div>

Hello everyone, Thanks for clicking on my question. It would be really helpful if someone could help me with this. The code I am working with has these lines : L1Analysis::L1AnalysisL1UpgradeDataFormat \*l1\_ = ne…

---

## [Bin navigation and assignment for TH3D](https://root-forum.cern.ch/t/bin-navigation-and-assignment-for-th3d/35634)

<div class="topic-metadata">

**Author:** [@dave](https://root-forum.cern.ch/u/dave)\
**Replies:** 2\
**Last updated:** [August 14, 2019, 9:31am UTC](https://root-forum.cern.ch/t/bin-navigation-and-assignment-for-th3d/35634 "2019-08-14T09:31:22Z")

</div>

Hi. I’m trying to retrieve information from a 3D histogram and getting confused with the output. So I’m using the code below to generate a 2x2x2 histogram and fill one of the bins positioned at (0,1,0) with 1. To outpu…

---

## [ROOT Codebase History (Gource)](https://root-forum.cern.ch/t/root-codebase-history-gource/35629)

<div class="topic-metadata">

**Author:** [@landonwilkins](https://root-forum.cern.ch/u/landonwilkins)\
**Replies:** 1\
**Last updated:** [August 14, 2019, 7:53am UTC](https://root-forum.cern.ch/t/root-codebase-history-gource/35629 "2019-08-14T07:53:08Z")

</div>

I made a Gource visualization from the ROOT repository:

---

## [Help with peak fit](https://root-forum.cern.ch/t/help-with-peak-fit/35627)

<div class="topic-metadata">

**Author:** [@JorgeM](https://root-forum.cern.ch/u/JorgeM)\
**Replies:** 1\
**Last updated:** [August 14, 2019, 7:47am UTC](https://root-forum.cern.ch/t/help-with-peak-fit/35627 "2019-08-14T07:47:30Z")

</div>

Hi! I am trying to fit an alpha peak in my histogram, but the peak is asymmetrical and I don’t know what to do. I was thinking on doing a convolution of a gaussian and a lorentzian, but that is just a voigt function and…

---

## [\[LXPLUS\] root numpy not supported for ROOT 6.18/00](https://root-forum.cern.ch/t/lxplus-root-numpy-not-supported-for-root-6-18-00/35585)

<div class="topic-metadata">

**Author:** [@rishabhCMS](https://root-forum.cern.ch/u/rishabhCMS)\
**Replies:** 5\
**Last updated:** [August 13, 2019, 1:53pm UTC](https://root-forum.cern.ch/t/lxplus-root-numpy-not-supported-for-root-6-18-00/35585 "2019-08-13T13:53:00Z")

</div>

Hi all, I am trying to run a code which converts root files to numpy arrays on my /afs space on lxplus, the code was running perfectly until recently I started getting error regarding that the current “root numpy” vers…

---

## [Segmentation violation when trying to extract histograms from a file and add them](https://root-forum.cern.ch/t/segmentation-violation-when-trying-to-extract-histograms-from-a-file-and-add-them/35612)

<div class="topic-metadata">

**Author:** [@asidley](https://root-forum.cern.ch/u/asidley)\
**Replies:** 2\
**Last updated:** [August 13, 2019, 11:51am UTC](https://root-forum.cern.ch/t/segmentation-violation-when-trying-to-extract-histograms-from-a-file-and-add-them/35612 "2019-08-13T11:51:05Z")

</div>

I am trying to run this macro that takes histograms from files, scales them and adds them together. The files are called dyj70\_100.root, dyj100\_200.root and so on. Each file contains a histogram called lh\_jetpt that I wa…

---

## [Adding contents of 2 or more TH2F/D](https://root-forum.cern.ch/t/adding-contents-of-2-or-more-th2f-d/35574)

<div class="topic-metadata">

**Author:** [@eadams](https://root-forum.cern.ch/u/eadams)\
**Replies:** 5\
**Last updated:** [August 10, 2019, 8:39am UTC](https://root-forum.cern.ch/t/adding-contents-of-2-or-more-th2f-d/35574 "2019-08-10T08:39:25Z")

</div>

Hello, I’m trying to add 2 TH2F/D histograms together so their bin contents are added. I have been trying in general and have not achieved any success when copying other forum posts: The error I keep getting through …

---

## [Read files from one Directory](https://root-forum.cern.ch/t/read-files-from-one-directory/35589)

<div class="topic-metadata">

**Author:** [@BAJA](https://root-forum.cern.ch/u/BAJA)\
**Replies:** 1\
**Last updated:** [August 10, 2019, 7:36am UTC](https://root-forum.cern.ch/t/read-files-from-one-directory/35589 "2019-08-10T07:36:10Z")

</div>

Rooters, I am still beginners in root, I posted my problem in the root forum before, and i get some help but i still dont get the target. this code should be show some results in the terminal, I have to Run it for mor…

---

## [TFile "RECREATE" gives error](https://root-forum.cern.ch/t/tfile-recreate-gives-error/35573)

<div class="topic-metadata">

**Author:** [@stzanos](https://root-forum.cern.ch/u/stzanos)\
**Replies:** 2\
**Last updated:** [August 8, 2019, 7:55pm UTC](https://root-forum.cern.ch/t/tfile-recreate-gives-error/35573 "2019-08-08T19:55:32Z")

</div>

Hello there people of Root, I’m trying to use the “RECREATE” option on a TFile that already exists. As documentation says: If dirname does not exist, it is created (like in “new”). If dirname already exist, all existi…

---

## [ROOT (TApplication) crash on exist when using with SFML](https://root-forum.cern.ch/t/root-tapplication-crash-on-exist-when-using-with-sfml/35555)

<div class="topic-metadata">

**Author:** [@marty1885](https://root-forum.cern.ch/u/marty1885)\
**Replies:** 1\
**Last updated:** [August 8, 2019, 7:20am UTC](https://root-forum.cern.ch/t/root-tapplication-crash-on-exist-when-using-with-sfml/35555 "2019-08-08T07:20:13Z")

</div>

Hi all, I was trying to use ROOT with SFML to display statistics while I do other GUI stuff. So I ended up with the following code. #include \<SFML/Window.hpp\> #include \<SFML/Graphics.hpp\> #include \<TApplication.h\> i…

---

## [Tree structure with TGraphs](https://root-forum.cern.ch/t/tree-structure-with-tgraphs/35550)

<div class="topic-metadata">

**Author:** [@stzanos](https://root-forum.cern.ch/u/stzanos)\
**Replies:** 15\
**Last updated:** [August 7, 2019, 2:13pm UTC](https://root-forum.cern.ch/t/tree-structure-with-tgraphs/35550 "2019-08-07T14:13:10Z")

</div>

Hi there people of Root, I’m kinda new here and I’m trying to create a root file that would hold three trees with TGraphs with Datetime x axis. The structure would be like this: Each tree would be data read from diffe…

---

## [Frame variable bin width](https://root-forum.cern.ch/t/frame-variable-bin-width/35163)

<div class="topic-metadata">

**Author:** [@raly](https://root-forum.cern.ch/u/raly)\
**Replies:** 9\
**Last updated:** [August 7, 2019, 12:28pm UTC](https://root-forum.cern.ch/t/frame-variable-bin-width/35163 "2019-08-07T12:28:39Z")

</div>

Dear Experts, I have a simple question: I have a histogram defined with variable bin width, now I want to define TFrame with the same variable bin width. But the frame drawn with wrong x-axis binning. Here are a part …

---

## [Hello, I am a new member](https://root-forum.cern.ch/t/hello-i-am-a-new-member/35500)

<div class="topic-metadata">

**Author:** [@nickjonson](https://root-forum.cern.ch/u/nickjonson)\
**Replies:** 4\
**Last updated:** [August 6, 2019, 9:54am UTC](https://root-forum.cern.ch/t/hello-i-am-a-new-member/35500 "2019-08-06T09:54:00Z")

</div>

I just joined the forum, I also have a little knowledge about ROOT so I want to learn more from you. Glad to welcome here

---

## [Segmentation fault while loading delphes library](https://root-forum.cern.ch/t/segmentation-fault-while-loading-delphes-library/35486)

<div class="topic-metadata">

**Author:** [@jack42164](https://root-forum.cern.ch/u/jack42164)\
**Replies:** 2\
**Last updated:** [August 5, 2019, 8:12pm UTC](https://root-forum.cern.ch/t/segmentation-fault-while-loading-delphes-library/35486 "2019-08-05T20:12:10Z")

</div>

Hello, I’ve been trying to run Example1.C from the delphes QuickTour (here) with a sample delphes output. However, when I start root and then execute gSystem-\>Load(“libDelphes”), I get a segmentation fault. Here are al…

---

## [Documentation quirks](https://root-forum.cern.ch/t/documentation-quirks/35511)

<div class="topic-metadata">

**Author:** [@MarcoS](https://root-forum.cern.ch/u/MarcoS)\
**Replies:** 1\
**Last updated:** [August 5, 2019, 2:55pm UTC](https://root-forum.cern.ch/t/documentation-quirks/35511 "2019-08-05T14:55:12Z")

</div>

Hello, some information appears to be missing in the online documentation for installation. I installed root on Windows 10, with WSL running Ubuntu 18.04, using precompiled binaries (pro 6.18/00) for Ubuntu 18 gcc 7.4 …

---

## [Failed to build root on OpenBSD, rootcling erred missing dynamic libraries and allDict.cxx.pch](https://root-forum.cern.ch/t/failed-to-build-root-on-openbsd-rootcling-erred-missing-dynamic-libraries-and-alldict-cxx-pch/35458)

<div class="topic-metadata">

**Author:** [@tuanhtrng](https://root-forum.cern.ch/u/tuanhtrng)\
**Replies:** 3\
**Last updated:** [August 5, 2019, 8:38am UTC](https://root-forum.cern.ch/t/failed-to-build-root-on-openbsd-rootcling-erred-missing-dynamic-libraries-and-alldict-cxx-pch/35458 "2019-08-05T08:38:46Z")

</div>

This is a continuation of this thread. \[1/921\] Generating G\_\_MathCore.cxx, ../../lib/libMathCore\_rdict.pcm, ../../lib/libMathCore.rootmap FAILED: math/mathcore/G\_\_MathCore.cxx lib/libMathCore\_rdict.pcm lib/libMathCore.r…

---

## [Smearing an energy according to a crystal ball function](https://root-forum.cern.ch/t/smearing-an-energy-according-to-a-crystal-ball-function/35395)

<div class="topic-metadata">

**Author:** [@morv](https://root-forum.cern.ch/u/morv)\
**Replies:** 6\
**Last updated:** [August 5, 2019, 8:13am UTC](https://root-forum.cern.ch/t/smearing-an-energy-according-to-a-crystal-ball-function/35395 "2019-08-05T08:13:14Z")

</div>

Hi there, I have a TTree containing decay products, with energies given by pure theory (conservation of energy, momentum etc.), in the proportions predicted by pure theory (QFT decay width). I would like to create dist…

---

## [Filling New Branches in a Tree with Fewer Entries Than Other Branches in the Same Tree](https://root-forum.cern.ch/t/filling-new-branches-in-a-tree-with-fewer-entries-than-other-branches-in-the-same-tree/35484)

<div class="topic-metadata">

**Author:** [@regulus](https://root-forum.cern.ch/u/regulus)\
**Replies:** 2\
**Last updated:** [August 3, 2019, 8:23pm UTC](https://root-forum.cern.ch/t/filling-new-branches-in-a-tree-with-fewer-entries-than-other-branches-in-the-same-tree/35484 "2019-08-03T20:23:22Z")

</div>

I am writing a macro to read variables from an existing root file, create new branches, and calculate variables for those branches from variables in the existing branches. The new branches should have a smaller number o…

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

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