# Newbie

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

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

---

## [STL data in ROOT](https://root-forum.cern.ch/t/stl-data-in-root/38058)

<div class="topic-metadata">

**Author:** [@svetashasharina](https://root-forum.cern.ch/u/svetashasharina)\
**Replies:** 5\
**Last updated:** [February 20, 2020, 3:27pm UTC](https://root-forum.cern.ch/t/stl-data-in-root/38058 "2020-02-20T15:27:48Z")

</div>

Hi everybody, I would like to import data which is a tessellated surface (list of triangles) and create a geometry object in ROOT. Suggestions? Thank you, Svetlana

---

## [Problem using ROOT in a Geant4 project](https://root-forum.cern.ch/t/problem-using-root-in-a-geant4-project/38008)

<div class="topic-metadata">

**Author:** [@Joanna-Gao](https://root-forum.cern.ch/u/Joanna-Gao)\
**Replies:** 3\
**Last updated:** [February 17, 2020, 9:45pm UTC](https://root-forum.cern.ch/t/problem-using-root-in-a-geant4-project/38008 "2020-02-17T21:45:05Z")

</div>

Hi, I am trying to simulate a cube of water with neutrons shooting into it and extract the information of energy deposition using Geant4. The main body of my code is adapted from Geant4 basic example B1, minus the two v…

---

## [Define FCN for Minuit that require parameters from main](https://root-forum.cern.ch/t/define-fcn-for-minuit-that-require-parameters-from-main/37955)

<div class="topic-metadata">

**Author:** [@mlehuraux](https://root-forum.cern.ch/u/mlehuraux)\
**Replies:** 9\
**Last updated:** [February 17, 2020, 1:51pm UTC](https://root-forum.cern.ch/t/define-fcn-for-minuit-that-require-parameters-from-main/37955 "2020-02-17T13:51:03Z")

</div>

Hello everyone, My question is maybe more C++/code structure oriented but I wonder if some of you encountered the same difficulty and might be able to help me here ! I would like to define a fcn for Minuit to minimize,…

---

## [Can't open graphs from Terminal](https://root-forum.cern.ch/t/cant-open-graphs-from-terminal/37998)

<div class="topic-metadata">

**Author:** [@Sophie345](https://root-forum.cern.ch/u/Sophie345)\
**Replies:** 1\
**Last updated:** [February 17, 2020, 8:44am UTC](https://root-forum.cern.ch/t/cant-open-graphs-from-terminal/37998 "2020-02-17T08:44:04Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided Hi I’ve been using Root on a remote desktop for a while but I’ve just…

---

## [Example to show how to display histograms?](https://root-forum.cern.ch/t/example-to-show-how-to-display-histograms/37818)

<div class="topic-metadata">

**Author:** [@TimFulcher](https://root-forum.cern.ch/u/TimFulcher)\
**Replies:** 17\
**Last updated:** [February 16, 2020, 7:05pm UTC](https://root-forum.cern.ch/t/example-to-show-how-to-display-histograms/37818 "2020-02-16T19:05:31Z")

</div>

Hi all, Is there an example that will show me how to display the histograms in the attached picture? Thanks in advance Tim

---

## [Student's T-Test in ROOT](https://root-forum.cern.ch/t/students-t-test-in-root/37984)

<div class="topic-metadata">

**Author:** [@marty1885](https://root-forum.cern.ch/u/marty1885)\
**Replies:** 1\
**Last updated:** [February 15, 2020, 3:33pm UTC](https://root-forum.cern.ch/t/students-t-test-in-root/37984 "2020-02-15T15:33:27Z")

</div>

Hi, I’m wondering how I could perform a Student’s T-Test using ROOT. It is doable via some combination of RDataFram operations and RooStat calls to calculate the CDF. But that seems off. Is there a simpler way to run t-…

---

## [Marker size according to data points](https://root-forum.cern.ch/t/marker-size-according-to-data-points/37949)

<div class="topic-metadata">

**Author:** [@wellatiger](https://root-forum.cern.ch/u/wellatiger)\
**Replies:** 6\
**Last updated:** [February 13, 2020, 7:09pm UTC](https://root-forum.cern.ch/t/marker-size-according-to-data-points/37949 "2020-02-13T19:09:40Z")

</div>

Dear experts, Is it possible to draw a graph where the each data point has a different size!? As can be done in pyplot scatter plot. pyplot|662x500 Thank you in advance,

---

## [Using cmake to include root package](https://root-forum.cern.ch/t/using-cmake-to-include-root-package/37915)

<div class="topic-metadata">

**Author:** [@penielse](https://root-forum.cern.ch/u/penielse)\
**Replies:** 3\
**Last updated:** [February 12, 2020, 12:17pm UTC](https://root-forum.cern.ch/t/using-cmake-to-include-root-package/37915 "2020-02-12T12:17:19Z")

</div>

Hi I have a small cpp program, in which I would like to use the TVector package from root. I have root installed on my pc. I am running Ubuntu. I use cmake to generate my makefile. I know that somehow need to link to t…

---

## [How to Initialize Muon Vectors](https://root-forum.cern.ch/t/how-to-initialize-muon-vectors/37899)

<div class="topic-metadata">

**Author:** [@usernew](https://root-forum.cern.ch/u/usernew)\
**Replies:** 3\
**Last updated:** [February 11, 2020, 8:42am UTC](https://root-forum.cern.ch/t/how-to-initialize-muon-vectors/37899 "2020-02-11T08:42:02Z")

</div>

I am trying to reconstruct two Z bosons. I am using this tutorial as an example. ROOT: tutorials/dataframe/df103\_NanoAODHiggsAnalysis.C File Reference However, I am still not familiar in using ROOT data frame and I am …

---

## [Como instalar Root para ubuntu 14.04.3?](https://root-forum.cern.ch/t/como-instalar-root-para-ubuntu-14-04-3/37889)

<div class="topic-metadata">

**Author:** [@jeyson](https://root-forum.cern.ch/u/jeyson)\
**Replies:** 1\
**Last updated:** [February 8, 2020, 8:14am UTC](https://root-forum.cern.ch/t/como-instalar-root-para-ubuntu-14-04-3/37889 "2020-02-08T08:14:39Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided

---

## [TGraph with string values - string values on X axis won't display](https://root-forum.cern.ch/t/tgraph-with-string-values-string-values-on-x-axis-wont-display/37799)

<div class="topic-metadata">

**Author:** [@Jitrusko](https://root-forum.cern.ch/u/Jitrusko)\
**Replies:** 4\
**Last updated:** [February 3, 2020, 9:40am UTC](https://root-forum.cern.ch/t/tgraph-with-string-values-string-values-on-x-axis-wont-display/37799 "2020-02-03T09:40:37Z")

</div>

Hi everyone, I am plotting a graph with double Y axis and string values on the X axis, but along the x axis the values aren’t displayed. It just shows one of them at the end. Any idea how to solve this? void plot(){ st…

---

## [Creating and filling root tree in separate functions](https://root-forum.cern.ch/t/creating-and-filling-root-tree-in-separate-functions/37847)

<div class="topic-metadata">

**Author:** [@lbezzina](https://root-forum.cern.ch/u/lbezzina)\
**Replies:** 2\
**Last updated:** [February 7, 2020, 12:40am UTC](https://root-forum.cern.ch/t/creating-and-filling-root-tree-in-separate-functions/37847 "2020-02-07T00:40:15Z")

</div>

I am struggling with filling a TTree which I create with one function, then pass it back to another function which fills it. It seems as though the tree is being filled the correct number of times, but only with the init…

---

## [Axes Label and fitting \[pyroot\]](https://root-forum.cern.ch/t/axes-label-and-fitting-pyroot/37832)

<div class="topic-metadata">

**Author:** [@theyellowdog](https://root-forum.cern.ch/u/theyellowdog)\
**Replies:** 1\
**Last updated:** [February 4, 2020, 8:33am UTC](https://root-forum.cern.ch/t/axes-label-and-fitting-pyroot/37832 "2020-02-04T08:33:27Z")

</div>

I have a root file that that I have to analyse. bottom = ROOT.TFile(“202001081411\_r750\_W2-I8-1\_pin4\_RedBottom\_Tune30.dat.root”) tree\_bottom = bottom.Get(“edge”) c=ROOT.TCanvas() tree\_bottom.Draw(“volt-BlineMean:ti…

---

## [Root on macos mojave with python3](https://root-forum.cern.ch/t/root-on-macos-mojave-with-python3/37808)

<div class="topic-metadata">

**Author:** [@adpara](https://root-forum.cern.ch/u/adpara)\
**Replies:** 2\
**Last updated:** [February 3, 2020, 8:13am UTC](https://root-forum.cern.ch/t/root-on-macos-mojave-with-python3/37808 "2020-02-03T08:13:45Z")

</div>

I have installed Root using the standard procedure $ git clone https://github.com/root-project/root.git $ cmake ../root $ make -j8 Root builds and functions fine. I have OYHTOPATH defined as (base) mac-133806:.spyder…

---

## [Trouble enabling geocad tool](https://root-forum.cern.ch/t/trouble-enabling-geocad-tool/37792)

<div class="topic-metadata">

**Author:** [@Bresim](https://root-forum.cern.ch/u/Bresim)\
**Replies:** 2\
**Last updated:** [January 31, 2020, 3:08pm UTC](https://root-forum.cern.ch/t/trouble-enabling-geocad-tool/37792 "2020-01-31T15:08:14Z")

</div>

Hello, I have installed Root version 6.14 from source so I can enable the TGeoCad interface (https://iopscience.iop.org/article/10.1088/1742-6596/523/1/012017), no longer available in the latest release versions, appare…

---

## [How to use TTreeReaderValue?](https://root-forum.cern.ch/t/how-to-use-ttreereadervalue/37773)

<div class="topic-metadata">

**Author:** [@Mario\_Sessini](https://root-forum.cern.ch/u/Mario_Sessini)\
**Replies:** 2\
**Last updated:** [January 30, 2020, 9:28am UTC](https://root-forum.cern.ch/t/how-to-use-ttreereadervalue/37773 "2020-01-30T09:28:37Z")

</div>

Hello, I am trying to compile a very simple code just to understand how to use TTreeReader and TTreeReaderValue. \`#include “TFile.h” #include “TH1F.h” #include “TCanvas.h” #include “TMath.h” #include “TTreeReader.h…

---

## [How to filter information in ROOT?](https://root-forum.cern.ch/t/how-to-filter-information-in-root/37766)

<div class="topic-metadata">

**Author:** [@Miguel](https://root-forum.cern.ch/u/Miguel)\
**Replies:** 2\
**Last updated:** [January 29, 2020, 3:10pm UTC](https://root-forum.cern.ch/t/how-to-filter-information-in-root/37766 "2020-01-29T15:10:06Z")

</div>

Hello there! I’ve been using ROOT to analyze the data given by CORSIKA, but there’s something that I am not able to do, so I need help. This is the situation: CORSIKA output can be converted into a ROOT file, which co…

---

## [Histogram construction~](https://root-forum.cern.ch/t/histogram-construction/37755)

<div class="topic-metadata">

**Author:** [@christie](https://root-forum.cern.ch/u/christie)\
**Replies:** 2\
**Last updated:** [January 29, 2020, 6:44am UTC](https://root-forum.cern.ch/t/histogram-construction/37755 "2020-01-29T06:44:56Z")

</div>

Hello ROOT experts, I’m new to ROOT and ROOT forum. Your help will be appreciated! I want to construct a histogram of Pt within a certain azimuth range as follows: azimuth (in radians): 8 bins from -pi to pi Pt (GeV/…

---

## [ROOT states the directory not writable even though it was opened with "UPDATE"](https://root-forum.cern.ch/t/root-states-the-directory-not-writable-even-though-it-was-opened-with-update/37691)

<div class="topic-metadata">

**Author:** [@Galdiano](https://root-forum.cern.ch/u/Galdiano)\
**Replies:** 6\
**Last updated:** [January 28, 2020, 5:14pm UTC](https://root-forum.cern.ch/t/root-states-the-directory-not-writable-even-though-it-was-opened-with-update/37691 "2020-01-28T17:14:46Z")

</div>

Hello there! This is my first post here so thank you for the attention. Now, on to the problem at hand. I’m currently trying to draw a series of histograms. To do so, I defined a function Createf90Dist , which I procee…

---

## [Filling histogram with errors](https://root-forum.cern.ch/t/filling-histogram-with-errors/37730)

<div class="topic-metadata">

**Author:** [@sapinski](https://root-forum.cern.ch/u/sapinski)\
**Replies:** 1\
**Last updated:** [January 27, 2020, 12:05pm UTC](https://root-forum.cern.ch/t/filling-histogram-with-errors/37730 "2020-01-27T12:05:07Z")

</div>

Hi, I’m sure this was asked before, but I cant find/understand the answer. I have a set of measurements, each of it has a different error. I want to make histogram with proper errors. So I use Sumw2 option and Fill wit…

---

## [TControlBar - Coordinates Problem](https://root-forum.cern.ch/t/tcontrolbar-coordinates-problem/37725)

<div class="topic-metadata">

**Author:** [@ilomi](https://root-forum.cern.ch/u/ilomi)\
**Replies:** 5\
**Last updated:** [January 27, 2020, 11:36am UTC](https://root-forum.cern.ch/t/tcontrolbar-coordinates-problem/37725 "2020-01-27T11:36:08Z")

</div>

\_ROOT Version: 6.18/04 \_Platform: Linux Kubuntu \_Compiler: VS Code I can’t set the coordinates of the ControlBar { Int\_t w = 4000; Int\_t h = 200; TControlBar \*cb = new TControlBar("vertical", "Initialisati…

---

## [TControlBar and Main Cycle dependence and Working Principle](https://root-forum.cern.ch/t/tcontrolbar-and-main-cycle-dependence-and-working-principle/37723)

<div class="topic-metadata">

**Author:** [@ilomi](https://root-forum.cern.ch/u/ilomi)\
**Replies:** 2\
**Last updated:** [January 27, 2020, 10:15am UTC](https://root-forum.cern.ch/t/tcontrolbar-and-main-cycle-dependence-and-working-principle/37723 "2020-01-27T10:15:30Z")

</div>

\_ROOT Version: 6.18/04 \_Platform: Linux Kubuntu \_Compiler: VS Code I have a question about TControlBar’s working principle and don’t know how to search this info appropriately. My Assumptions/Knowledge: I know that …

---

## [TF3 Integration](https://root-forum.cern.ch/t/tf3-integration/37676)

<div class="topic-metadata">

**Author:** [@Angey](https://root-forum.cern.ch/u/Angey)\
**Replies:** 7\
**Last updated:** [January 27, 2020, 8:30am UTC](https://root-forum.cern.ch/t/tf3-integration/37676 "2020-01-27T08:30:01Z")

</div>

So, for the first time I am trying to do multiple integration using TF3 for 3 variables. Here’s below what I wrote in my code which is showing error when compiled. It is showing that it can’t call Wrapped function. I don…

---

## [I ask if can i open the files .hdr with root?](https://root-forum.cern.ch/t/i-ask-if-can-i-open-the-files-hdr-with-root/37640)

<div class="topic-metadata">

**Author:** [@omrghad](https://root-forum.cern.ch/u/omrghad)\
**Replies:** 5\
**Last updated:** [January 24, 2020, 11:12pm UTC](https://root-forum.cern.ch/t/i-ask-if-can-i-open-the-files-hdr-with-root/37640 "2020-01-24T23:12:23Z")

</div>

if yes ; how i can do it, please ?

---

## [TAxis label math expression problem](https://root-forum.cern.ch/t/taxis-label-math-expression-problem/37679)

<div class="topic-metadata">

**Author:** [@masterfelu](https://root-forum.cern.ch/u/masterfelu)\
**Replies:** 4\
**Last updated:** [January 24, 2020, 8:11am UTC](https://root-forum.cern.ch/t/taxis-label-math-expression-problem/37679 "2020-01-24T08:11:35Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.18 Platform: WSL Compiler: C++11 Hello. I am adding text labels to TAxis and some of them are math expressions with bars on to…

---

## [Selecting Muons to Calculate the Invariant Mass of the Z Boson](https://root-forum.cern.ch/t/selecting-muons-to-calculate-the-invariant-mass-of-the-z-boson/37646)

<div class="topic-metadata">

**Author:** [@usernew](https://root-forum.cern.ch/u/usernew)\
**Replies:** 7\
**Last updated:** [January 23, 2020, 5:05pm UTC](https://root-forum.cern.ch/t/selecting-muons-to-calculate-the-invariant-mass-of-the-z-boson/37646 "2020-01-23T17:05:57Z")

</div>

Hello, I was wondering if anyone can help answer Questions Q1, Q2, and Q4 shown in the slides of this powerpoint presentation: https://indico.cern.ch/event/528094/contributions/2172823/attachments/1321867/1983225/APSRoo…

---

## [Empty plot getting createdusing TH1 and TGraph](https://root-forum.cern.ch/t/empty-plot-getting-createdusing-th1-and-tgraph/37572)

<div class="topic-metadata">

**Author:** [@Angey](https://root-forum.cern.ch/u/Angey)\
**Replies:** 2\
**Last updated:** [January 22, 2020, 7:29pm UTC](https://root-forum.cern.ch/t/empty-plot-getting-createdusing-th1-and-tgraph/37572 "2020-01-22T19:29:53Z")

</div>

So, here’s the code below that I wrote to plot eta vs dNch/dn (both eta and dNch.dn are arrays) but I am unable to get any plot. All it’s appearing is a blank canvas with the specified X and Y titles! The moment I am com…

---

## [Error when build Root on Subsystem linux](https://root-forum.cern.ch/t/error-when-build-root-on-subsystem-linux/37622)

<div class="topic-metadata">

**Author:** [@hammiu](https://root-forum.cern.ch/u/hammiu)\
**Replies:** 4\
**Last updated:** [January 22, 2020, 9:11am UTC](https://root-forum.cern.ch/t/error-when-build-root-on-subsystem-linux/37622 "2020-01-22T09:11:30Z")

</div>

I have a error when building the ROOT on subsystem linux. I run command sudo apt install cmake again but it doesn’t resolve the problem. ROOT Version: 6.18.04 Platform: Subsystem linux Compiler: Not Provided

---

## [Calling Python function from C++](https://root-forum.cern.ch/t/calling-python-function-from-c/37656)

<div class="topic-metadata">

**Author:** [@marty1885](https://root-forum.cern.ch/u/marty1885)\
**Replies:** 3\
**Last updated:** [January 22, 2020, 1:19am UTC](https://root-forum.cern.ch/t/calling-python-function-from-c/37656 "2020-01-22T01:19:19Z")

</div>

I recall somewhere saying that ROOT supports calling Python functions from C++ by converting functions into std::function. Is this information correct? If it is, how can I do so? My experiments kept failing. I have trie…

---

## [Possible bug? GUI misbehaving when setting log scale for axes](https://root-forum.cern.ch/t/possible-bug-gui-misbehaving-when-setting-log-scale-for-axes/37644)

<div class="topic-metadata">

**Author:** [@renyhp](https://root-forum.cern.ch/u/renyhp)\
**Replies:** 3\
**Last updated:** [January 20, 2020, 4:31pm UTC](https://root-forum.cern.ch/t/possible-bug-gui-misbehaving-when-setting-log-scale-for-axes/37644 "2020-01-20T16:31:54Z")

</div>

After executing this simple code root \[0\] auto h = new TH1D("h", "h", 10, -5,5) root \[1\] h-\>FillRandom("gaus", 100) root \[2\] h-\>Draw() root \[3\] gPad-\>SetLogx() root \[4\] gPad-\>BuildLegend() the GUI drag and drop is comp…

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

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