# Newbie

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

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

---

## [Question about DrawNetwork in TMLPAnalyzer](https://root-forum.cern.ch/t/question-about-drawnetwork-in-tmlpanalyzer/55789)

<div class="topic-metadata">

**Author:** [@mortonia](https://root-forum.cern.ch/u/mortonia)\
**Replies:** 2\
**Last updated:** [August 7, 2023, 12:07pm UTC](https://root-forum.cern.ch/t/question-about-drawnetwork-in-tmlpanalyzer/55789 "2023-08-07T12:07:38Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.22/06 Platform: Ubuntu Compiler: Not Provided Dear ROOT community, Hello! This is my first post here. I’m attempting to class…

---

## [Give argument to function added using TExec?](https://root-forum.cern.ch/t/give-argument-to-function-added-using-texec/55777)

<div class="topic-metadata">

**Author:** [@1vy](https://root-forum.cern.ch/u/1vy)\
**Replies:** 4\
**Last updated:** [August 7, 2023, 9:21am UTC](https://root-forum.cern.ch/t/give-argument-to-function-added-using-texec/55777 "2023-08-07T09:21:42Z")

</div>

Hi, I know this is probably a really basic question answered somewhere in the documentation, but I am really new to programming so I struggle to find the answer! :slight\_smile: I want to do something like this where the…

---

## [Root dataset analysis](https://root-forum.cern.ch/t/root-dataset-analysis/55936)

<div class="topic-metadata">

**Author:** [@Piyush\_Bhardwaj](https://root-forum.cern.ch/u/Piyush_Bhardwaj)\
**Replies:** 5\
**Last updated:** [August 6, 2023, 3:52pm UTC](https://root-forum.cern.ch/t/root-dataset-analysis/55936 "2023-08-06T15:52:03Z")

</div>

Hi! So, I read ROOT primer and about to complete ROOT manual and ,I have 2 questions about dataset provided in the form of ROOT files. Firstly, given a root file in open-data, how to carry out analysis with it ? Is ther…

---

## [Errors in TUnfold using Roounfold](https://root-forum.cern.ch/t/errors-in-tunfold-using-roounfold/55920)

<div class="topic-metadata">

**Author:** [@pjana](https://root-forum.cern.ch/u/pjana)\
**Replies:** 2\
**Last updated:** [August 5, 2023, 4:39am UTC](https://root-forum.cern.ch/t/errors-in-tunfold-using-roounfold/55920 "2023-08-05T04:39:48Z")

</div>

Dear experts, I am doing unfolding Roounfold. I am following the instructions from here. I can do SVD and Bayes following this script. But when I am trying to do TUnfold, it is showing error like: IncrementalExecuto…

---

## [Root TBrowser](https://root-forum.cern.ch/t/root-tbrowser/55921)

<div class="topic-metadata">

**Author:** [@Noor1](https://root-forum.cern.ch/u/Noor1)\
**Replies:** 1\
**Last updated:** [August 4, 2023, 11:44am UTC](https://root-forum.cern.ch/t/root-tbrowser/55921 "2023-08-04T11:44:31Z")

</div>

Dear All, I have created root file using ROOT6. when I try to open it I use: root -l TBrowser b("Target1.root") but it opens with the net browser with ROOT7 page, in the past I used to open it as a windows format fo…

---

## [Exponential Decay Fit](https://root-forum.cern.ch/t/exponential-decay-fit/55559)

<div class="topic-metadata">

**Author:** [@iamaanand](https://root-forum.cern.ch/u/iamaanand)\
**Replies:** 9\
**Last updated:** [August 3, 2023, 1:15pm UTC](https://root-forum.cern.ch/t/exponential-decay-fit/55559 "2023-08-03T13:15:19Z")

</div>

I am trying to fit this exponential decay histogram. I used TF1\* f1 = new TF1(“f1”,“\[0\]\*exp(-\[1\]\*x)”,0,150); f1-\>SetParameters(0, 2000); f1-\>SetParameters(1, 5000); Why this fitting not working?

---

## [How to have properly weighted error bar from a weighted RooDataset](https://root-forum.cern.ch/t/how-to-have-properly-weighted-error-bar-from-a-weighted-roodataset/55899)

<div class="topic-metadata">

**Author:** [@TristanM](https://root-forum.cern.ch/u/TristanM)\
**Replies:** 4\
**Last updated:** [August 3, 2023, 10:57am UTC](https://root-forum.cern.ch/t/how-to-have-properly-weighted-error-bar-from-a-weighted-roodataset/55899 "2023-08-03T10:57:54Z")

</div>

Hi ROOT expert, For the purpose of my analysis I have to work on invariant mass distributions, I have to use a huge statistic of exclusive simulated events, and then rescale them w.r.t. the expected number of event of e…

---

## [Does Pearson chi square fit use expected error or observed error in TH1::Fit()](https://root-forum.cern.ch/t/does-pearson-chi-square-fit-use-expected-error-or-observed-error-in-th1-fit/55816)

<div class="topic-metadata">

**Author:** [@Ya-Feng\_Lo](https://root-forum.cern.ch/u/Ya-Feng_Lo)\
**Replies:** 2\
**Last updated:** [August 2, 2023, 3:08pm UTC](https://root-forum.cern.ch/t/does-pearson-chi-square-fit-use-expected-error-or-observed-error-in-th1-fit/55816 "2023-08-02T15:08:56Z")

</div>

Hi all, I tried to fit two linear histograms with one data point shifted up. (see attached) The data point is assigned with a very large error by Setbinerror in one of the histogram (linear\_testfit\_large\_unc\_P.pdf), wh…

---

## [Rotate a figure 90 degrees](https://root-forum.cern.ch/t/rotate-a-figure-90-degrees/55623)

<div class="topic-metadata">

**Author:** [@samfred](https://root-forum.cern.ch/u/samfred)\
**Replies:** 10\
**Last updated:** [August 1, 2023, 9:08am UTC](https://root-forum.cern.ch/t/rotate-a-figure-90-degrees/55623 "2023-08-01T09:08:54Z")

</div>

I am working with a detector built out of hexagons, so to represent it in a 2D histogram I am using TH2Poly and Honeycomb, but I can only draw this histogram with the hexagons oriented 90 degrees off of what they are in …

---

## [Shift of Histogram along y-axis](https://root-forum.cern.ch/t/shift-of-histogram-along-y-axis/55879)

<div class="topic-metadata">

**Author:** [@Yasir\_Ali](https://root-forum.cern.ch/u/Yasir_Ali)\
**Replies:** 1\
**Last updated:** [August 1, 2023, 7:46am UTC](https://root-forum.cern.ch/t/shift-of-histogram-along-y-axis/55879 "2023-08-01T07:46:31Z")

</div>

Dear Experts I have a question is it possible to shift the histogram along Y axis. Like if you see the attached screen shot. The histogram is shifted in Y-axis. Can we force it to start from 0. My Macro is also atta…

---

## [Accessing Object Information Available in TBrowser Without GUI](https://root-forum.cern.ch/t/accessing-object-information-available-in-tbrowser-without-gui/55849)

<div class="topic-metadata">

**Author:** [@Lynne](https://root-forum.cern.ch/u/Lynne)\
**Replies:** 1\
**Last updated:** [July 31, 2023, 11:56am UTC](https://root-forum.cern.ch/t/accessing-object-information-available-in-tbrowser-without-gui/55849 "2023-07-31T11:56:27Z")

</div>

Hi, so I am using ROOT with CMSSW, and a lot of the branches I’m looking at contain objects with multiple different methods and such. Using the TBrowser, I can see all of the different methods available under the branche…

---

## [Installation help for Mac M1](https://root-forum.cern.ch/t/installation-help-for-mac-m1/55869)

<div class="topic-metadata">

**Author:** [@Andrew\_Hwang](https://root-forum.cern.ch/u/Andrew_Hwang)\
**Replies:** 1\
**Last updated:** [July 31, 2023, 11:43am UTC](https://root-forum.cern.ch/t/installation-help-for-mac-m1/55869 "2023-07-31T11:43:56Z")

</div>

Hello, I am trying to use PyROOT I currently installed ROOT using homebrew However, when I use import ROOT I have trouble: ModuleNotFoundError: No module named ‘ROOT’ I think there is something missing in my underst…

---

## [Two different Binnings](https://root-forum.cern.ch/t/two-different-binnings/55669)

<div class="topic-metadata">

**Author:** [@Ian\_L](https://root-forum.cern.ch/u/Ian_L)\
**Replies:** 5\
**Last updated:** [July 28, 2023, 5:31pm UTC](https://root-forum.cern.ch/t/two-different-binnings/55669 "2023-07-28T17:31:01Z")

</div>

Hello, I am trying to visualize some data from a Geant4 simulation using the TBrowser, and whenever I try to adjust the binning of the histograms, I get one of two options, shown below: I get to these options by sel…

---

## [Setting Value of Fit Parameter to Depend on Another Fit Parameter Value](https://root-forum.cern.ch/t/setting-value-of-fit-parameter-to-depend-on-another-fit-parameter-value/55819)

<div class="topic-metadata">

**Author:** [@Bassam](https://root-forum.cern.ch/u/Bassam)\
**Replies:** 2\
**Last updated:** [July 27, 2023, 9:05pm UTC](https://root-forum.cern.ch/t/setting-value-of-fit-parameter-to-depend-on-another-fit-parameter-value/55819 "2023-07-27T21:05:33Z")

</div>

Hello all, I would like to perform a fit, where the value of one of the fit parameters depends on the value of another fit parameter. For example, lets say I have a functions that has two parameters, then what I would l…

---

## [Combining root histograms not working](https://root-forum.cern.ch/t/combining-root-histograms-not-working/55813)

<div class="topic-metadata">

**Author:** [@Ian\_L](https://root-forum.cern.ch/u/Ian_L)\
**Replies:** 15\
**Last updated:** [July 27, 2023, 5:26pm UTC](https://root-forum.cern.ch/t/combining-root-histograms-not-working/55813 "2023-07-27T17:26:42Z")

</div>

Hello, I am trying to get histograms from three different .root files to be plotted on the same plot. This is the code I had used to try to get them to combine: void simple() { TFile \*f1 = new TFile("TestCAL\_Co60\_d5z…

---

## [USER GUIDE or MANUAL?](https://root-forum.cern.ch/t/user-guide-or-manual/55843)

<div class="topic-metadata">

**Author:** [@Piyush\_Bhardwaj](https://root-forum.cern.ch/u/Piyush_Bhardwaj)\
**Replies:** 1\
**Last updated:** [July 27, 2023, 12:21pm UTC](https://root-forum.cern.ch/t/user-guide-or-manual/55843 "2023-07-27T12:21:40Z")

</div>

What should we go through as a beginner , User guide or Root manual ?

---

## [Styling Using both Relative and Absolute Units](https://root-forum.cern.ch/t/styling-using-both-relative-and-absolute-units/55671)

<div class="topic-metadata">

**Author:** [@rhillman](https://root-forum.cern.ch/u/rhillman)\
**Replies:** 2\
**Last updated:** [July 27, 2023, 12:11pm UTC](https://root-forum.cern.ch/t/styling-using-both-relative-and-absolute-units/55671 "2023-07-27T12:11:06Z")

</div>

Greetings! I’d like to better understand how sizing and offsets work for histograms. Right now, I’m defining custom styles for plotting, and I’m curious how the offset units for various elements within a pad work. For …

---

## [Cutting a histogram based on data within the histogram](https://root-forum.cern.ch/t/cutting-a-histogram-based-on-data-within-the-histogram/55681)

<div class="topic-metadata">

**Author:** [@alex.smith3](https://root-forum.cern.ch/u/alex.smith3)\
**Replies:** 6\
**Last updated:** [July 27, 2023, 10:39am UTC](https://root-forum.cern.ch/t/cutting-a-histogram-based-on-data-within-the-histogram/55681 "2023-07-27T10:39:17Z")

</div>

Hi, I have a 2D histogram to plot how energy is deposited in a material. I want to find the moliere radius of the material, the radius within which 90% of the energy is deposited. I have tried fitting slices in Y and l…

---

## [THnSparse Mystery](https://root-forum.cern.ch/t/thnsparse-mystery/55449)

<div class="topic-metadata">

**Author:** [@cmclauchlin](https://root-forum.cern.ch/u/cmclauchlin)\
**Replies:** 4\
**Last updated:** [July 26, 2023, 3:10pm UTC](https://root-forum.cern.ch/t/thnsparse-mystery/55449 "2023-07-26T15:10:32Z")

</div>

I have a 7-dimensional THnSparseD Histogram (Friend) which I make in one program, output, and then read into another program to analyze. During this later analysis, I’ve consistently run into issues where the structures …

---

## [Hadd options for merging files](https://root-forum.cern.ch/t/hadd-options-for-merging-files/55832)

<div class="topic-metadata">

**Author:** [@Helen\_R\_Maguire](https://root-forum.cern.ch/u/Helen_R_Maguire)\
**Replies:** 2\
**Last updated:** [July 26, 2023, 1:48pm UTC](https://root-forum.cern.ch/t/hadd-options-for-merging-files/55832 "2023-07-26T13:48:28Z")

</div>

Hi, I am wanting to know if there is an option for hadd so that it adds files together 1 entry per file and then the 2nd entry per file? I have 4 ntuples that I want to merge together but preferably I would like the 1st…

---

## [TTree creation with TBranches created in loop issue](https://root-forum.cern.ch/t/ttree-creation-with-tbranches-created-in-loop-issue/55772)

<div class="topic-metadata">

**Author:** [@lgi](https://root-forum.cern.ch/u/lgi)\
**Replies:** 2\
**Last updated:** [July 25, 2023, 7:41am UTC](https://root-forum.cern.ch/t/ttree-creation-with-tbranches-created-in-loop-issue/55772 "2023-07-25T07:41:29Z")

</div>

Dear all, I’m writing a C++ code solving the Lorentz force equation with a numerical method (from GSL) for multiple primaries, and trying to store the individual trajectories in a ROOT file. From ROOT’s documentation, I…

---

## [Appending two different branches from two different Tree into one tree](https://root-forum.cern.ch/t/appending-two-different-branches-from-two-different-tree-into-one-tree/55805)

<div class="topic-metadata">

**Author:** [@pjana](https://root-forum.cern.ch/u/pjana)\
**Replies:** 1\
**Last updated:** [July 24, 2023, 10:47am UTC](https://root-forum.cern.ch/t/appending-two-different-branches-from-two-different-tree-into-one-tree/55805 "2023-07-24T10:47:45Z")

</div>

I have two different branches b1 and b2 in a Tree T1 and another root file with different branches b3, and b4 inside a Tree T2. Is there any way I can append b1 and b2 to T2 Tree?

---

## [Errors when launching root after installation](https://root-forum.cern.ch/t/errors-when-launching-root-after-installation/55759)

<div class="topic-metadata">

**Author:** [@abunka](https://root-forum.cern.ch/u/abunka)\
**Replies:** 5\
**Last updated:** [July 20, 2023, 9:16pm UTC](https://root-forum.cern.ch/t/errors-when-launching-root-after-installation/55759 "2023-07-20T21:16:12Z")

</div>

Hello, I have just installed root on windows 11, with the dependencies cmake, python, and visual studio, the latest version of each. I followed the basic instructions here, sourcing thisroot.bat. On launching root, I r…

---

## [How to get bin entries of a bin for histograms(with event weight)?](https://root-forum.cern.ch/t/how-to-get-bin-entries-of-a-bin-for-histograms-with-event-weight/55782)

<div class="topic-metadata">

**Author:** [@huiling110](https://root-forum.cern.ch/u/huiling110)\
**Replies:** 1\
**Last updated:** [July 21, 2023, 10:39am UTC](https://root-forum.cern.ch/t/how-to-get-bin-entries-of-a-bin-for-histograms-with-event-weight/55782 "2023-07-21T10:39:55Z")

</div>

Dear experts, Hello! Is there any method to get the bin entries for a specific bin? Assume the histogram is filled with non constant event weight. Thanks Cheers, Huiling

---

## [Updating TGeoManager/TEve code to use REve/ROOT7](https://root-forum.cern.ch/t/updating-tgeomanager-teve-code-to-use-reve-root7/55720)

<div class="topic-metadata">

**Author:** [@ross](https://root-forum.cern.ch/u/ross)\
**Replies:** 2\
**Last updated:** [July 18, 2023, 10:47pm UTC](https://root-forum.cern.ch/t/updating-tgeomanager-teve-code-to-use-reve-root7/55720 "2023-07-18T22:47:39Z")

</div>

Hi, I am working on updating an event display that was created using TGeoManager and TEve to use REve/ROOT7. While working with TGeoManager and TEve, TEve had the capability of taking TGeoManager geometries and adding th…

---

## [Ugly tick labels](https://root-forum.cern.ch/t/ugly-tick-labels/55707)

<div class="topic-metadata">

**Author:** [@Natalia\_D](https://root-forum.cern.ch/u/Natalia_D)\
**Replies:** 7\
**Last updated:** [July 18, 2023, 7:50pm UTC](https://root-forum.cern.ch/t/ugly-tick-labels/55707 "2023-07-18T19:50:12Z")

</div>

Good afternoon! I want to do some drawing, but obtain ugly tick labels: the ‘-’ sign coincides with the digits for negative numbers; alignment; size. Below there is a sample code along with the result. #include \<TAx…

---

## [Creating a log and linear plot in the same canvas pad using THStack](https://root-forum.cern.ch/t/creating-a-log-and-linear-plot-in-the-same-canvas-pad-using-thstack/55729)

<div class="topic-metadata">

**Author:** [@Xavier\_James](https://root-forum.cern.ch/u/Xavier_James)\
**Replies:** 7\
**Last updated:** [July 18, 2023, 3:37pm UTC](https://root-forum.cern.ch/t/creating-a-log-and-linear-plot-in-the-same-canvas-pad-using-thstack/55729 "2023-07-18T15:37:26Z")

</div>

Hi all, I am currently having trouble with the issue of being able to display a log and a linear plot in the same pad using THStack. I know that one of the pads should be transparent, however, I am having difficulty in …

---

## [PyRoot: Writing TMultiGraph to root file](https://root-forum.cern.ch/t/pyroot-writing-tmultigraph-to-root-file/55677)

<div class="topic-metadata">

**Author:** [@ehazelto](https://root-forum.cern.ch/u/ehazelto)\
**Replies:** 1\
**Last updated:** [July 17, 2023, 8:17am UTC](https://root-forum.cern.ch/t/pyroot-writing-tmultigraph-to-root-file/55677 "2023-07-17T08:17:04Z")

</div>

I am trying to write a TMultiGraph containing two TGraphs to a root file. I can write each TGraph individually as their own object to the root file and all the points show up. When I use a TBrowser to look at the file, t…

---

## [Forum to post questions related to CMSSW?](https://root-forum.cern.ch/t/forum-to-post-questions-related-to-cmssw/55697)

<div class="topic-metadata">

**Author:** [@Russell\_Marroquin1](https://root-forum.cern.ch/u/Russell_Marroquin1)\
**Replies:** 1\
**Last updated:** [July 17, 2023, 8:00am UTC](https://root-forum.cern.ch/t/forum-to-post-questions-related-to-cmssw/55697 "2023-07-17T08:00:26Z")

</div>

Hi everyone, I am new to the CMS experiment and I am wondering if anyone here knows about an forum where I can post questions or discussions about the CMS Software (CMSSW). So far, I’ve had no success in finding one. Th…

---

## [Start using PyRoot](https://root-forum.cern.ch/t/start-using-pyroot/55636)

<div class="topic-metadata">

**Author:** [@lapan](https://root-forum.cern.ch/u/lapan)\
**Replies:** 2\
**Last updated:** [July 13, 2023, 11:14pm UTC](https://root-forum.cern.ch/t/start-using-pyroot/55636 "2023-07-13T23:14:44Z")

</div>

I have Ubuntu 22.04 I installed python 3.10.6 and ROOT 6.28/04 But when I try to import ROOT in Python prompt, I get an error ModuleNotFoundError: No module named ‘ROOT’ How do I start using ROOT in python

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

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