# Newbie

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

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

---

## [Formating the numbers in TLegend](https://root-forum.cern.ch/t/formating-the-numbers-in-tlegend/56286)

<div class="topic-metadata">

**Author:** [@Natilus](https://root-forum.cern.ch/u/Natilus)\
**Replies:** 7\
**Last updated:** [September 6, 2023, 10:34am UTC](https://root-forum.cern.ch/t/formating-the-numbers-in-tlegend/56286 "2023-09-06T10:34:46Z")

</div>

Dear experts, I have a plot and I create a legend for it including some numbers (yields). the numbers are shown with 6 digits after the decimal point. I would like to format the numbers shown in my Legend to show one di…

---

## [New python configuration broke root --notebook on Ubuntu](https://root-forum.cern.ch/t/new-python-configuration-broke-root-notebook-on-ubuntu/56033)

<div class="topic-metadata">

**Author:** [@nuts4granite](https://root-forum.cern.ch/u/nuts4granite)\
**Replies:** 9\
**Last updated:** [September 5, 2023, 6:53pm UTC](https://root-forum.cern.ch/t/new-python-configuration-broke-root-notebook-on-ubuntu/56033 "2023-09-05T18:53:52Z")

</div>

I’m fairly new to linux and whatnot, so please be nice. I have had ROOT notebooks running just fine using a snap package install on Ubuntu. Then I needed to run a python package written by a friend of mine for use in Ju…

---

## [How to add TGraphs onto divided canvas in pyroot?](https://root-forum.cern.ch/t/how-to-add-tgraphs-onto-divided-canvas-in-pyroot/56230)

<div class="topic-metadata">

**Author:** [@Duhe342](https://root-forum.cern.ch/u/Duhe342)\
**Replies:** 6\
**Last updated:** [August 31, 2023, 9:27am UTC](https://root-forum.cern.ch/t/how-to-add-tgraphs-onto-divided-canvas-in-pyroot/56230 "2023-08-31T09:27:22Z")

</div>

Hi, I’m new to ROOT and I can’t find a solution to my problem. I need to put several plots onto one canvas, but i end up having strange results (e.g only one pad has a graph, but the other one is empty) Here is a piece …

---

## [Rootcling with std::filesystem](https://root-forum.cern.ch/t/rootcling-with-std-filesystem/55388)

<div class="topic-metadata">

**Author:** [@haha123](https://root-forum.cern.ch/u/haha123)\
**Replies:** 6\
**Last updated:** [August 30, 2023, 3:11pm UTC](https://root-forum.cern.ch/t/rootcling-with-std-filesystem/55388 "2023-08-30T15:11:38Z")

</div>

Hi all, I fail to use cling to compile a shared lib which uses std::filesystem. I have read some issues but I do not know if this has been fixed or there is any simple solution. To be specific, // test.hh #ifndef test\_…

---

## [Doubt about the entries for calculating the matricial equation Ax = b](https://root-forum.cern.ch/t/doubt-about-the-entries-for-calculating-the-matricial-equation-ax-b/56221)

<div class="topic-metadata">

**Author:** [@guilherme\_morett](https://root-forum.cern.ch/u/guilherme_morett)\
**Replies:** 1\
**Last updated:** [August 30, 2023, 1:02pm UTC](https://root-forum.cern.ch/t/doubt-about-the-entries-for-calculating-the-matricial-equation-ax-b/56221 "2023-08-30T13:02:29Z")

</div>

Hi! In my program, I have to solve a matricial equation of the type M\*a = ra. Where the entries are the Matrix M (10 \* 10) and the vector ra. I read the chapter 16.6 Matrix Decompositions and I found the command TVector…

---

## [Installing Root to use PyRoot](https://root-forum.cern.ch/t/installing-root-to-use-pyroot/56193)

<div class="topic-metadata">

**Author:** [@CJP](https://root-forum.cern.ch/u/CJP)\
**Replies:** 2\
**Last updated:** [August 29, 2023, 11:09am UTC](https://root-forum.cern.ch/t/installing-root-to-use-pyroot/56193 "2023-08-29T11:09:27Z")

</div>

Hi there, I’m trying to install Root to use PyRoot and followed the instructions given on the website. When I import Root I get the following error message: \>\>\> import ROOT Traceback (most recent call last): File "/…

---

## [Trouble with Integral() method for ROC curves](https://root-forum.cern.ch/t/trouble-with-integral-method-for-roc-curves/56182)

<div class="topic-metadata">

**Author:** [@TPeters1996](https://root-forum.cern.ch/u/TPeters1996)\
**Replies:** 1\
**Last updated:** [August 29, 2023, 6:09am UTC](https://root-forum.cern.ch/t/trouble-with-integral-method-for-roc-curves/56182 "2023-08-29T06:09:48Z")

</div>

I am trying to calculate the integral of my ROC curves for background rejection vs signal efficiency using the Integral() method described in the ROOT TH1:Integral reference guide. Instead of returning values between 0 …

---

## [Accessing sub entries in entries](https://root-forum.cern.ch/t/accessing-sub-entries-in-entries/56097)

<div class="topic-metadata">

**Author:** [@d\_ana](https://root-forum.cern.ch/u/d_ana)\
**Replies:** 8\
**Last updated:** [August 28, 2023, 5:15pm UTC](https://root-forum.cern.ch/t/accessing-sub-entries-in-entries/56097 "2023-08-28T17:15:39Z")

</div>

Hello, I am a beginner. My branches are: \*Br 0 :event\_number : Int\_t \* \*Entries : 10 : Total Size= 745 bytes One basket in memory \* \*Baskets : …

---

## [TBrowser Launching Error: libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver\_name = (null)](https://root-forum.cern.ch/t/tbrowser-launching-error-libva-error-vagetdrivernamebyindex-failed-with-unknown-libva-error-driver-name-null/56176)

<div class="topic-metadata">

**Author:** [@harshit\_saxena](https://root-forum.cern.ch/u/harshit_saxena)\
**Replies:** 6\
**Last updated:** [August 28, 2023, 3:31pm UTC](https://root-forum.cern.ch/t/tbrowser-launching-error-libva-error-vagetdrivernamebyindex-failed-with-unknown-libva-error-driver-name-null/56176 "2023-08-28T15:31:12Z")

</div>

Hi, I recently installed ‘Root 6.28/00’ on ‘Ubuntu 22.04’. When I try to launch TBrowser using the “new TBrowser” command, it shows this message and opens a new window in my default Chrome Browser. Message: ROOT comes…

---

## [Doubt about the best way to calculate the inverse matrix in my case](https://root-forum.cern.ch/t/doubt-about-the-best-way-to-calculate-the-inverse-matrix-in-my-case/56158)

<div class="topic-metadata">

**Author:** [@guilherme\_morett](https://root-forum.cern.ch/u/guilherme_morett)\
**Replies:** 2\
**Last updated:** [August 28, 2023, 3:21pm UTC](https://root-forum.cern.ch/t/doubt-about-the-best-way-to-calculate-the-inverse-matrix-in-my-case/56158 "2023-08-28T15:21:44Z")

</div>

Hi! During my calculus, I have to solve a matricial equation of the type Ax=b. I thought to simple obtain the inverse of matrix A (10 x 10) to calculate the vector x. First, I used the A.Invert() command, but there is a…

---

## [Using lower command on subcripted symbols](https://root-forum.cern.ch/t/using-lower-command-on-subcripted-symbols/56171)

<div class="topic-metadata">

**Author:** [@Shailesh](https://root-forum.cern.ch/u/Shailesh)\
**Replies:** 7\
**Last updated:** [August 28, 2023, 11:48am UTC](https://root-forum.cern.ch/t/using-lower-command-on-subcripted-symbols/56171 "2023-08-28T11:48:03Z")

</div>

I am trying to enter perpendicular symbol as a subscript in a TH1F object. Firstly, it looks weirdly aligned. Secondly, it’s vertical alignment isn’t changing despite using it in #lower\[\]{}. Can someone explain what’s go…

---

## [Errors when trying to write a Pythia event in a TTree](https://root-forum.cern.ch/t/errors-when-trying-to-write-a-pythia-event-in-a-ttree/56143)

<div class="topic-metadata">

**Author:** [@Caducka](https://root-forum.cern.ch/u/Caducka)\
**Replies:** 1\
**Last updated:** [August 28, 2023, 9:05am UTC](https://root-forum.cern.ch/t/errors-when-trying-to-write-a-pythia-event-in-a-ttree/56143 "2023-08-28T09:05:16Z")

</div>

ROOT Version: 6.26/10 Pythia Version: 8.310 Platform: Ubuntu 22.04.3 LTS I’ve been trying for a few days now to record a pythia8 event in a ROOT TTree file. I was trying to use the code suggested by brun in Storing P…

---

## [Doubt about how to calculate the covariance matrix from a txt file](https://root-forum.cern.ch/t/doubt-about-how-to-calculate-the-covariance-matrix-from-a-txt-file/56137)

<div class="topic-metadata">

**Author:** [@guilherme\_morett](https://root-forum.cern.ch/u/guilherme_morett)\
**Replies:** 12\
**Last updated:** [August 26, 2023, 6:03pm UTC](https://root-forum.cern.ch/t/doubt-about-how-to-calculate-the-covariance-matrix-from-a-txt-file/56137 "2023-08-26T18:03:00Z")

</div>

The main objective of the algorithm is to read a txt file with the noise data information and calculate the covariance matrix and save it into an output file. The program is: #include \<iostream\> #include \<fstream\> #in…

---

## [Compatibility of python library uproot with C++ (and ROOT) based framework for data analysis](https://root-forum.cern.ch/t/compatibility-of-python-library-uproot-with-c-and-root-based-framework-for-data-analysis/56148)

<div class="topic-metadata">

**Author:** [@MarketaPeskova](https://root-forum.cern.ch/u/MarketaPeskova)\
**Replies:** 1\
**Last updated:** [August 26, 2023, 1:02pm UTC](https://root-forum.cern.ch/t/compatibility-of-python-library-uproot-with-c-and-root-based-framework-for-data-analysis/56148 "2023-08-26T13:02:05Z")

</div>

Hello, I am new to python and pyroot, I deal with a problem of compatibility of my analysis framework (PHAST, for ref), based on C++ and root, with python uproot library. It does not know the PHAST classes, so the root …

---

## [Error with CLING when loading library compiled in debug mode on windows10](https://root-forum.cern.ch/t/error-with-cling-when-loading-library-compiled-in-debug-mode-on-windows10/56135)

<div class="topic-metadata">

**Author:** [@EricAnciant](https://root-forum.cern.ch/u/EricAnciant)\
**Replies:** 7\
**Last updated:** [August 25, 2023, 9:21am UTC](https://root-forum.cern.ch/t/error-with-cling-when-loading-library-compiled-in-debug-mode-on-windows10/56135 "2023-08-25T09:21:53Z")

</div>

Hello Rooters, I am facing the following problem : I am trying to load a windows DLL containing a ROOT-CLING dictionary within a root session When I compile that library with release options this works fine : P:\\Prog…

---

## [Number of Parameters](https://root-forum.cern.ch/t/number-of-parameters/56091)

<div class="topic-metadata">

**Author:** [@Natilus](https://root-forum.cern.ch/u/Natilus)\
**Replies:** 3\
**Last updated:** [August 25, 2023, 8:02am UTC](https://root-forum.cern.ch/t/number-of-parameters/56091 "2023-08-25T08:02:26Z")

</div>

Dear experts, I have a fitting code that works perfectly well but there is something about it that I cannot understand. In this fitting code, I am using a user defined functions: Polynomial1 with the following definiti…

---

## [Moving (or rotating) variable names in TParallelCoord?](https://root-forum.cern.ch/t/moving-or-rotating-variable-names-in-tparallelcoord/56113)

<div class="topic-metadata">

**Author:** [@Salomon](https://root-forum.cern.ch/u/Salomon)\
**Replies:** 6\
**Last updated:** [August 24, 2023, 8:59am UTC](https://root-forum.cern.ch/t/moving-or-rotating-variable-names-in-tparallelcoord/56113 "2023-08-24T08:59:37Z")

</div>

ROOT Version: 6.28/04 Platform: Red Hat 8.4.1-1 Compiler: c++ (GCC) 8.4.1 Dear ROOT Team, Here is a minimal example of TParallelCoord: draw\_parallel.C. I used data.csv as input. And I got this figure: How can …

---

## [Data from branches](https://root-forum.cern.ch/t/data-from-branches/56039)

<div class="topic-metadata">

**Author:** [@Revan](https://root-forum.cern.ch/u/Revan)\
**Replies:** 7\
**Last updated:** [August 23, 2023, 9:41am UTC](https://root-forum.cern.ch/t/data-from-branches/56039 "2023-08-23T09:41:06Z")

</div>

This probably is a really simple question but for the life of me I can’t figure it out… A while ago I learned how to go through a TTree structure and access its information: file = TFile("muonsBinary.root", "read") tre…

---

## [Type object 'ROOT' has no attribute 'TFile'](https://root-forum.cern.ch/t/type-object-root-has-no-attribute-tfile/56031)

<div class="topic-metadata">

**Author:** [@Revan](https://root-forum.cern.ch/u/Revan)\
**Replies:** 5\
**Last updated:** [August 22, 2023, 10:18am UTC](https://root-forum.cern.ch/t/type-object-root-has-no-attribute-tfile/56031 "2023-08-22T10:18:02Z")

</div>

Please read tips for efficient and successful posting and posting code I’m trying to run a modified version of a previous script, and while the original script works fine, my new script has the following error: Traceb…

---

## [Drawing 2 TH1F in the same Canvas](https://root-forum.cern.ch/t/drawing-2-th1f-in-the-same-canvas/56092)

<div class="topic-metadata">

**Author:** [@delia](https://root-forum.cern.ch/u/delia)\
**Replies:** 1\
**Last updated:** [August 21, 2023, 3:06pm UTC](https://root-forum.cern.ch/t/drawing-2-th1f-in-the-same-canvas/56092 "2023-08-21T15:06:30Z")

</div>

Hello, I would like to draw this 2 histos in the same canvas. This is my macro: void prova() { TCanvas \*c1 = new TCanvas("c1", "c1",332,118,1584,958); TH1F \*efficiency\_\_1 = new TH1F("efficiency\_\_1","efficiency\_\_…

---

## [Horizontal position of the x-axis title](https://root-forum.cern.ch/t/horizontal-position-of-the-x-axis-title/56040)

<div class="topic-metadata">

**Author:** [@iamaanand](https://root-forum.cern.ch/u/iamaanand)\
**Replies:** 2\
**Last updated:** [August 16, 2023, 9:20am UTC](https://root-forum.cern.ch/t/horizontal-position-of-the-x-axis-title/56040 "2023-08-16T09:20:04Z")

</div>

I created a canvas and divided it into three parts . TCanvas \*canvas = new TCanvas(“canvas”, “Distributions”, 600, 600); canvas-\>Divide(1, 3, 0, 0); I also impose no gap between divisions. Now I am not getting enough …

---

## [\\\\mathscr{P} not working](https://root-forum.cern.ch/t/mathscr-p-not-working/56056)

<div class="topic-metadata">

**Author:** [@hushnud](https://root-forum.cern.ch/u/hushnud)\
**Replies:** 7\
**Last updated:** [August 18, 2023, 3:18pm UTC](https://root-forum.cern.ch/t/mathscr-p-not-working/56056 "2023-08-18T15:18:45Z")

</div>

I am trying to write \\mathscr{P} as the Title for the x-axis of a graph. But this is not working. But for other alphabets, this is giving a calligraphic letter. Can anyone suggest me how to resolve this issue.

---

## [Reading Histograms from multiple .root files and plotting them on the same Canvas](https://root-forum.cern.ch/t/reading-histograms-from-multiple-root-files-and-plotting-them-on-the-same-canvas/56045)

<div class="topic-metadata">

**Author:** [@sakzai](https://root-forum.cern.ch/u/sakzai)\
**Replies:** 6\
**Last updated:** [August 17, 2023, 1:42pm UTC](https://root-forum.cern.ch/t/reading-histograms-from-multiple-root-files-and-plotting-them-on-the-same-canvas/56045 "2023-08-17T13:42:23Z")

</div>

Hi Dear ROOTers, I have some 50-100 .root files with histograms in each file. I have to read a histogram from each file, all histograms have the same name. The path to histograms is “GenericPropagation/mydetector/drift\_…

---

## [vector\<TVector3\> Seg Fault](https://root-forum.cern.ch/t/vector-tvector3-seg-fault/55904)

<div class="topic-metadata">

**Author:** [@srikanta](https://root-forum.cern.ch/u/srikanta)\
**Replies:** 3\
**Last updated:** [August 17, 2023, 10:51am UTC](https://root-forum.cern.ch/t/vector-tvector3-seg-fault/55904 "2023-08-17T10:51:07Z")

</div>

Adding vector TLorentzVector someName and vector TVector3 someName in headerfile crashing code (adding angle bracket to TLorentzVector make the word invisible here); even if I don’t use them in my .C file \[header file in…

---

## [Fitting a weighted histogram](https://root-forum.cern.ch/t/fitting-a-weighted-histogram/56000)

<div class="topic-metadata">

**Author:** [@abunka](https://root-forum.cern.ch/u/abunka)\
**Replies:** 3\
**Last updated:** [August 16, 2023, 11:14am UTC](https://root-forum.cern.ch/t/fitting-a-weighted-histogram/56000 "2023-08-16T11:14:42Z")

</div>

I am trying to perform a double gaussian fit to a weighted histogram, my code is respProjection\[i\]-\>Fit("gaus", "Q"); TF1\* fit1 = respProjection\[i\]-\>GetFunction("gaus"); double mean1 = fit1-\>GetParameter…

---

## [pyROOT x axis labels and ticks in multiple of of 512 (0, 512,1024,,..4096)](https://root-forum.cern.ch/t/pyroot-x-axis-labels-and-ticks-in-multiple-of-of-512-0-512-1024-4096/56021)

<div class="topic-metadata">

**Author:** [@prajjalak](https://root-forum.cern.ch/u/prajjalak)\
**Replies:** 2\
**Last updated:** [August 15, 2023, 9:08am UTC](https://root-forum.cern.ch/t/pyroot-x-axis-labels-and-ticks-in-multiple-of-of-512-0-512-1024-4096/56021 "2023-08-15T09:08:07Z")

</div>

I am a newbie and using pyROOT as I am more comfortable with Python. I have a TGraph object with a TF1 fit (linear). My x-axis ticks should be linear, and in multiples of 512 (digital-to-analog converter counts, 0 to 409…

---

## [Get Instance from Tree and Filtering tree with a lot of Branches](https://root-forum.cern.ch/t/get-instance-from-tree-and-filtering-tree-with-a-lot-of-branches/55934)

<div class="topic-metadata">

**Author:** [@fljs825](https://root-forum.cern.ch/u/fljs825)\
**Replies:** 4\
**Last updated:** [August 9, 2023, 5:48pm UTC](https://root-forum.cern.ch/t/get-instance-from-tree-and-filtering-tree-with-a-lot-of-branches/55934 "2023-08-09T17:48:22Z")

</div>

Hello. This is my first time asking at the forum, so I may not be skilled at asking questions (especially in English), but I will do my best. I’m dealing with tree such as below : Events-\>Scan("Electron\_cutBased:Electr…

---

## [Odot Tlatex symbol does not look well](https://root-forum.cern.ch/t/odot-tlatex-symbol-does-not-look-well/55967)

<div class="topic-metadata">

**Author:** [@Miguel](https://root-forum.cern.ch/u/Miguel)\
**Replies:** 2\
**Last updated:** [August 9, 2023, 1:01pm UTC](https://root-forum.cern.ch/t/odot-tlatex-symbol-does-not-look-well/55967 "2023-08-09T13:01:54Z")

</div>

Hi there! I’ve been trying to generate a plot with the odot symbol in it. The template I use for the plot in C++ is: gROOT-\>Reset(); TStyle \*pdStyle= new TStyle("MyStyle","My style"); pdStyle-\>SetFrameBorderMode(…

---

## [Fill Branch from Vector of Vectors](https://root-forum.cern.ch/t/fill-branch-from-vector-of-vectors/55906)

<div class="topic-metadata">

**Author:** [@ferusso](https://root-forum.cern.ch/u/ferusso)\
**Replies:** 2\
**Last updated:** [August 8, 2023, 2:32pm UTC](https://root-forum.cern.ch/t/fill-branch-from-vector-of-vectors/55906 "2023-08-08T14:32:04Z")

</div>

Is it possible to create a branch from a vector of vectors? I tried std::vector\<std::vector\<float\>\> myVector; ... myTree-\>Branch("myVector", &myVector); std::vector\<float\> test; test.push\_back(1.); myVector.push\_back(te…

---

## [Energy deposit in Circular fibers . Are Square bins OK?](https://root-forum.cern.ch/t/energy-deposit-in-circular-fibers-are-square-bins-ok/55902)

<div class="topic-metadata">

**Author:** [@Yasir\_Ali](https://root-forum.cern.ch/u/Yasir_Ali)\
**Replies:** 1\
**Last updated:** [August 7, 2023, 1:22pm UTC](https://root-forum.cern.ch/t/energy-deposit-in-circular-fibers-are-square-bins-ok/55902 "2023-08-07T13:22:26Z")

</div>

Dear Experts I am studying the Energy deposition in crystals with my bin/cell size = 1mm. But now want to study the deposition in circular fiber size of 1mm. How can I add cut because otherwise there is a chance that I …

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

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