# Newbie

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

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

---

## [ROOT for IOS tutorial](https://root-forum.cern.ch/t/root-for-ios-tutorial/57175)

<div class="topic-metadata">

**Author:** [@robfield](https://root-forum.cern.ch/u/robfield)\
**Replies:** 3\
**Last updated:** [November 20, 2023, 1:15pm UTC](https://root-forum.cern.ch/t/root-for-ios-tutorial/57175 "2023-11-20T13:15:13Z")

</div>

ROOT Version: 6.28/08 Platform: MacBook Pro BigSur 11.7.10 Good morning everyone! I’m a total newbie both in IOS and ROOT, is there by any chance a tutorial/user guide available for root on iOS? Basic commands, creat…

---

## [Expected Expression error](https://root-forum.cern.ch/t/expected-expression-error/60643)

<div class="topic-metadata">

**Author:** [@amishgog](https://root-forum.cern.ch/u/amishgog)\
**Replies:** 15\
**Last updated:** [August 29, 2024, 12:54pm UTC](https://root-forum.cern.ch/t/expected-expression-error/60643 "2024-08-29T12:54:08Z")

</div>

Hey, I am encountering a very surprising error in my ROOT code. I have attached the error and C++ file. Appreciate any help on this. input\_line\_29:3:1: error: expected expression ;} ^ Error in \<TRint::HandleTermInput(…

---

## [DrawFrame is ignored](https://root-forum.cern.ch/t/drawframe-is-ignored/60609)

<div class="topic-metadata">

**Author:** [@Natalia\_D](https://root-forum.cern.ch/u/Natalia_D)\
**Replies:** 6\
**Last updated:** [August 27, 2024, 12:17pm UTC](https://root-forum.cern.ch/t/drawframe-is-ignored/60609 "2024-08-27T12:17:44Z")

</div>

Good afternoon! This is my sample code: void function\_1(){ int i; double x\[\] = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0}; int n = (int)(sizeof(x) / sizeof(double)); for (i = 0; i \< …

---

## [Pop-up of the canvas](https://root-forum.cern.ch/t/pop-up-of-the-canvas/60612)

<div class="topic-metadata">

**Author:** [@Soumalya](https://root-forum.cern.ch/u/Soumalya)\
**Replies:** 1\
**Last updated:** [August 26, 2024, 12:34pm UTC](https://root-forum.cern.ch/t/pop-up-of-the-canvas/60612 "2024-08-26T12:34:23Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version:6.30/4 Platform: Not Provided \_Compiler: I want a pop-up window by running - void tree\_r(string rootfile) { TFile f = new TFil…

---

## [PseudoJet columns in rootdataframe](https://root-forum.cern.ch/t/pseudojet-columns-in-rootdataframe/60553)

<div class="topic-metadata">

**Author:** [@Ganesh\_Hasda](https://root-forum.cern.ch/u/Ganesh_Hasda)\
**Replies:** 3\
**Last updated:** [August 24, 2024, 6:08am UTC](https://root-forum.cern.ch/t/pseudojet-columns-in-rootdataframe/60553 "2024-08-24T06:08:37Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version:\_6.30.04 Platform: Not Provided Compiler: Not Provided Hi experts, I have formed a rootdataframe from a given root file. In this…

---

## [Fastjet within root](https://root-forum.cern.ch/t/fastjet-within-root/60582)

<div class="topic-metadata">

**Author:** [@Ganesh\_Hasda](https://root-forum.cern.ch/u/Ganesh_Hasda)\
**Replies:** 2\
**Last updated:** [August 23, 2024, 11:10am UTC](https://root-forum.cern.ch/t/fastjet-within-root/60582 "2024-08-23T11:10:38Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.30.04 Platform: Not Provided Compiler: Not Provided Hi, I wanted to do some task relating to fastjet within root framework. So…

---

## [Data selection](https://root-forum.cern.ch/t/data-selection/60574)

<div class="topic-metadata">

**Author:** [@Roy\_Wajda](https://root-forum.cern.ch/u/Roy_Wajda)\
**Replies:** 1\
**Last updated:** [August 23, 2024, 6:48am UTC](https://root-forum.cern.ch/t/data-selection/60574 "2024-08-23T06:48:27Z")

</div>

I have a root file, and i want to cut all that data in the mass file that isnt selected by TOS, so in the TOS file the value is greater than one. How do i do that

---

## [How to read ndjson file, create a dataset (TTree) and store in a root file (TFile)?](https://root-forum.cern.ch/t/how-to-read-ndjson-file-create-a-dataset-ttree-and-store-in-a-root-file-tfile/60534)

<div class="topic-metadata">

**Author:** [@dimitris\_lepipas](https://root-forum.cern.ch/u/dimitris_lepipas)\
**Replies:** 4\
**Last updated:** [August 19, 2024, 2:22pm UTC](https://root-forum.cern.ch/t/how-to-read-ndjson-file-create-a-dataset-ttree-and-store-in-a-root-file-tfile/60534 "2024-08-19T14:22:28Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.30.08 Platform: Rocky Linux 8 Compiler: g++ (GCC) 8.5.0 20210514 (Red Hat 8.5.0-22) Hello! I want to read a file that consists …

---

## [Plot bins with value=0](https://root-forum.cern.ch/t/plot-bins-with-value-0/60507)

<div class="topic-metadata">

**Author:** [@emelen](https://root-forum.cern.ch/u/emelen)\
**Replies:** 9\
**Last updated:** [August 16, 2024, 3:10pm UTC](https://root-forum.cern.ch/t/plot-bins-with-value-0/60507 "2024-08-16T15:10:28Z")

</div>

Hello, extremely new to ROOT here, I have my data in an excel file and I want to plot a colored 2D histogram. Some bins have value equal to 0 that I want to plot with color corresponding to the 0 value in the color sca…

---

## [Help a newbie, root won't draw](https://root-forum.cern.ch/t/help-a-newbie-root-wont-draw/60510)

<div class="topic-metadata">

**Author:** [@alberto.3](https://root-forum.cern.ch/u/alberto.3)\
**Replies:** 2\
**Last updated:** [August 16, 2024, 2:54pm UTC](https://root-forum.cern.ch/t/help-a-newbie-root-wont-draw/60510 "2024-08-16T14:54:12Z")

</div>

Hi, maybe this is trivial but I’m having trouble. I’m working with root v 6.32.02 on Ubuntu 24.04 bash shell and I’m having trouble making graphs. I can’t produce images, even the most basic. Brief example; if I make t…

---

## [ROOT error unknown type name Tbrowser](https://root-forum.cern.ch/t/root-error-unknown-type-name-tbrowser/60503)

<div class="topic-metadata">

**Author:** [@Roy\_Wajda](https://root-forum.cern.ch/u/Roy_Wajda)\
**Replies:** 2\
**Last updated:** [August 15, 2024, 7:39am UTC](https://root-forum.cern.ch/t/root-error-unknown-type-name-tbrowser/60503 "2024-08-15T07:39:16Z")

</div>

Im trying to open a .root data file, but when i try to open the Tbrowser it does not work ROOT Version: 6.32.02 Platform: Windows Compiler: I install precompiled binary

---

## [ROOT installation on Arch linux](https://root-forum.cern.ch/t/root-installation-on-arch-linux/60497)

<div class="topic-metadata">

**Author:** [@yatharth\_patil](https://root-forum.cern.ch/u/yatharth_patil)\
**Replies:** 1\
**Last updated:** [August 14, 2024, 8:56pm UTC](https://root-forum.cern.ch/t/root-installation-on-arch-linux/60497 "2024-08-14T20:56:25Z")

</div>

Hi, i am new to the use of ROOT, and would like some help in its installation. I am using garuda linux, which falls under the category of arch linux. For its installation the command mentioned on the website is pacman -S…

---

## [Filtering of entries within a particular event in rootdataframe](https://root-forum.cern.ch/t/filtering-of-entries-within-a-particular-event-in-rootdataframe/60472)

<div class="topic-metadata">

**Author:** [@Ganesh\_Hasda](https://root-forum.cern.ch/u/Ganesh_Hasda)\
**Replies:** 8\
**Last updated:** [August 14, 2024, 3:18pm UTC](https://root-forum.cern.ch/t/filtering-of-entries-within-a-particular-event-in-rootdataframe/60472 "2024-08-14T15:18:51Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6-30.04 Platform: Not Provided Compiler: Not Provided Hi experts, I have a root file with the contents as shown in the figure be…

---

## [Will TCavnas::Clear() release the memory of everything on it?](https://root-forum.cern.ch/t/will-tcavnas-clear-release-the-memory-of-everything-on-it/59759)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 4\
**Last updated:** [August 14, 2024, 1:33pm UTC](https://root-forum.cern.ch/t/will-tcavnas-clear-release-the-memory-of-everything-on-it/59759 "2024-08-14T13:33:12Z")

</div>

Dear experts Do I need to manually delete pointers of objects that already Drawn on a TCanvas after I call TCanvas::Clear()? e.g.: TCanvas\*c = new TCanvas(); TGraph\* g = new TGraph(); TMarker\* m = new Marker(1,1,22); g…

---

## [Graphing in the COLZ option how to change marker size?](https://root-forum.cern.ch/t/graphing-in-the-colz-option-how-to-change-marker-size/60448)

<div class="topic-metadata">

**Author:** [@ishanpatel](https://root-forum.cern.ch/u/ishanpatel)\
**Replies:** 2\
**Last updated:** [August 14, 2024, 12:16pm UTC](https://root-forum.cern.ch/t/graphing-in-the-colz-option-how-to-change-marker-size/60448 "2024-08-14T12:16:34Z")

</div>

I am trying to graph PMTs with the “COLZ” option, but the marker sizes are extremely small and cannot get it to change. auto pmtposition = new TH2D("Centroid Calculation","Centroid and True Vertex",200,0,500,200,-200,20…

---

## [Missing slot member function fixed by adding user define constructor](https://root-forum.cern.ch/t/missing-slot-member-function-fixed-by-adding-user-define-constructor/59596)

<div class="topic-metadata">

**Author:** [@kinstaky](https://root-forum.cern.ch/u/kinstaky)\
**Replies:** 4\
**Last updated:** [August 13, 2024, 7:57pm UTC](https://root-forum.cern.ch/t/missing-slot-member-function-fixed-by-adding-user-define-constructor/59596 "2024-08-13T19:57:50Z")

</div>

ROOT Version: 6.32.00 Platform: Ubuntu 22.04 Compiler: gcc 11.40 Cmake: 3.22.1 I am writing a standalone GUI program and I want to handle the termination for cleaning up. So I follow the tutorial and send TRootCavnas…

---

## [Question about TH1F](https://root-forum.cern.ch/t/question-about-th1f/60474)

<div class="topic-metadata">

**Author:** [@TField](https://root-forum.cern.ch/u/TField)\
**Replies:** 5\
**Last updated:** [August 13, 2024, 4:15pm UTC](https://root-forum.cern.ch/t/question-about-th1f/60474 "2024-08-13T16:15:36Z")

</div>

root \[8\] TH1F \*hist=new TH1F("tt","tt",1000,-1,1); root \[9\] tree-\>Draw("nbdt\>\>hist","track.rgt2\[0\]/rich.beta\*::TMath::Sqrt(1-rich.beta\*rich.beta)\<-1.5&&track.rgt2\[0\]/rich.beta\*::TMath::Sqrt(1-rich.beta\*rich.beta)\>-2&&nbd…

---

## [Stuck process during fitting](https://root-forum.cern.ch/t/stuck-process-during-fitting/60345)

<div class="topic-metadata">

**Author:** [@blouwern](https://root-forum.cern.ch/u/blouwern)\
**Replies:** 8\
**Last updated:** [August 13, 2024, 7:33am UTC](https://root-forum.cern.ch/t/stuck-process-during-fitting/60345 "2024-08-13T07:33:45Z")

</div>

Please read tips for efficient and successful posting and posting code Hi, everyone! I’m trying to fit the typical signal waveform read from SiPM (detecting photons from plastic scintillator, when hit by cosmic Muon r…

---

## [Path issue?](https://root-forum.cern.ch/t/path-issue/60466)

<div class="topic-metadata">

**Author:** [@Salma](https://root-forum.cern.ch/u/Salma)\
**Replies:** 5\
**Last updated:** [August 13, 2024, 5:00am UTC](https://root-forum.cern.ch/t/path-issue/60466 "2024-08-13T05:00:14Z")

</div>

Hi, I am new using LINUX system and ROOT CERN. The command ‘echo $PATH’ gives : /home/salma/salma/installdir/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap…

---

## [Cross Section using ROOT file from Delphes](https://root-forum.cern.ch/t/cross-section-using-root-file-from-delphes/60469)

<div class="topic-metadata">

**Author:** [@Raghad](https://root-forum.cern.ch/u/Raghad)\
**Replies:** 3\
**Last updated:** [August 13, 2024, 4:41am UTC](https://root-forum.cern.ch/t/cross-section-using-root-file-from-delphes/60469 "2024-08-13T04:41:30Z")

</div>

Hello, Is there a tutorial on how to do the differential cross section’s histograms? (preferably with pyROOT, and I got my .root file using Delphes, and it looks like this: ) Many thanks. ROOT Version: 6.30/06 Pl…

---

## [Overlaying histograms with pyROOT](https://root-forum.cern.ch/t/overlaying-histograms-with-pyroot/60454)

<div class="topic-metadata">

**Author:** [@bluke](https://root-forum.cern.ch/u/bluke)\
**Replies:** 6\
**Last updated:** [August 12, 2024, 4:28pm UTC](https://root-forum.cern.ch/t/overlaying-histograms-with-pyroot/60454 "2024-08-12T16:28:12Z")

</div>

I am needing to overlay several histograms in several different ROOT files. I am trying to accomplish this in pyROOT. I am first trying just to import a histogram from an existing ROOT file and saving it as a png image. …

---

## [Shift along x-axis an existing TProfile keeping the uncertainty bars](https://root-forum.cern.ch/t/shift-along-x-axis-an-existing-tprofile-keeping-the-uncertainty-bars/60290)

<div class="topic-metadata">

**Author:** [@erFross](https://root-forum.cern.ch/u/erFross)\
**Replies:** 4\
**Last updated:** [August 12, 2024, 3:27pm UTC](https://root-forum.cern.ch/t/shift-along-x-axis-an-existing-tprofile-keeping-the-uncertainty-bars/60290 "2024-08-12T15:27:01Z")

</div>

Hello all, I’m trying without success to load a TProfile inside a .root file, rescaling it to its maximum and shifting it to have a new TProfile with the same features as the first one but shifted to have the peak in x=…

---

## [Syntax highlighting in command line C++ interpreter?](https://root-forum.cern.ch/t/syntax-highlighting-in-command-line-c-interpreter/60458)

<div class="topic-metadata">

**Author:** [@aky](https://root-forum.cern.ch/u/aky)\
**Replies:** 4\
**Last updated:** [August 10, 2024, 7:03am UTC](https://root-forum.cern.ch/t/syntax-highlighting-in-command-line-c-interpreter/60458 "2024-08-10T07:03:51Z")

</div>

ROOT Version: 6.32.02 Platform: macosxarm64 Compiler: Apple clang version 15.0.0 (clang-1500.3.9.4) First of all, I want to say I love the Root C++ REPL - even though I’m sure I barely make use of a small fraction of…

---

## [Draw the same histogram, only filtered](https://root-forum.cern.ch/t/draw-the-same-histogram-only-filtered/60459)

<div class="topic-metadata">

**Author:** [@Kirill\_Sm](https://root-forum.cern.ch/u/Kirill_Sm)\
**Replies:** 1\
**Last updated:** [August 9, 2024, 12:18pm UTC](https://root-forum.cern.ch/t/draw-the-same-histogram-only-filtered/60459 "2024-08-09T12:18:27Z")

</div>

ROOT Version: 6.26.10 Platform: Windows Hi everyone! I was wondering if there is a possible way to draw a histogram that you already created, only filtered. More particularly, I used the ProjectionX function to crea…

---

## [Facing error while plotting histograms](https://root-forum.cern.ch/t/facing-error-while-plotting-histograms/60450)

<div class="topic-metadata">

**Author:** [@Ganesh\_Hasda](https://root-forum.cern.ch/u/Ganesh_Hasda)\
**Replies:** 2\
**Last updated:** [August 8, 2024, 6:05am UTC](https://root-forum.cern.ch/t/facing-error-while-plotting-histograms/60450 "2024-08-08T06:05:51Z")

</div>

Please read tips for efficient and successful posting and posting code Please fill also the fields below. Note that root -b -q will tell you this info, and starting from 6.28/06 upwards, you can call .forum bug from th…

---

## [Libccppyy3\_12 pyROOT problems](https://root-forum.cern.ch/t/libccppyy3-12-pyroot-problems/60451)

<div class="topic-metadata">

**Author:** [@bluke](https://root-forum.cern.ch/u/bluke)\
**Replies:** 2\
**Last updated:** [August 8, 2024, 5:36am UTC](https://root-forum.cern.ch/t/libccppyy3-12-pyroot-problems/60451 "2024-08-08T05:36:25Z")

</div>

I have been trying to get pyROOT to work on my Mac (Ventura 13.6.7). Frustratingly, when I enter the python prompt by typing python3 then import ROOT I get some errors. Python 3.12.4 | packaged by Anaconda, Inc. | (main…

---

## [Accessing data in root file](https://root-forum.cern.ch/t/accessing-data-in-root-file/60434)

<div class="topic-metadata">

**Author:** [@liz](https://root-forum.cern.ch/u/liz)\
**Replies:** 6\
**Last updated:** [August 7, 2024, 11:12am UTC](https://root-forum.cern.ch/t/accessing-data-in-root-file/60434 "2024-08-07T11:12:34Z")

</div>

Hello, first of all, sorry if I’m not using the proper terminology. I have a TTree file containing some branches, as shown in the attached image: For the first branch I managed to draw the histogram but I don’t kno…

---

## [Cloning 2 histos leads to segmentation fault](https://root-forum.cern.ch/t/cloning-2-histos-leads-to-segmentation-fault/60432)

<div class="topic-metadata">

**Author:** [@archiron](https://root-forum.cern.ch/u/archiron)\
**Replies:** 7\
**Last updated:** [August 6, 2024, 4:29pm UTC](https://root-forum.cern.ch/t/cloning-2-histos-leads-to-segmentation-fault/60432 "2024-08-06T16:29:07Z")

</div>

Hi, I have a list of some histos called with file.Get(path).Get(histo\_name) for a given release (for example CMSSW\_12\_5\_0\_pre5). I would like to compare each histo (named as h2) with the same from another release (nam…

---

## [Problem loading a Pickle file storing dict of histograms with pyROOT](https://root-forum.cern.ch/t/problem-loading-a-pickle-file-storing-dict-of-histograms-with-pyroot/60369)

<div class="topic-metadata">

**Author:** [@gninio](https://root-forum.cern.ch/u/gninio)\
**Replies:** 2\
**Last updated:** [August 2, 2024, 6:54am UTC](https://root-forum.cern.ch/t/problem-loading-a-pickle-file-storing-dict-of-histograms-with-pyroot/60369 "2024-08-02T06:54:00Z")

</div>

Hi, I’ve been storing histograms organized in Python dictionaries in pickle files. Everything worked fine with lxplus7. but now that it has been shut down, I get the following error when trying to load a pickle file: …

---

## [Using Root 6-30-02 with CMake: Vdt connot be found](https://root-forum.cern.ch/t/using-root-6-30-02-with-cmake-vdt-connot-be-found/57484)

<div class="topic-metadata">

**Author:** [@NikkieD](https://root-forum.cern.ch/u/NikkieD)\
**Replies:** 8\
**Last updated:** [August 6, 2024, 12:58pm UTC](https://root-forum.cern.ch/t/using-root-6-30-02-with-cmake-vdt-connot-be-found/57484 "2024-08-06T12:58:12Z")

</div>

Dear All, I’m using homebrew to install Root 6 on my Mac, and today I updated all my packages, and when I now want to recompile a script that uses root, that was working fine with the previous root version, I use CMake,…

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

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