# Newbie

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

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

---

## [Problem in converting TSpectrum Background Class functions to pyROOT](https://root-forum.cern.ch/t/problem-in-converting-tspectrum-background-class-functions-to-pyroot/62758)

<div class="topic-metadata">

**Author:** [@skumar](https://root-forum.cern.ch/u/skumar)\
**Replies:** 1\
**Last updated:** [January 26, 2025, 3:46pm UTC](https://root-forum.cern.ch/t/problem-in-converting-tspectrum-background-class-functions-to-pyroot/62758 "2025-01-26T15:46:53Z")

</div>

Hello everyone! I am trying to implement the background function in TSpectrum class by following the tutorials given in the website. The C++ (ROOT) Code provided in the tutorial is given below: void Background\_width()…

---

## [Python not detecting ROOT](https://root-forum.cern.ch/t/python-not-detecting-root/62728)

<div class="topic-metadata">

**Author:** [@Aditya\_Sharma](https://root-forum.cern.ch/u/Aditya_Sharma)\
**Replies:** 10\
**Last updated:** [January 23, 2025, 5:21pm UTC](https://root-forum.cern.ch/t/python-not-detecting-root/62728 "2025-01-23T17:21:58Z")

</div>

I have downloaded ROOT via root\_v6.32.08.win32.vc17 given on website and have created a virtual environment “C:\\32 bit Python for ROOT\\venv\_root” and I am still not able to import root in python. I am using ‘python 3.13.…

---

## [How do I modify the presentation of 3D drawings](https://root-forum.cern.ch/t/how-do-i-modify-the-presentation-of-3d-drawings/62309)

<div class="topic-metadata">

**Author:** [@Flechazo](https://root-forum.cern.ch/u/Flechazo)\
**Replies:** 1\
**Last updated:** [November 25, 2024, 11:43am UTC](https://root-forum.cern.ch/t/how-do-i-modify-the-presentation-of-3d-drawings/62309 "2024-11-25T11:43:27Z")

</div>

I used ROOT software to generate a three-dimensional picture is a scatter chart, but I do not know how to operate, now presented is a three-dimensional bar chart, how to change the Settings, or add new code to modify bac…

---

## [Kernel Crashes in Jupyter Notebook when fitting a histogram in pyRoot](https://root-forum.cern.ch/t/kernel-crashes-in-jupyter-notebook-when-fitting-a-histogram-in-pyroot/62737)

<div class="topic-metadata">

**Author:** [@yann](https://root-forum.cern.ch/u/yann)\
**Replies:** 3\
**Last updated:** [January 23, 2025, 1:40pm UTC](https://root-forum.cern.ch/t/kernel-crashes-in-jupyter-notebook-when-fitting-a-histogram-in-pyroot/62737 "2025-01-23T13:40:31Z")

</div>

When fitting a TF1 function to a TH1F histogram within a cell in a jupyter notebook the kernel crashes, if there is no code below the fit command. Why does this happen? Minimal example: # Cell 1 from ROOT import TH1F…

---

## [Executing pyRoot file in subprocess leads to segmentation error](https://root-forum.cern.ch/t/executing-pyroot-file-in-subprocess-leads-to-segmentation-error/62675)

<div class="topic-metadata">

**Author:** [@anna98](https://root-forum.cern.ch/u/anna98)\
**Replies:** 7\
**Last updated:** [January 23, 2025, 7:39am UTC](https://root-forum.cern.ch/t/executing-pyroot-file-in-subprocess-leads-to-segmentation-error/62675 "2025-01-23T07:39:17Z")

</div>

Hi, I’m using pyroot on lxplus and wrote a Framework, which does the Analysis I need in an automated way. However, when I run my script via a subprocess, I run into a Segmentation error: The lines below might hint at t…

---

## [Wsl2 menu display issue](https://root-forum.cern.ch/t/wsl2-menu-display-issue/62719)

<div class="topic-metadata">

**Author:** [@jerryjin](https://root-forum.cern.ch/u/jerryjin)\
**Replies:** 2\
**Last updated:** [January 22, 2025, 6:09am UTC](https://root-forum.cern.ch/t/wsl2-menu-display-issue/62719 "2025-01-22T06:09:56Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version: v6-34-02 \_Platform: ubuntu 24.04 \_Compiler: gcc Hello, I searched GitHub - root-project/root: The official repository for ROOT: …

---

## [Passing Templated Functions to RDataFrame](https://root-forum.cern.ch/t/passing-templated-functions-to-rdataframe/62708)

<div class="topic-metadata">

**Author:** [@lost\_soul\_519](https://root-forum.cern.ch/u/lost_soul_519)\
**Replies:** 4\
**Last updated:** [January 21, 2025, 2:03pm UTC](https://root-forum.cern.ch/t/passing-templated-functions-to-rdataframe/62708 "2025-01-21T14:03:38Z")

</div>

Hello all, How do you pass a templated/overloaded function to RDataFrame define/filter? The alternative would be to use strings or lamdas after depending on the column type, neither of which is convenient. template \<t…

---

## [Installing ROOT fully on windows](https://root-forum.cern.ch/t/installing-root-fully-on-windows/62541)

<div class="topic-metadata">

**Author:** [@Aditya\_Sharma](https://root-forum.cern.ch/u/Aditya_Sharma)\
**Replies:** 10\
**Last updated:** [January 20, 2025, 3:05pm UTC](https://root-forum.cern.ch/t/installing-root-fully-on-windows/62541 "2025-01-20T15:05:52Z")

</div>

I have downloaded ROOT 6.32.06 on my device but it doesnot have ‘pyroot’ and ‘cuda’ capabilities maybe because i downloaded it form the ‘.exe’ installer on the website can someone guide me what to do in order to install …

---

## [RDF compiling C++ libraries and using functions in Define()](https://root-forum.cern.ch/t/rdf-compiling-c-libraries-and-using-functions-in-define/62688)

<div class="topic-metadata">

**Author:** [@EliottDucarme](https://root-forum.cern.ch/u/EliottDucarme)\
**Replies:** 2\
**Last updated:** [January 20, 2025, 9:29am UTC](https://root-forum.cern.ch/t/rdf-compiling-c-libraries-and-using-functions-in-define/62688 "2025-01-20T09:29:59Z")

</div>

Dear experts, I’m trying to define functions in C++ that I can compile to make my code run a little bit faster. I’m taking inspiration from the PyRoot manual to know what I should do and transpose it to RDF. The issue i…

---

## [Is There a TGraph3D class or similar one?](https://root-forum.cern.ch/t/is-there-a-tgraph3d-class-or-similar-one/62687)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 5\
**Last updated:** [January 20, 2025, 8:56am UTC](https://root-forum.cern.ch/t/is-there-a-tgraph3d-class-or-similar-one/62687 "2025-01-20T08:56:28Z")

</div>

Dear experts I have a set of points f(x, y, s) that I want to do an interpolation, I know I can do this for f(x,y) by TGraph2D::Interpolation(), is there a similar TGraph3D to do it?

---

## [RDataFrame not making a new .root file](https://root-forum.cern.ch/t/rdataframe-not-making-a-new-root-file/62660)

<div class="topic-metadata">

**Author:** [@jbrom](https://root-forum.cern.ch/u/jbrom)\
**Replies:** 12\
**Last updated:** [January 20, 2025, 7:57am UTC](https://root-forum.cern.ch/t/rdataframe-not-making-a-new-root-file/62660 "2025-01-20T07:57:59Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.32.02 Platform: Windows 11 Compiler: MSVC 19.39.33521.0 I am attempting to write a macro that will take an existing root file, …

---

## [How to use user defined function in THttpServer for control](https://root-forum.cern.ch/t/how-to-use-user-defined-function-in-thttpserver-for-control/62679)

<div class="topic-metadata">

**Author:** [@Xin](https://root-forum.cern.ch/u/Xin)\
**Replies:** 2\
**Last updated:** [January 17, 2025, 7:53am UTC](https://root-forum.cern.ch/t/how-to-use-user-defined-function-in-thttpserver-for-control/62679 "2025-01-17T07:53:20Z")

</div>

When I use THttpServer in standalone application, I defined a function like void NextEvent() and use THttpServer::RegisterCommand("/NextEvent","NextEvent()") to use it in web page. But I get error like: use of undeclar…

---

## [Convert root file to something readable by python](https://root-forum.cern.ch/t/convert-root-file-to-something-readable-by-python/48262)

<div class="topic-metadata">

**Author:** [@Tmikhail](https://root-forum.cern.ch/u/Tmikhail)\
**Replies:** 22\
**Last updated:** [January 16, 2025, 2:25pm UTC](https://root-forum.cern.ch/t/convert-root-file-to-something-readable-by-python/48262 "2025-01-16T14:25:40Z")

</div>

Hello all, I’ve been given a project in which I am supposed to implement several machine learning algorithms on data obtained by another group. However, the data is in root format, and I am trying to convert it into som…

---

## [How to know which library I need add to link](https://root-forum.cern.ch/t/how-to-know-which-library-i-need-add-to-link/62583)

<div class="topic-metadata">

**Author:** [@Xin](https://root-forum.cern.ch/u/Xin)\
**Replies:** 2\
**Last updated:** [January 15, 2025, 6:07pm UTC](https://root-forum.cern.ch/t/how-to-know-which-library-i-need-add-to-link/62583 "2025-01-15T18:07:45Z")

</div>

I don’t know how to know which libraries I need add additionally when I compiled ROOT code using g++, like this: g++ -o main mian.c \`root-config --cflags\` \`root-config --libs\` -lMinuit -lGui -lEve -lGeom -lRGL When I …

---

## [How can I save a TMemFile to disk](https://root-forum.cern.ch/t/how-can-i-save-a-tmemfile-to-disk/62648)

<div class="topic-metadata">

**Author:** [@Xin](https://root-forum.cern.ch/u/Xin)\
**Replies:** 3\
**Last updated:** [January 15, 2025, 5:58pm UTC](https://root-forum.cern.ch/t/how-can-i-save-a-tmemfile-to-disk/62648 "2025-01-15T17:58:03Z")

</div>

How can I save a TMemFile to disk, what is the best way to do it ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided

---

## [Root-docker TBrowser how to make it accessible from host browser](https://root-forum.cern.ch/t/root-docker-tbrowser-how-to-make-it-accessible-from-host-browser/62655)

<div class="topic-metadata">

**Author:** [@jerryjin](https://root-forum.cern.ch/u/jerryjin)\
**Replies:** 5\
**Last updated:** [January 14, 2025, 9:56am UTC](https://root-forum.cern.ch/t/root-docker-tbrowser-how-to-make-it-accessible-from-host-browser/62655 "2025-01-14T09:56:57Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version: v6-34-02@v6-34-02 \_Platform: ubuntu 24.04 \_Compiler: gcc Hello, I’m studying root using root-docker inside wsl2 windows 11, I’ve…

---

## [How to use libCling.so in other c++ project](https://root-forum.cern.ch/t/how-to-use-libcling-so-in-other-c-project/62645)

<div class="topic-metadata">

**Author:** [@jerryjin](https://root-forum.cern.ch/u/jerryjin)\
**Replies:** 3\
**Last updated:** [January 14, 2025, 2:37am UTC](https://root-forum.cern.ch/t/how-to-use-libcling-so-in-other-c-project/62645 "2025-01-14T02:37:41Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version: v6-34-02@v6-34-02 \_Platform: ubuntu 24.04 \_Compiler: gcc Hello, I’m new to ROOT, I just used the root-docker for a few weeks. I …

---

## [RooFit Hessian matrix error fitting a flat PDF with RooFit 's maximum likelihood method](https://root-forum.cern.ch/t/roofit-hessian-matrix-error-fitting-a-flat-pdf-with-roofit-s-maximum-likelihood-method/62510)

<div class="topic-metadata">

**Author:** [@bkowal](https://root-forum.cern.ch/u/bkowal)\
**Replies:** 4\
**Last updated:** [January 13, 2025, 9:17pm UTC](https://root-forum.cern.ch/t/roofit-hessian-matrix-error-fitting-a-flat-pdf-with-roofit-s-maximum-likelihood-method/62510 "2025-01-13T21:17:37Z")

</div>

ROOT Version: 6.30/02 Platform: Ubuntu 20.04.6 LTS Compiler: gcc 12.3.0 Hello; I am trying to fit a flat pdf using RooFit, f(x) = b. I would like to recover the value b with an uncertainty, so instead of using RooUn…

---

## [Installing root on raspberry pi 3](https://root-forum.cern.ch/t/installing-root-on-raspberry-pi-3/62633)

<div class="topic-metadata">

**Author:** [@amestvir](https://root-forum.cern.ch/u/amestvir)\
**Replies:** 6\
**Last updated:** [January 11, 2025, 7:32am UTC](https://root-forum.cern.ch/t/installing-root-on-raspberry-pi-3/62633 "2025-01-11T07:32:13Z")

</div>

I am trying to install 6 (versions 6.32.06, 6.34.02) Followed to the instructions here https://root.cern/install/dependencies/ to install the dependencies Always getting error during linking stake of llvm \[ 22%\] Built …

---

## [CMake cxx\_std\_\* propagation](https://root-forum.cern.ch/t/cmake-cxx-std-propagation/62623)

<div class="topic-metadata">

**Author:** [@unmovingcastle](https://root-forum.cern.ch/u/unmovingcastle)\
**Replies:** 3\
**Last updated:** [January 10, 2025, 3:54pm UTC](https://root-forum.cern.ch/t/cmake-cxx-std-propagation/62623 "2025-01-10T15:54:27Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.16+ Platform: M1 macOS with Docker Fedora 41 (personal); RHEL (Collaboration) Compiler: g++ (GCC) 14.2.1 20240912 (Red Hat 14.2.…

---

## [Chi2 and ndf](https://root-forum.cern.ch/t/chi2-and-ndf/62582)

<div class="topic-metadata">

**Author:** [@Noor1](https://root-forum.cern.ch/u/Noor1)\
**Replies:** 1\
**Last updated:** [January 4, 2025, 9:55am UTC](https://root-forum.cern.ch/t/chi2-and-ndf/62582 "2025-01-04T09:55:59Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.3 Platform: mac Compiler: dear rooters, I am trying to fit simple data points using linear fit TF1\* fitFunction = new TF1(“fit…

---

## [Why segfault occurs when SetBranchAddress without initializing pointer to nullptr](https://root-forum.cern.ch/t/why-segfault-occurs-when-setbranchaddress-without-initializing-pointer-to-nullptr/62571)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 4\
**Last updated:** [January 3, 2025, 7:21am UTC](https://root-forum.cern.ch/t/why-segfault-occurs-when-setbranchaddress-without-initializing-pointer-to-nullptr/62571 "2025-01-03T07:21:48Z")

</div>

Dear experts I always got segfault if I declare something like std::vector\<TVector3\> a; and then SetBranchAddress("a", &a);, if I didn’t initialize the pointer to nullptr first. But I found in source code it will set th…

---

## [Sudden compiler (linking?) error](https://root-forum.cern.ch/t/sudden-compiler-linking-error/62560)

<div class="topic-metadata">

**Author:** [@DamVii](https://root-forum.cern.ch/u/DamVii)\
**Replies:** 3\
**Last updated:** [December 30, 2024, 11:51pm UTC](https://root-forum.cern.ch/t/sudden-compiler-linking-error/62560 "2024-12-30T23:51:09Z")

</div>

Update: Solved the issue was probably related to installing ROOT with the snap package manager, I solved this by using the pre-compiled binaries instead, I also made a switch from an Ubunto enviroment in WSL to a Debian…

---

## [Binning of histograms and accessing spectrum manipulation functions](https://root-forum.cern.ch/t/binning-of-histograms-and-accessing-spectrum-manipulation-functions/62552)

<div class="topic-metadata">

**Author:** [@skumar](https://root-forum.cern.ch/u/skumar)\
**Replies:** 3\
**Last updated:** [December 29, 2024, 9:56am UTC](https://root-forum.cern.ch/t/binning-of-histograms-and-accessing-spectrum-manipulation-functions/62552 "2024-12-29T09:56:21Z")

</div>

Hello everyone! I am completely new to ROOT and data analysis. I have data for histogram in an ASCII file (Energy vs Counts). There are 4096 bins and the width of each bin is 0.5 keV. I want to write this data in a 1D …

---

## [Color names in python](https://root-forum.cern.ch/t/color-names-in-python/62543)

<div class="topic-metadata">

**Author:** [@martis](https://root-forum.cern.ch/u/martis)\
**Replies:** 4\
**Last updated:** [December 28, 2024, 3:19am UTC](https://root-forum.cern.ch/t/color-names-in-python/62543 "2024-12-28T03:19:22Z")

</div>

hello, I am in lxplus (alma9) and I have an old python script that I used to plot some histograms and diagrams. originaly I was using “from ROOT import \*” but now I’ve got a message saying I need to specify what I want …

---

## [Contour lines and colz option in TH2D](https://root-forum.cern.ch/t/contour-lines-and-colz-option-in-th2d/62530)

<div class="topic-metadata">

**Author:** [@atha.stam](https://root-forum.cern.ch/u/atha.stam)\
**Replies:** 2\
**Last updated:** [December 24, 2024, 3:56pm UTC](https://root-forum.cern.ch/t/contour-lines-and-colz-option-in-th2d/62530 "2024-12-24T15:56:01Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.16/00 Platform: Ubuntu 20.04 Compiler: linuxx8664gcc Hello co-rooters! I am trying to plot a TH2D histogram using the colz opt…

---

## [Name of gROOT](https://root-forum.cern.ch/t/name-of-groot/62515)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 1\
**Last updated:** [December 20, 2024, 6:19pm UTC](https://root-forum.cern.ch/t/name-of-groot/62515 "2024-12-20T18:19:28Z")

</div>

Hi all Though it’s a stupid question, I found when I type gROOT-\>GetName() in the interactive ROOT I got "Rint", but in the source code of TROOT.cxx it’s instantiated by TROOTAllocator(): fObj("root", "The ROOT of EVER…

---

## [Cling fails when std::pow and ROOT::Math::IntegratorMultiDim are present](https://root-forum.cern.ch/t/cling-fails-when-std-pow-and-root-integratormultidim-are-present/62508)

<div class="topic-metadata">

**Author:** [@arossia94](https://root-forum.cern.ch/u/arossia94)\
**Replies:** 2\
**Last updated:** [December 19, 2024, 1:00pm UTC](https://root-forum.cern.ch/t/cling-fails-when-std-pow-and-root-integratormultidim-are-present/62508 "2024-12-19T13:00:55Z")

</div>

Dear all, I’m facing issues with cling when running this C++ code: #include \<iostream\> #include \<stdio.h\> #include \<complex.h\> #include "TMath.h" Double\_t mw = 79.82436 ; Double\_t mz = 91.1876 ; Double\_t sW2 = 1.0- st…

---

## [Gaussian with random numbers](https://root-forum.cern.ch/t/gaussian-with-random-numbers/62441)

<div class="topic-metadata">

**Author:** [@Sandy](https://root-forum.cern.ch/u/Sandy)\
**Replies:** 10\
**Last updated:** [December 18, 2024, 11:19am UTC](https://root-forum.cern.ch/t/gaussian-with-random-numbers/62441 "2024-12-18T11:19:29Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided Hello, Is there a way to implement random Skewed Gaussian as it is do…

---

## [Cannot find -lPyROOT](https://root-forum.cern.ch/t/cannot-find-lpyroot/62468)

<div class="topic-metadata">

**Author:** [@conrado99](https://root-forum.cern.ch/u/conrado99)\
**Replies:** 2\
**Last updated:** [December 16, 2024, 8:32am UTC](https://root-forum.cern.ch/t/cannot-find-lpyroot/62468 "2024-12-16T08:32:03Z")

</div>

Hello, I am trying to set up a repository that was used in the pass for a CMSSW\_13\_0\_X release. The github repository is: https://github.com/UHH2/SFrame.git In CMSSW\_13 there is no python version lower than version 3,…

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

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