# Newbie

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

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

---

## [Inverse Fourier Transform](https://root-forum.cern.ch/t/inverse-fourier-transform/52505)

<div class="topic-metadata">

**Author:** [@Harriet\_Kumi](https://root-forum.cern.ch/u/Harriet_Kumi)\
**Replies:** 10\
**Last updated:** [December 1, 2022, 11:28am UTC](https://root-forum.cern.ch/t/inverse-fourier-transform/52505 "2022-12-01T11:28:26Z")

</div>

I am performing fft on my AT-TPC data. I have done the inverse fourier transform but the problem is that the orignal and the fft transform fits perfectly well in the middle but not on the boundaries. Anyone has an idea w…

---

## [Gate @8.2\_2+geant4105: error: "ROOT requires support for C++14 or higher."](https://root-forum.cern.ch/t/gate-8-2-2-geant4105-error-root-requires-support-for-c-14-or-higher/52529)

<div class="topic-metadata">

**Author:** [@stabbass](https://root-forum.cern.ch/u/stabbass)\
**Replies:** 7\
**Last updated:** [November 30, 2022, 7:38pm UTC](https://root-forum.cern.ch/t/gate-8-2-2-geant4105-error-root-requires-support-for-c-14-or-higher/52529 "2022-11-30T19:38:07Z")

</div>

Hi, I am a beginner and trying to install virtual gate on macOS M1 by using macports i.e. sudo port install gate. However I am getting following error /opt/local/libexec/root6/include/root/ROOT/RConfig.hxx:48:4: error: …

---

## [Regex usage in TSystem::ListLibraries()](https://root-forum.cern.ch/t/regex-usage-in-tsystem-listlibraries/52503)

<div class="topic-metadata">

**Author:** [@abelloni](https://root-forum.cern.ch/u/abelloni)\
**Replies:** 30\
**Last updated:** [November 30, 2022, 11:00am UTC](https://root-forum.cern.ch/t/regex-usage-in-tsystem-listlibraries/52503 "2022-11-30T11:00:52Z")

</div>

Dear all, I am afraid that my problem has a simple solution, but I failed to find it. After loading some libraries with: gSystem-\>Load("myLib.so"); I want to check the actual location of the loaded libraries; I am try…

---

## [Syntax highlighting in Editor widget](https://root-forum.cern.ch/t/syntax-highlighting-in-editor-widget/35415)

<div class="topic-metadata">

**Author:** [@nowakowp](https://root-forum.cern.ch/u/nowakowp)\
**Replies:** 2\
**Last updated:** [November 29, 2022, 12:39pm UTC](https://root-forum.cern.ch/t/syntax-highlighting-in-editor-widget/35415 "2022-11-29T12:39:26Z")

</div>

Hi there! In the presentation here on slide 27: we can see code in, I guess, TGTextEdit widget with syntax higlighting for C++. How this effect can be achieved? I’m using ROOT 6.16.

---

## [Draw() method - No window pops up](https://root-forum.cern.ch/t/draw-method-no-window-pops-up/52538)

<div class="topic-metadata">

**Author:** [@oscar1](https://root-forum.cern.ch/u/oscar1)\
**Replies:** 6\
**Last updated:** [November 29, 2022, 10:52am UTC](https://root-forum.cern.ch/t/draw-method-no-window-pops-up/52538 "2022-11-29T10:52:09Z")

</div>

Hello, I have done the following: i) installed Linux (Ubuntu 20.04.5 LTS) on Windows with WSL ii) installed Xming e Xming-fonts (‘Public Domain Releases’) iii) set the environment variable to use the graphic server a…

---

## [GetBinContent gives a nonzero value even though the bin index is out of range](https://root-forum.cern.ch/t/getbincontent-gives-a-nonzero-value-even-though-the-bin-index-is-out-of-range/52527)

<div class="topic-metadata">

**Author:** [@tachyon](https://root-forum.cern.ch/u/tachyon)\
**Replies:** 3\
**Last updated:** [November 28, 2022, 8:01am UTC](https://root-forum.cern.ch/t/getbincontent-gives-a-nonzero-value-even-though-the-bin-index-is-out-of-range/52527 "2022-11-28T08:01:13Z")

</div>

While checking my TH3D object, I found something strange. Its number of the bin was 2, 6, and 4 respectively for x, y, and z axis. root \[25\] myhisto-\>GetNbinsX() (int) 2 root \[26\] myhisto-\>GetNbinsY() (int) 6 root \[27\]…

---

## [Extract digits from the histogram's title and get the mean](https://root-forum.cern.ch/t/extract-digits-from-the-histograms-title-and-get-the-mean/52229)

<div class="topic-metadata">

**Author:** [@alex14](https://root-forum.cern.ch/u/alex14)\
**Replies:** 6\
**Last updated:** [November 25, 2022, 7:55am UTC](https://root-forum.cern.ch/t/extract-digits-from-the-histograms-title-and-get-the-mean/52229 "2022-11-25T07:55:31Z")

</div>

Hello, I have a question that is related to extracting a title from multiple histograms that I have stored in a root file. Anyway, I have 15 histograms, and their titles are, for example, 2.55/En/3.40, and the numbers fr…

---

## [Fatal error: Pythia8/Pythia.h: No such file or directory](https://root-forum.cern.ch/t/fatal-error-pythia8-pythia-h-no-such-file-or-directory/52273)

<div class="topic-metadata">

**Author:** [@Abeda](https://root-forum.cern.ch/u/Abeda)\
**Replies:** 19\
**Last updated:** [November 24, 2022, 9:46pm UTC](https://root-forum.cern.ch/t/fatal-error-pythia8-pythia-h-no-such-file-or-directory/52273 "2022-11-24T21:46:07Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: ubuntu 20.04 Compiler: Not Provided Hi, I’m trying to run a pythia code and I get this error: a.cc:3:10: f…

---

## [Trouble reading RVec of vector from branch with TClonesArray of objects with std::vector member](https://root-forum.cern.ch/t/trouble-reading-rvec-of-vector-from-branch-with-tclonesarray-of-objects-with-std-vector-member/52482)

<div class="topic-metadata">

**Author:** [@Ako\_b](https://root-forum.cern.ch/u/Ako_b)\
**Replies:** 5\
**Last updated:** [November 24, 2022, 2:18pm UTC](https://root-forum.cern.ch/t/trouble-reading-rvec-of-vector-from-branch-with-tclonesarray-of-objects-with-std-vector-member/52482 "2022-11-24T14:18:06Z")

</div>

Hello! I have root file and I need to process data from it. I have tried three approaches, please see source code below. One of them with TTreeReader works, but I want to use RDataFrame because of parallel processing be…

---

## [Rotate z axis to point into myvector direction](https://root-forum.cern.ch/t/rotate-z-axis-to-point-into-myvector-direction/52429)

<div class="topic-metadata">

**Author:** [@Alan\_H](https://root-forum.cern.ch/u/Alan_H)\
**Replies:** 4\
**Last updated:** [November 23, 2022, 7:31am UTC](https://root-forum.cern.ch/t/rotate-z-axis-to-point-into-myvector-direction/52429 "2022-11-23T07:31:21Z")

</div>

Hi guys, I have several vectors in xyz space, vector1, vector2, vector3, etc. I need to rotate the whole system so that the z-axis of my new system points in the direction of vector1. Is there a good way to do this? I …

---

## [TLorentzVector units](https://root-forum.cern.ch/t/tlorentzvector-units/52475)

<div class="topic-metadata">

**Author:** [@kohle](https://root-forum.cern.ch/u/kohle)\
**Replies:** 2\
**Last updated:** [November 22, 2022, 4:28pm UTC](https://root-forum.cern.ch/t/tlorentzvector-units/52475 "2022-11-22T16:28:34Z")

</div>

Hi all, as you can imagine, I am working with the TLorentzVector class and plot the pT spectrum of some daughter particles and want to cross check them with my calculations. What Units does the pT spectrum and the Ener…

---

## [Defining my own palette in pyroot](https://root-forum.cern.ch/t/defining-my-own-palette-in-pyroot/52470)

<div class="topic-metadata">

**Author:** [@martis](https://root-forum.cern.ch/u/martis)\
**Replies:** 1\
**Last updated:** [November 22, 2022, 2:03pm UTC](https://root-forum.cern.ch/t/defining-my-own-palette-in-pyroot/52470 "2022-11-22T14:03:12Z")

</div>

Hello I have a palette (I defined on my own) on C++ code. I would like to use it also in pyroot. I know how to set a new pyroot palette, my problem is more how to get the array of colors of my C++ palette to feed the p…

---

## [TChain losing values from data file](https://root-forum.cern.ch/t/tchain-losing-values-from-data-file/52456)

<div class="topic-metadata">

**Author:** [@cowagner](https://root-forum.cern.ch/u/cowagner)\
**Replies:** 5\
**Last updated:** [November 22, 2022, 11:32am UTC](https://root-forum.cern.ch/t/tchain-losing-values-from-data-file/52456 "2022-11-22T11:32:54Z")

</div>

ROOT Version: 6.20/06 Platform: Linux Compiler: ROOT macro I’ve been having an issue with reading a .root ntuple into a TChain. I had been using a TFile to get a TTree, like this: TFile\* file = new TFile(); file = T…

---

## [Correct way to write a function that return an n-dimensional array of TH1 objects](https://root-forum.cern.ch/t/correct-way-to-write-a-function-that-return-an-n-dimensional-array-of-th1-objects/52467)

<div class="topic-metadata">

**Author:** [@LongHoa](https://root-forum.cern.ch/u/LongHoa)\
**Replies:** 2\
**Last updated:** [November 22, 2022, 11:26am UTC](https://root-forum.cern.ch/t/correct-way-to-write-a-function-that-return-an-n-dimensional-array-of-th1-objects/52467 "2022-11-22T11:26:16Z")

</div>

Hello, I’m trying to write a function that return an array of TH1D histograms. I follow a post on stackoverflow, which recommended using malloc to create the array of histograms. I follow the instruction and my code wo…

---

## [Plots are not produced using my macro](https://root-forum.cern.ch/t/plots-are-not-produced-using-my-macro/52438)

<div class="topic-metadata">

**Author:** [@Lorenzo\_Mobilia](https://root-forum.cern.ch/u/Lorenzo_Mobilia)\
**Replies:** 7\
**Last updated:** [November 21, 2022, 1:58pm UTC](https://root-forum.cern.ch/t/plots-are-not-produced-using-my-macro/52438 "2022-11-21T13:58:35Z")

</div>

ROOT Version: 6.14/06 Hi everyone! I am quite new to Root and I am finding some difficulties in approaching the use of this tool in cluster computation. I work in the Virgo collaboration so I use the Cascina farm fo…

---

## [Problem with RDataFrame](https://root-forum.cern.ch/t/problem-with-rdataframe/52448)

<div class="topic-metadata">

**Author:** [@Mimi](https://root-forum.cern.ch/u/Mimi)\
**Replies:** 2\
**Last updated:** [November 21, 2022, 1:19pm UTC](https://root-forum.cern.ch/t/problem-with-rdataframe/52448 "2022-11-21T13:19:08Z")

</div>

Hi everyone, I have a problem when using RDataFrame. I was trying out the following easy example code: RDataFrame d("Filtered", "test.root"); auto h = d.Histo1D("Probability"); h-\>Draw(); This gives me the following e…

---

## [How to increase the tick length in TGraph2D?](https://root-forum.cern.ch/t/how-to-increase-the-tick-length-in-tgraph2d/52440)

<div class="topic-metadata">

**Author:** [@Songshaptak\_De](https://root-forum.cern.ch/u/Songshaptak_De)\
**Replies:** 9\
**Last updated:** [November 20, 2022, 6:53am UTC](https://root-forum.cern.ch/t/how-to-increase-the-tick-length-in-tgraph2d/52440 "2022-11-20T06:53:53Z")

</div>

Hi, I have tried using GetXaxis().SetTickLength() to increase the tick length but it’s not working. Is there any other way to increase the tick length in TGraph2D() ? ROOT Version: 5.34/09 Platform: Scientific Linux

---

## [How to add two 2D histograms into a new 2D histogram](https://root-forum.cern.ch/t/how-to-add-two-2d-histograms-into-a-new-2d-histogram/52435)

<div class="topic-metadata">

**Author:** [@Songshaptak\_De](https://root-forum.cern.ch/u/Songshaptak_De)\
**Replies:** 1\
**Last updated:** [November 19, 2022, 1:41pm UTC](https://root-forum.cern.ch/t/how-to-add-two-2d-histograms-into-a-new-2d-histogram/52435 "2022-11-19T13:41:15Z")

</div>

Hi, I have two 2D histograms which I want to add and store it in a new 2D histogram in the following way, New2DHistogram = (100 x 2DHistogram1) + (50 x 2DHistogram2) Is there any command in ROOT which can do this in a…

---

## [Having trouble installing ROOT and FRAMELIB](https://root-forum.cern.ch/t/having-trouble-installing-root-and-framelib/52400)

<div class="topic-metadata">

**Author:** [@Mahimos\_nash103](https://root-forum.cern.ch/u/Mahimos_nash103)\
**Replies:** 6\
**Last updated:** [November 18, 2022, 2:03pm UTC](https://root-forum.cern.ch/t/having-trouble-installing-root-and-framelib/52400 "2022-11-18T14:03:19Z")

</div>

Hello everyone, I am trying to install coherent waveburst (cWB), which requires the ROOT and FRAMELIB libraries. The cWB site offers these instructions to install ROOT version 6.24.6 from source: git clone \<git link\> c…

---

## [Preprocessor macro to get version of custom class](https://root-forum.cern.ch/t/preprocessor-macro-to-get-version-of-custom-class/52418)

<div class="topic-metadata">

**Author:** [@renyhp](https://root-forum.cern.ch/u/renyhp)\
**Replies:** 4\
**Last updated:** [November 18, 2022, 11:49am UTC](https://root-forum.cern.ch/t/preprocessor-macro-to-get-version-of-custom-class/52418 "2022-11-18T11:49:40Z")

</div>

Hello, is there some preprocessor macro that is capable of determining whether a custom class inheriting from TObject (with ClassDef) contains a method? Or maybe that just returns the class version? The use-case would …

---

## [TMarker in TH2D](https://root-forum.cern.ch/t/tmarker-in-th2d/52416)

<div class="topic-metadata">

**Author:** [@maniemey](https://root-forum.cern.ch/u/maniemey)\
**Replies:** 9\
**Last updated:** [November 18, 2022, 8:43am UTC](https://root-forum.cern.ch/t/tmarker-in-th2d/52416 "2022-11-18T08:43:49Z")

</div>

Dear all, I’ve been trying to highlight the minimum in a TH2D using a marker. The code right now looks something like this: TH2D\* h1 = NULL;//Then read from a file TCanvas \*c1 = new TCanvas("c1","",200,10,800,600)…

---

## [Canvas display on wsl](https://root-forum.cern.ch/t/canvas-display-on-wsl/43491)

<div class="topic-metadata">

**Author:** [@ogham](https://root-forum.cern.ch/u/ogham)\
**Replies:** 11\
**Last updated:** [November 17, 2022, 6:11pm UTC](https://root-forum.cern.ch/t/canvas-display-on-wsl/43491 "2022-11-17T18:11:56Z")

</div>

Im am trying to make root work on my windows 10 pc. I have a wsl and I work on ubuntu-20.04. The problem is that no matter what I’ve tried, I can’t display canvases when executing a program. I know for sure it is not the…

---

## [RHist Underflow, Overflow and RHistStatBox](https://root-forum.cern.ch/t/rhist-underflow-overflow-and-rhiststatbox/52394)

<div class="topic-metadata">

**Author:** [@BrunoOliveira](https://root-forum.cern.ch/u/BrunoOliveira)\
**Replies:** 7\
**Last updated:** [November 17, 2022, 10:31am UTC](https://root-forum.cern.ch/t/rhist-underflow-overflow-and-rhiststatbox/52394 "2022-11-17T10:31:17Z")

</div>

ROOT Version: 6.26/06 (pacman -S root) Platform: Arch Linux Compiler: gcc Hello, I’m trying to get the number of entries in the under and overflow bins of my RHist (RH1F in particular). Ideally, I would like to re…

---

## [Why I am getting long error bars?](https://root-forum.cern.ch/t/why-i-am-getting-long-error-bars/52377)

<div class="topic-metadata">

**Author:** [@Dil](https://root-forum.cern.ch/u/Dil)\
**Replies:** 4\
**Last updated:** [November 16, 2022, 2:33pm UTC](https://root-forum.cern.ch/t/why-i-am-getting-long-error-bars/52377 "2022-11-16T14:33:56Z")

</div>

Hello Rooters, I am getting a few long error bars. This cause my plot looks weird.Cannot even see the shape of the plot. What’s the reason for this or any way to get rid of these long error bars? Here is my plot. h\_m…

---

## [Cannot open file using root://eoscms.cern.ch/ from compiled standalone executable](https://root-forum.cern.ch/t/cannot-open-file-using-root-eoscms-cern-ch-from-compiled-standalone-executable/52388)

<div class="topic-metadata">

**Author:** [@amestvir](https://root-forum.cern.ch/u/amestvir)\
**Replies:** 3\
**Last updated:** [November 16, 2022, 1:33pm UTC](https://root-forum.cern.ch/t/cannot-open-file-using-root-eoscms-cern-ch-from-compiled-standalone-executable/52388 "2022-11-16T13:33:14Z")

</div>

Dear ROOTers I am new here and to be honest I do not know am I posting in correct category or not, but I hope you will forgive me that for a first time :slight\_smile: :slight\_smile: , post will be little long. This is…

---

## [Color option for Draw](https://root-forum.cern.ch/t/color-option-for-draw/52387)

<div class="topic-metadata">

**Author:** [@Emil\_R](https://root-forum.cern.ch/u/Emil_R)\
**Replies:** 1\
**Last updated:** [November 16, 2022, 9:39am UTC](https://root-forum.cern.ch/t/color-option-for-draw/52387 "2022-11-16T09:39:40Z")

</div>

Hi everybody, I have a probably simple question, but I cannot find an answer. I have made several TLines and draw them on a canvas. Now I want to make some of them in a specific color (say red) and the other ones in ano…

---

## [LHCb Hooks .h and .cpp files](https://root-forum.cern.ch/t/lhcb-hooks-h-and-cpp-files/52383)

<div class="topic-metadata">

**Author:** [@joarias](https://root-forum.cern.ch/u/joarias)\
**Replies:** 1\
**Last updated:** [November 16, 2022, 8:01am UTC](https://root-forum.cern.ch/t/lhcb-hooks-h-and-cpp-files/52383 "2022-11-16T08:01:07Z")

</div>

Hey all, I am using Pythia8 to generate heavy flavor production at the LHCb. I am trying to implement the LHCb tuning provided in gitlab.cern.ch/lhcb/Gauss/-/blob/master/Gen/LbPythia8/options/LHCbDefault.cmd, and the he…

---

## [Macro files while executed, while copying line by line in prompt works](https://root-forum.cern.ch/t/macro-files-while-executed-while-copying-line-by-line-in-prompt-works/52375)

<div class="topic-metadata">

**Author:** [@bomben](https://root-forum.cern.ch/u/bomben)\
**Replies:** 2\
**Last updated:** [November 16, 2022, 7:44am UTC](https://root-forum.cern.ch/t/macro-files-while-executed-while-copying-line-by-line-in-prompt-works/52375 "2022-11-16T07:44:00Z")

</div>

Dear all, I have a script - in attachment - which fails as below when run. If instead I open a root session and I copy line by line the commands everything works. Any insight will be greatly appreciated. Best regards…

---

## [Send TH1,TH2 objects from cpp macro to python for conversion to np arrays](https://root-forum.cern.ch/t/send-th1-th2-objects-from-cpp-macro-to-python-for-conversion-to-np-arrays/52372)

<div class="topic-metadata">

**Author:** [@borehole](https://root-forum.cern.ch/u/borehole)\
**Replies:** 1\
**Last updated:** [November 15, 2022, 1:31pm UTC](https://root-forum.cern.ch/t/send-th1-th2-objects-from-cpp-macro-to-python-for-conversion-to-np-arrays/52372 "2022-11-15T13:31:14Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.26/08 Built for linuxx8664gcc on Nov 10 2022, 15:48:00 From heads/latest-stable@49ba2d46 Ubuntu Hi, I have a ROOT macro for a…

---

## [How to change the Fit minimizer algorithm](https://root-forum.cern.ch/t/how-to-change-the-fit-minimizer-algorithm/52262)

<div class="topic-metadata">

**Author:** [@LongHoa](https://root-forum.cern.ch/u/LongHoa)\
**Replies:** 5\
**Last updated:** [November 15, 2022, 9:52am UTC](https://root-forum.cern.ch/t/how-to-change-the-fit-minimizer-algorithm/52262 "2022-11-15T09:52:17Z")

</div>

Hello, I’m trying to use simplex to fit a TH1D histogram. I did use the command at the beginning of my macro: ROOT::Math::MinimizerOptions::SetDefaultMinimizer("Minuit", "Simplex"); to change the default algorithm to…

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

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