# Newbie

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

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

---

## [Converting a Log to Linear Histogram](https://root-forum.cern.ch/t/converting-a-log-to-linear-histogram/55635)

<div class="topic-metadata">

**Author:** [@Xavier\_James](https://root-forum.cern.ch/u/Xavier_James)\
**Replies:** 2\
**Last updated:** [July 13, 2023, 8:54am UTC](https://root-forum.cern.ch/t/converting-a-log-to-linear-histogram/55635 "2023-07-13T08:54:22Z")

</div>

Hi all, I have been trying to convert my log histograms to linear and have been having some difficulty. Once the script is executed, nothing happens. I might be over complicating the script but I have tried the SetLogy(…

---

## [Multithread JIT for RDF?](https://root-forum.cern.ch/t/multithread-jit-for-rdf/55482)

<div class="topic-metadata">

**Author:** [@qidong](https://root-forum.cern.ch/u/qidong)\
**Replies:** 8\
**Last updated:** [July 12, 2023, 4:10pm UTC](https://root-forum.cern.ch/t/multithread-jit-for-rdf/55482 "2023-07-12T16:10:39Z")

</div>

Dear ROOT experts, In my physics analysis, I need to construct O(100) RDataFrame instances (for different MC channels and data taking periods). It seems for every define/filter, on each rdf, root needs to generate one l…

---

## [RDataframe columns from user-function that uses another column](https://root-forum.cern.ch/t/rdataframe-columns-from-user-function-that-uses-another-column/55588)

<div class="topic-metadata">

**Author:** [@lilina](https://root-forum.cern.ch/u/lilina)\
**Replies:** 8\
**Last updated:** [July 11, 2023, 10:44pm UTC](https://root-forum.cern.ch/t/rdataframe-columns-from-user-function-that-uses-another-column/55588 "2023-07-11T22:44:08Z")

</div>

Hi, I am trying to make a RDataFrame from a user-defined function that computes 3 different values and has an input variable from a dataframe. Then I want to Define the values computed in the user-defined function in 3 …

---

## [Why Landau fitting not working](https://root-forum.cern.ch/t/why-landau-fitting-not-working/55604)

<div class="topic-metadata">

**Author:** [@iamaanand](https://root-forum.cern.ch/u/iamaanand)\
**Replies:** 4\
**Last updated:** [July 11, 2023, 12:44pm UTC](https://root-forum.cern.ch/t/why-landau-fitting-not-working/55604 "2023-07-11T12:44:40Z")

</div>

I am trying Landau fit but the location of the fitting peak shifted towards right. And change of the fitted function range also not working . When I change the fitting range I always getting same mean value 6.61. I am…

---

## [Problem in plotting multigraph with data and time in x-axis](https://root-forum.cern.ch/t/problem-in-plotting-multigraph-with-data-and-time-in-x-axis/55553)

<div class="topic-metadata">

**Author:** [@gini](https://root-forum.cern.ch/u/gini)\
**Replies:** 11\
**Last updated:** [July 11, 2023, 10:36am UTC](https://root-forum.cern.ch/t/problem-in-plotting-multigraph-with-data-and-time-in-x-axis/55553 "2023-07-11T10:36:48Z")

</div>

Hi, I want to plot different data sets using multi graph as a function of date and time. Unfortunately I get wrong results. Attached here is the macro that I use. Thank you notworking.C (2.3 KB)

---

## [Retrieve Confidence Intervals of fitted TF1](https://root-forum.cern.ch/t/retrieve-confidence-intervals-of-fitted-tf1/55464)

<div class="topic-metadata">

**Author:** [@BrunoOliveira](https://root-forum.cern.ch/u/BrunoOliveira)\
**Replies:** 4\
**Last updated:** [July 10, 2023, 12:11pm UTC](https://root-forum.cern.ch/t/retrieve-confidence-intervals-of-fitted-tf1/55464 "2023-07-10T12:11:42Z")

</div>

Hello, After fitting a TF1 to a dataset, I want to obtain the standard deviation of its predictions. Following the ConfidenceIntervals.C tutorial and the ROOT::Fit::FitResult documentation, I tried the non-deprecated G…

---

## [TBrowser not working](https://root-forum.cern.ch/t/tbrowser-not-working/55609)

<div class="topic-metadata">

**Author:** [@0101101](https://root-forum.cern.ch/u/0101101)\
**Replies:** 2\
**Last updated:** [July 10, 2023, 8:38am UTC](https://root-forum.cern.ch/t/tbrowser-not-working/55609 "2023-07-10T08:38:18Z")

</div>

ROOT Version: 6.28/04 Platform: Ubuntu 22.04 Compiler: Built for linuxx8664gcc on May 08 2023, 02:44:07 (?) I downloaded the Root precompiled version into my local PC. In my local PC I have a file file.root, which …

---

## [TGraph Line Resolution](https://root-forum.cern.ch/t/tgraph-line-resolution/55571)

<div class="topic-metadata">

**Author:** [@pjm275](https://root-forum.cern.ch/u/pjm275)\
**Replies:** 3\
**Last updated:** [July 7, 2023, 2:42pm UTC](https://root-forum.cern.ch/t/tgraph-line-resolution/55571 "2023-07-07T14:42:58Z")

</div>

Hi, I am using pyROOT to plot some data points in a TGraph and connect them with a simple line. However, the line resolution appears to be rather low, so I checked the documentation of TGraph for something similar to Se…

---

## [Coordinates of hottest cell/bin and Four Nearest Neighbours](https://root-forum.cern.ch/t/coordinates-of-hottest-cell-bin-and-four-nearest-neighbours/55550)

<div class="topic-metadata">

**Author:** [@Yasir\_Ali](https://root-forum.cern.ch/u/Yasir_Ali)\
**Replies:** 6\
**Last updated:** [July 6, 2023, 8:34am UTC](https://root-forum.cern.ch/t/coordinates-of-hottest-cell-bin-and-four-nearest-neighbours/55550 "2023-07-06T08:34:54Z")

</div>

Dear Experts I am beginner in Analysis. I am plotting the Energy distribution for the hottest cell/bin and its nearest neighbours. (4 Nearest Neighbours) How can I print the coordinates of this hottest bin with highest …

---

## [Clarifying a user defined function (skewed gaussian)](https://root-forum.cern.ch/t/clarifying-a-user-defined-function-skewed-gaussian/42186)

<div class="topic-metadata">

**Author:** [@Bassam](https://root-forum.cern.ch/u/Bassam)\
**Replies:** 6\
**Last updated:** [July 5, 2023, 6:44pm UTC](https://root-forum.cern.ch/t/clarifying-a-user-defined-function-skewed-gaussian/42186 "2023-07-05T18:44:08Z")

</div>

Hello, I am trying to figure out how to use a skewed gaussian to fit my data. In the process of searching for how to implement this in root, I came across the following resource that seems relevant, but I am unsure abou…

---

## [Extra the data from CMS\_open\_data.root](https://root-forum.cern.ch/t/extra-the-data-from-cms-open-data-root/55444)

<div class="topic-metadata">

**Author:** [@ChongYe](https://root-forum.cern.ch/u/ChongYe)\
**Replies:** 7\
**Last updated:** [July 4, 2023, 6:06pm UTC](https://root-forum.cern.ch/t/extra-the-data-from-cms-open-data-root/55444 "2023-07-04T18:06:24Z")

</div>

Dear all, I want to get the phi information of all particles under Flow-trkPhi through the root file generated by CMS. There are two problems I don’t quite understand at present, because the first time I contact root, …

---

## [Question about Dropout setting in neural network configuration](https://root-forum.cern.ch/t/question-about-dropout-setting-in-neural-network-configuration/55493)

<div class="topic-metadata">

**Author:** [@oleg\_dobrovsky](https://root-forum.cern.ch/u/oleg_dobrovsky)\
**Replies:** 3\
**Last updated:** [July 4, 2023, 5:12pm UTC](https://root-forum.cern.ch/t/question-about-dropout-setting-in-neural-network-configuration/55493 "2023-07-04T17:12:56Z")

</div>

ROOT Version: v6-28-02-5 Platform: Ubuntu 22.04.2 LTS Compiler: (GCC) 12.2.0 Dear experts. I have a small question to ask. I’m using TMVA::kDL through Python. And in the neural network training setting I use dropout …

---

## [Scatter plots with different cuts](https://root-forum.cern.ch/t/scatter-plots-with-different-cuts/55527)

<div class="topic-metadata">

**Author:** [@asanchezcastillo](https://root-forum.cern.ch/u/asanchezcastillo)\
**Replies:** 3\
**Last updated:** [July 4, 2023, 9:47am UTC](https://root-forum.cern.ch/t/scatter-plots-with-different-cuts/55527 "2023-07-04T09:47:06Z")

</div>

Hello, I am trying to plot two scatter plots with different cuts from the same TTree. The relevant part of my code is the following: tree-\>SetMarkerStyle(1); tree-\>Draw("X:Z",cut1); TGraph \*mygraph1 = (TGraph\*)gPad-\>Ge…

---

## [I have been using this code to plot the mass, momentum of tauon-antitauon pirs and their mother particle zboson, but the TTree are just blank](https://root-forum.cern.ch/t/i-have-been-using-this-code-to-plot-the-mass-momentum-of-tauon-antitauon-pirs-and-their-mother-particle-zboson-but-the-ttree-are-just-blank/55534)

<div class="topic-metadata">

**Author:** [@Sudipta\_Ghosh](https://root-forum.cern.ch/u/Sudipta_Ghosh)\
**Replies:** 2\
**Last updated:** [July 4, 2023, 7:21am UTC](https://root-forum.cern.ch/t/i-have-been-using-this-code-to-plot-the-mass-momentum-of-tauon-antitauon-pirs-and-their-mother-particle-zboson-but-the-ttree-are-just-blank/55534 "2023-07-04T07:21:53Z")

</div>

//Sorting τ- and τ+ fron Zboson created from pp collision: #include "Pythia8/Pythia.h" #include "TLorentzVector.h" #include "TTree.h" #include "TFile.h" using namespace Pythia8; int main() { // Set up Pythia. Pyth…

---

## [Question about creating macros](https://root-forum.cern.ch/t/question-about-creating-macros/55502)

<div class="topic-metadata">

**Author:** [@lapan](https://root-forum.cern.ch/u/lapan)\
**Replies:** 1\
**Last updated:** [July 2, 2023, 11:10am UTC](https://root-forum.cern.ch/t/question-about-creating-macros/55502 "2023-07-02T11:10:37Z")

</div>

I am reading ROOT Primer from official cite. In paragraph ROOT as function plotter slits.C macro is used , when I try to type root slits.C in the shell, it says no such file found Warning in TApplication::GetOptions: …

---

## [Plot root macro in SWAN console](https://root-forum.cern.ch/t/plot-root-macro-in-swan-console/55507)

<div class="topic-metadata">

**Author:** [@Mart](https://root-forum.cern.ch/u/Mart)\
**Replies:** 2\
**Last updated:** [July 2, 2023, 11:04am UTC](https://root-forum.cern.ch/t/plot-root-macro-in-swan-console/55507 "2023-07-02T11:04:48Z")

</div>

\_ROOT Version: 6.28/00 \_Platform: SWAN I tried to execute the following in SWAN console: root \[0\] TF1 f1("f1","sin(x)/x",0.,10.); root \[1\] f1.Draw(); And I get: Info in \<TCanvas::MakeDefCanvas\>: created default TC…

---

## [Pyroot error: No module named ROOT](https://root-forum.cern.ch/t/pyroot-error-no-module-named-root/54608)

<div class="topic-metadata">

**Author:** [@ROOTer1](https://root-forum.cern.ch/u/ROOTer1)\
**Replies:** 4\
**Last updated:** [July 1, 2023, 8:28am UTC](https://root-forum.cern.ch/t/pyroot-error-no-module-named-root/54608 "2023-07-01T08:28:46Z")

</div>

Dear, I’m trying to use ROOT in python locally on a linux machine. When I try to import ROOT in a python script, I get: No module named ROOT Is there a way to check which python version I need to have pyroot working?

---

## [Using ROOT with windows subsystem for Linux in Thinkpad 470s (i7-7600U, 8GB RAM)](https://root-forum.cern.ch/t/using-root-with-windows-subsystem-for-linux-in-thinkpad-470s-i7-7600u-8gb-ram/55488)

<div class="topic-metadata">

**Author:** [@RAJ](https://root-forum.cern.ch/u/RAJ)\
**Replies:** 6\
**Last updated:** [June 30, 2023, 11:32am UTC](https://root-forum.cern.ch/t/using-root-with-windows-subsystem-for-linux-in-thinkpad-470s-i7-7600u-8gb-ram/55488 "2023-06-30T11:32:46Z")

</div>

I want to know whether working with ROOT in Thinkpad 470s (i7-7600U, 8GB RAM) is fine. Should I add more RAM? I keep encountering problem while build root from source through this command: cmake --build . – install -j8 …

---

## [What is the error propagation formula of TH1 when using SetDefaultSumw2()?](https://root-forum.cern.ch/t/what-is-the-error-propagation-formula-of-th1-when-using-setdefaultsumw2/55467)

<div class="topic-metadata">

**Author:** [@mrli](https://root-forum.cern.ch/u/mrli)\
**Replies:** 3\
**Last updated:** [June 29, 2023, 5:31pm UTC](https://root-forum.cern.ch/t/what-is-the-error-propagation-formula-of-th1-when-using-setdefaultsumw2/55467 "2023-06-29T17:31:39Z")

</div>

Dear ROOT users, I was using 2 TH1F histograms h\_m and h\_n to compute efficiency: h\_\\varepsilon = h\_{m}/h\_{n}: TH1.SetDefaultSumw2() # ... fill h\_m and h\_n h\_eff = TH1F(h\_m) h\_eff.Divide(h\_n) According to the referenc…

---

## [TTree Draw special function Sum$ not working as expected](https://root-forum.cern.ch/t/ttree-draw-special-function-sum-not-working-as-expected/55460)

<div class="topic-metadata">

**Author:** [@jemarq04](https://root-forum.cern.ch/u/jemarq04)\
**Replies:** 4\
**Last updated:** [June 28, 2023, 5:47pm UTC](https://root-forum.cern.ch/t/ttree-draw-special-function-sum-not-working-as-expected/55460 "2023-06-28T17:47:34Z")

</div>

I’m trying to draw a branch with specific cuts to be able to show ‘efficiency’ for a specific ID. When drawing my tree, I hope to draw the efficiency for a specific ID by summing the total that have a “pass” branch set t…

---

## [Struct pointer in std::map](https://root-forum.cern.ch/t/struct-pointer-in-std-map/55448)

<div class="topic-metadata">

**Author:** [@Cas](https://root-forum.cern.ch/u/Cas)\
**Replies:** 1\
**Last updated:** [June 28, 2023, 9:13am UTC](https://root-forum.cern.ch/t/struct-pointer-in-std-map/55448 "2023-06-28T09:13:34Z")

</div>

Hey all, I am not sure whether this is a root related topic, but I cannot seem to find the error anywhere else so I thought it might be a root error. I have the following code #include \<map\> #include \<iostream\> struct…

---

## [RooFit MINUIT2](https://root-forum.cern.ch/t/roofit-minuit2/55457)

<div class="topic-metadata">

**Author:** [@lukroz](https://root-forum.cern.ch/u/lukroz)\
**Replies:** 2\
**Last updated:** [June 28, 2023, 9:05am UTC](https://root-forum.cern.ch/t/roofit-minuit2/55457 "2023-06-28T09:05:55Z")

</div>

Hello. I have two problems with RooFit and MINUIT2, and despite extensive searching, I haven’t been able to find solutions. I would greatly appreciate any help or guidance on these issues. The RooFitResult class in R…

---

## [Install root with conda on ubuntu 22.04: conflicts found](https://root-forum.cern.ch/t/install-root-with-conda-on-ubuntu-22-04-conflicts-found/55400)

<div class="topic-metadata">

**Author:** [@FoxWise](https://root-forum.cern.ch/u/FoxWise)\
**Replies:** 5\
**Last updated:** [June 28, 2023, 4:33am UTC](https://root-forum.cern.ch/t/install-root-with-conda-on-ubuntu-22-04-conflicts-found/55400 "2023-06-28T04:33:27Z")

</div>

Hi all, I am trying to install root with conda on a freshly install Ubuntu 22.04. I believe a have installed all root dependencies with sudo apt install just to be safe. And I have also installed Anaconda environment …

---

## [Creating Macros in ROOT](https://root-forum.cern.ch/t/creating-macros-in-root/55451)

<div class="topic-metadata">

**Author:** [@astongea](https://root-forum.cern.ch/u/astongea)\
**Replies:** 4\
**Last updated:** [June 27, 2023, 4:05pm UTC](https://root-forum.cern.ch/t/creating-macros-in-root/55451 "2023-06-27T16:05:31Z")

</div>

Hello everyone, I am a summer student at CERN and participated in the ROOT workshop last week. Unfortunately, I found the workshop difficult and felt excluded, as I have no prior experience with the command line and fel…

---

## [Fatal error: 'RooGlobalFunc.h' file not found](https://root-forum.cern.ch/t/fatal-error-rooglobalfunc-h-file-not-found/55429)

<div class="topic-metadata">

**Author:** [@Natilus](https://root-forum.cern.ch/u/Natilus)\
**Replies:** 6\
**Last updated:** [June 26, 2023, 2:19pm UTC](https://root-forum.cern.ch/t/fatal-error-rooglobalfunc-h-file-not-found/55429 "2023-06-26T14:19:07Z")

</div>

Dear Root experts, I have installed “ROOT 6.28/04” recently using “yum install” on RHEL9.2. I am aware that the mentioned Root release is for Centos8 but I have no choice but using RHEL9.2 since that is the only OS ava…

---

## [Reading columns from text file](https://root-forum.cern.ch/t/reading-columns-from-text-file/55394)

<div class="topic-metadata">

**Author:** [@KH0719](https://root-forum.cern.ch/u/KH0719)\
**Replies:** 3\
**Last updated:** [June 26, 2023, 7:38am UTC](https://root-forum.cern.ch/t/reading-columns-from-text-file/55394 "2023-06-26T07:38:52Z")

</div>

Hi, I am new to programming and learning as I work, plus crash-coursing as my time period is short. I have a csv file that has 64 columns for 64 ‘channels’, with the rows as new entries for each trigger of activity. I w…

---

## [Error message: The versions of libVc.a (1.4.1) and Vc/version.h (1.4.3) are incompatible. Aborting. Aborted](https://root-forum.cern.ch/t/error-message-the-versions-of-libvc-a-1-4-1-and-vc-version-h-1-4-3-are-incompatible-aborting-aborted/55404)

<div class="topic-metadata">

**Author:** [@zobs](https://root-forum.cern.ch/u/zobs)\
**Replies:** 3\
**Last updated:** [June 24, 2023, 4:50pm UTC](https://root-forum.cern.ch/t/error-message-the-versions-of-libvc-a-1-4-1-and-vc-version-h-1-4-3-are-incompatible-aborting-aborted/55404 "2023-06-24T16:50:09Z")

</div>

Hey, I have a little problem and need help. I am trying to run a code that I got from a course that I’m doing at university. I copied the code (C++) from the university’s computer to my laptop, so that I can also work f…

---

## [Intall ROOT on Anaconda](https://root-forum.cern.ch/t/intall-root-on-anaconda/55412)

<div class="topic-metadata">

**Author:** [@BohrWalrus](https://root-forum.cern.ch/u/BohrWalrus)\
**Replies:** 4\
**Last updated:** [June 23, 2023, 3:22pm UTC](https://root-forum.cern.ch/t/intall-root-on-anaconda/55412 "2023-06-23T15:22:15Z")

</div>

Hello everyone, I’m having a hard time trying to install ROOT on Anaconda. I am using the “conda install -c conda-forge root” command but I get this error: Collecting package metadata (current\_repodata.json): done Solv…

---

## [Merging two datasets with different selections](https://root-forum.cern.ch/t/merging-two-datasets-with-different-selections/53431)

<div class="topic-metadata">

**Author:** [@Clara\_Landesa\_Gomez](https://root-forum.cern.ch/u/Clara_Landesa_Gomez)\
**Replies:** 3\
**Last updated:** [June 22, 2023, 4:15pm UTC](https://root-forum.cern.ch/t/merging-two-datasets-with-different-selections/53431 "2023-06-22T16:15:31Z")

</div>

Hi! I am using RDataFrame in PyROOT. I have two data sets, to which I want to apply different selections. I load my two data sets into different RDataFrames and apply the selections independently. Then, I want to merge t…

---

## [I am new to using ROOT, and having difficulties while installing](https://root-forum.cern.ch/t/i-am-new-to-using-root-and-having-difficulties-while-installing/55371)

<div class="topic-metadata">

**Author:** [@roy11](https://root-forum.cern.ch/u/roy11)\
**Replies:** 4\
**Last updated:** [June 21, 2023, 5:11pm UTC](https://root-forum.cern.ch/t/i-am-new-to-using-root-and-having-difficulties-while-installing/55371 "2023-06-21T17:11:43Z")

</div>

Hi, I am installing root for the first time, have downloaded all the prerequisite. Then while using make -j4 I’m getting following message: \[ 65%\] Building CXX object interpreter/llvm/src/tools/clang/lib/CodeGen/CMakeFi…

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

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