# Newbie

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

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

---

## [GUI problems (XMing)?](https://root-forum.cern.ch/t/gui-problems-xming/44727)

<div class="topic-metadata">

**Author:** [@EVTO](https://root-forum.cern.ch/u/EVTO)\
**Replies:** 7\
**Last updated:** [May 6, 2021, 2:53pm UTC](https://root-forum.cern.ch/t/gui-problems-xming/44727 "2021-05-06T14:53:58Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided Hi. I think I have a problem with ROOT -XMing. When I draw a histogra…

---

## [Draw Smooth option problem](https://root-forum.cern.ch/t/draw-smooth-option-problem/44733)

<div class="topic-metadata">

**Author:** [@Keyvan\_Tabaei](https://root-forum.cern.ch/u/Keyvan_Tabaei)\
**Replies:** 4\
**Last updated:** [May 6, 2021, 2:18pm UTC](https://root-forum.cern.ch/t/draw-smooth-option-problem/44733 "2021-05-06T14:18:02Z")

</div>

hi i want to draw a curve like this : i have rootfile and i a using this code for drawing : TFile\* f =new TFile("result.root"); TCanvas\* c1 = new TCanvas("c1", " "); TTree\* tree = (TTree\*)f-\>Get("Ntuple1"); tree-\>…

---

## [Difference between XYZPoint and XYZVector](https://root-forum.cern.ch/t/difference-between-xyzpoint-and-xyzvector/44717)

<div class="topic-metadata">

**Author:** [@Daniel\_Duque](https://root-forum.cern.ch/u/Daniel_Duque)\
**Replies:** 4\
**Last updated:** [May 4, 2021, 9:55pm UTC](https://root-forum.cern.ch/t/difference-between-xyzpoint-and-xyzvector/44717 "2021-05-04T21:55:00Z")

</div>

What is the difference between an XYZPoint object and an XYZVector object?

---

## [Root 6.22 cmsenv python](https://root-forum.cern.ch/t/root-6-22-cmsenv-python/44650)

<div class="topic-metadata">

**Author:** [@archiron](https://root-forum.cern.ch/u/archiron)\
**Replies:** 16\
**Last updated:** [May 4, 2021, 3:31pm UTC](https://root-forum.cern.ch/t/root-6-22-cmsenv-python/44650 "2021-05-04T15:31:45Z")

</div>

Hi, I use ROOT in a simple manner with cmsenv. When I used ROOT 6.18 with cmsenv on CMSSW\_11\_1\_0\_pre4 release, I made simples histos (see left picture). With CMSSW\_11\_2\_X or CMSW\_11\_3\_Y release, and for an identical …

---

## [Plot a logarithm of a data](https://root-forum.cern.ch/t/plot-a-logarithm-of-a-data/44707)

<div class="topic-metadata">

**Author:** [@PPierre](https://root-forum.cern.ch/u/PPierre)\
**Replies:** 3\
**Last updated:** [May 4, 2021, 10:40am UTC](https://root-forum.cern.ch/t/plot-a-logarithm-of-a-data/44707 "2021-05-04T10:40:06Z")

</div>

snippet of my data 0.0 994 0.1 994 0.2 985 0.3 982 0.4 965 0.5 969 0.6 962 0.7 957 0.8 952 My code : { TGraph\* gr = new TGraph("myFileENERGIE.txt"); gr-\>Draw("AC\*"); } My question : How could I plot the same…

---

## [Execute a shell command (calling a launcher) from ROOT](https://root-forum.cern.ch/t/execute-a-shell-command-calling-a-launcher-from-root/44676)

<div class="topic-metadata">

**Author:** [@PPierre](https://root-forum.cern.ch/u/PPierre)\
**Replies:** 10\
**Last updated:** [May 3, 2021, 2:12pm UTC](https://root-forum.cern.ch/t/execute-a-shell-command-calling-a-launcher-from-root/44676 "2021-05-03T14:12:14Z")

</div>

Holà, ROOT 6.10/02, MAcOS Inside a macro, I would like to execute a function from my .bashrc but ROOT write “command not found” . (This function import libraries for executing GEANT4) In root I’ve written: gSystem-\>(…

---

## [Distribution shape change for every try](https://root-forum.cern.ch/t/distribution-shape-change-for-every-try/44632)

<div class="topic-metadata">

**Author:** [@miran](https://root-forum.cern.ch/u/miran)\
**Replies:** 5\
**Last updated:** [May 3, 2021, 10:30am UTC](https://root-forum.cern.ch/t/distribution-shape-change-for-every-try/44632 "2021-05-03T10:30:20Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: ROOT 6.22/08 Platform: (Lxplus) Compiler: I usually run this way: root macroname.C Hi, I am drawing one variable of sample, st…

---

## [Root on MAC M1 processor...does it work?](https://root-forum.cern.ch/t/root-on-mac-m1-processor-does-it-work/44485)

<div class="topic-metadata">

**Author:** [@faca87](https://root-forum.cern.ch/u/faca87)\
**Replies:** 6\
**Last updated:** [April 30, 2021, 6:19pm UTC](https://root-forum.cern.ch/t/root-on-mac-m1-processor-does-it-work/44485 "2021-04-30T18:19:19Z")

</div>

Hello, I’m thinking to buy a MAC Book pro (I would definitely leave Windows, because even if I’ve an HP intel core i7 8th Gen 16GB RAM buyed 2 years ago, but since Windows updated it need 5-10minutes to load the windows…

---

## [Windows10 ImportError: Failed to import libcppyy3\_7. Please check that ROOT has been built for Python 3.7](https://root-forum.cern.ch/t/windows10-importerror-failed-to-import-libcppyy3-7-please-check-that-root-has-been-built-for-python-3-7/44618)

<div class="topic-metadata">

**Author:** [@Kittyk123](https://root-forum.cern.ch/u/Kittyk123)\
**Replies:** 5\
**Last updated:** [April 28, 2021, 7:05pm UTC](https://root-forum.cern.ch/t/windows10-importerror-failed-to-import-libcppyy3-7-please-check-that-root-has-been-built-for-python-3-7/44618 "2021-04-28T19:05:35Z")

</div>

I have ROOT 6.24.00 installed on Windows 10 through Anaconda3 complied against VS2019 and python 3.7.9. I get the above error ImportError: Failed to import libcppyy3\_7. Please check that ROOT has been built for Python 3…

---

## [ROOT is installed but . bin/thisroot.sh is not working](https://root-forum.cern.ch/t/root-is-installed-but-bin-thisroot-sh-is-not-working/44581)

<div class="topic-metadata">

**Author:** [@Kittyk123](https://root-forum.cern.ch/u/Kittyk123)\
**Replies:** 8\
**Last updated:** [April 28, 2021, 2:54am UTC](https://root-forum.cern.ch/t/root-is-installed-but-bin-thisroot-sh-is-not-working/44581 "2021-04-28T02:54:03Z")

</div>

I have Windows 10 64 bit and Python 3.7.9 installed with Anaconda3. I have both VS2015 and VS2019 installed so I did a source build from GitHub so I could verify I was building against the proper versions of VS and pytho…

---

## [Byte count too large error while copying histogram](https://root-forum.cern.ch/t/byte-count-too-large-error-while-copying-histogram/44594)

<div class="topic-metadata">

**Author:** [@rushabhgala](https://root-forum.cern.ch/u/rushabhgala)\
**Replies:** 4\
**Last updated:** [April 27, 2021, 3:09pm UTC](https://root-forum.cern.ch/t/byte-count-too-large-error-while-copying-histogram/44594 "2021-04-27T15:09:48Z")

</div>

Hi. I have two root files containing TH3F histograms. Interior.root Exterior.root I want to copy the TH3F histograms from both the above files to a new file Combined.root I was able to do so earlier when the histogra…

---

## [Including X errors in Chi2 minimization](https://root-forum.cern.ch/t/including-x-errors-in-chi2-minimization/44585)

<div class="topic-metadata">

**Author:** [@olinpinto](https://root-forum.cern.ch/u/olinpinto)\
**Replies:** 1\
**Last updated:** [April 25, 2021, 7:11pm UTC](https://root-forum.cern.ch/t/including-x-errors-in-chi2-minimization/44585 "2021-04-25T19:11:24Z")

</div>

Hi, I am using ROOT::Fit::Fitter Class and CHI2 minimization technique to perform the fits, I am a bit puzzled on how to include x-errors in my chi2 minimization. Can someone hint me a solution to this? Thank you in a…

---

## [Finding signal delay](https://root-forum.cern.ch/t/finding-signal-delay/44582)

<div class="topic-metadata">

**Author:** [@orionyeung001](https://root-forum.cern.ch/u/orionyeung001)\
**Replies:** 1\
**Last updated:** [April 25, 2021, 6:21am UTC](https://root-forum.cern.ch/t/finding-signal-delay/44582 "2021-04-25T06:21:03Z")

</div>

I am trying to automate the identification of signal delay. While there is some statistical variation, the general feature is 3 peaks that have known order, width, and relative delay, without ordinal information on ampli…

---

## [Root 6.24.00 Compilation error with Mac OS Big Sur 11.2.2](https://root-forum.cern.ch/t/root-6-24-00-compilation-error-with-mac-os-big-sur-11-2-2/44541)

<div class="topic-metadata">

**Author:** [@sarajesmin](https://root-forum.cern.ch/u/sarajesmin)\
**Replies:** 1\
**Last updated:** [April 23, 2021, 10:07am UTC](https://root-forum.cern.ch/t/root-6-24-00-compilation-error-with-mac-os-big-sur-11-2-2/44541 "2021-04-23T10:07:49Z")

</div>

Hi, I am trying to install root v6-24-00 on Mac arm64 I did cmake -DCMAKE\_INSTALL\_PREFIX=…/root\_install -Dbuiltin\_glew=ON …/ and cmake --build . – -j4 and I get the following error; Scanning dependencies of target R…

---

## [Slot DoDraw() does not exist compiled guide](https://root-forum.cern.ch/t/slot-dodraw-does-not-exist-compiled-guide/44408)

<div class="topic-metadata">

**Author:** [@kolev20n](https://root-forum.cern.ch/u/kolev20n)\
**Replies:** 6\
**Last updated:** [April 22, 2021, 2:50pm UTC](https://root-forum.cern.ch/t/slot-dodraw-does-not-exist-compiled-guide/44408 "2021-04-22T14:50:55Z")

</div>

I am trying to assemble a compiled version of the simple example of the ROOT manual (GUI chapter). The interactive version works OK. So after correcting a few typos I ended up with this: #include \<TGFrame.h\> #include \<T…

---

## [Shift bins under modulus](https://root-forum.cern.ch/t/shift-bins-under-modulus/44477)

<div class="topic-metadata">

**Author:** [@orionyeung001](https://root-forum.cern.ch/u/orionyeung001)\
**Replies:** 5\
**Last updated:** [April 22, 2021, 12:36pm UTC](https://root-forum.cern.ch/t/shift-bins-under-modulus/44477 "2021-04-22T12:36:56Z")

</div>

Is there a way to shift bins modulo some float? If I have some data on bins over \[0,5\] with features at 1 and 3.5, can I shift the bin centers by +2 to move those same features to 2 and 0.5? Some motivation since I migh…

---

## [Fitting two data sets to a third](https://root-forum.cern.ch/t/fitting-two-data-sets-to-a-third/44475)

<div class="topic-metadata">

**Author:** [@nimatatari](https://root-forum.cern.ch/u/nimatatari)\
**Replies:** 2\
**Last updated:** [April 22, 2021, 8:36am UTC](https://root-forum.cern.ch/t/fitting-two-data-sets-to-a-third/44475 "2021-04-22T08:36:13Z")

</div>

Hi everyone, Inexperienced with data analysis, I am trying to fit a multiple set of calculated data points (as my fitting functions) to another single set of data points. Therefore, I would not need to use any mathemati…

---

## [Read jagged vectors](https://root-forum.cern.ch/t/read-jagged-vectors/44472)

<div class="topic-metadata">

**Author:** [@Ferrari](https://root-forum.cern.ch/u/Ferrari)\
**Replies:** 2\
**Last updated:** [April 22, 2021, 2:52am UTC](https://root-forum.cern.ch/t/read-jagged-vectors/44472 "2021-04-22T02:52:48Z")

</div>

Hi, I’m trying to read a root file that contains vectors of vectors (multiple events, each event has one vector) that look like this: I don’t know how to read each event because it looks like everything is one vect…

---

## [Degrees of freedom when fitting weighted combination of histograms?](https://root-forum.cern.ch/t/degrees-of-freedom-when-fitting-weighted-combination-of-histograms/44470)

<div class="topic-metadata">

**Author:** [@eggsAndCoffee](https://root-forum.cern.ch/u/eggsAndCoffee)\
**Replies:** 4\
**Last updated:** [April 20, 2021, 11:20pm UTC](https://root-forum.cern.ch/t/degrees-of-freedom-when-fitting-weighted-combination-of-histograms/44470 "2021-04-20T23:20:12Z")

</div>

Hello, I am fitting a weighted combination of test histograms to a histogram of measured data, and I am using a chi-squared fit to determine the weights in the weighted combination. However, I am not sure what the numbe…

---

## [Problem in using Max$() with TTree::Draw()?](https://root-forum.cern.ch/t/problem-in-using-max-with-ttree-draw/44476)

<div class="topic-metadata">

**Author:** [@jwruss](https://root-forum.cern.ch/u/jwruss)\
**Replies:** 4\
**Last updated:** [April 20, 2021, 6:17pm UTC](https://root-forum.cern.ch/t/problem-in-using-max-with-ttree-draw/44476 "2021-04-20T18:17:10Z")

</div>

Hello all, I wrote the following macro, iterativeBayesTestThermal.C (8.7 KB) but repeatedly got error output such as Error in TTreeFormula::Compile: Bad numerical expression : “(0.00837315/\*StokesHybridPlusCDF.WAIS…

---

## [Chi square test](https://root-forum.cern.ch/t/chi-square-test/44478)

<div class="topic-metadata">

**Author:** [@Ravinder](https://root-forum.cern.ch/u/Ravinder)\
**Replies:** 1\
**Last updated:** [April 20, 2021, 8:01am UTC](https://root-forum.cern.ch/t/chi-square-test/44478 "2021-04-20T08:01:22Z")

</div>

We have a table of x, y and error in y x=1, 2 y=2, 3 Error in y=0.1, 0.1 I want to perform a chi square test I want to plot a graph between different values of chi square with respect to different values of slope an…

---

## [Number of entries in histogram bin with weighted submisisons?](https://root-forum.cern.ch/t/number-of-entries-in-histogram-bin-with-weighted-submisisons/44423)

<div class="topic-metadata">

**Author:** [@eggsAndCoffee](https://root-forum.cern.ch/u/eggsAndCoffee)\
**Replies:** 3\
**Last updated:** [April 17, 2021, 7:44pm UTC](https://root-forum.cern.ch/t/number-of-entries-in-histogram-bin-with-weighted-submisisons/44423 "2021-04-17T19:44:31Z")

</div>

Hello, Is there a way to figure out the number of entries in a bin of a histogram that has had its entries weighted? For example, is there a way to do something like: TH1D \*myHisto = new TH1D("myHisto","myHisto",5,0,5)…

---

## [RReader and spectator variables](https://root-forum.cern.ch/t/rreader-and-spectator-variables/42844)

<div class="topic-metadata">

**Author:** [@dertexaner](https://root-forum.cern.ch/u/dertexaner)\
**Replies:** 5\
**Last updated:** [April 16, 2021, 1:42pm UTC](https://root-forum.cern.ch/t/rreader-and-spectator-variables/42844 "2021-04-16T13:42:31Z")

</div>

Dear experts, I use the experimental RReader function to compactly evaluate a TMVA xml file in an RDataFrame based framework. Is there a recommended way of using “spectator variables” in the RReader? The following de…

---

## [Gamma ray spectra gain match](https://root-forum.cern.ch/t/gamma-ray-spectra-gain-match/44436)

<div class="topic-metadata">

**Author:** [@Shaffy](https://root-forum.cern.ch/u/Shaffy)\
**Replies:** 1\
**Last updated:** [April 16, 2021, 6:01am UTC](https://root-forum.cern.ch/t/gamma-ray-spectra-gain-match/44436 "2021-04-16T06:01:40Z")

</div>

Hello, I have a gamma spectrum corresponding to 16 Ge detectors. The data is in approximately 300 root files (run by run). I am sorting this data using TProof in batch mode. During the experiment, there is a shift in th…

---

## [How to do gain matching from a calibrated data?](https://root-forum.cern.ch/t/how-to-do-gain-matching-from-a-calibrated-data/41289)

<div class="topic-metadata">

**Author:** [@arorastacy](https://root-forum.cern.ch/u/arorastacy)\
**Replies:** 9\
**Last updated:** [April 16, 2021, 3:51am UTC](https://root-forum.cern.ch/t/how-to-do-gain-matching-from-a-calibrated-data/41289 "2021-04-16T03:51:02Z")

</div>

Hi All, I have data of Eu152 source and I want to do gain matching from the calibrated data. How can I proceed further? Any suggestions would be really helpful. ROOT Version: Not Provided Platform: Not Provided Comp…

---

## [Test how compatible two tgraphs are](https://root-forum.cern.ch/t/test-how-compatible-two-tgraphs-are/44427)

<div class="topic-metadata">

**Author:** [@ROOTer1](https://root-forum.cern.ch/u/ROOTer1)\
**Replies:** 2\
**Last updated:** [April 16, 2021, 1:44am UTC](https://root-forum.cern.ch/t/test-how-compatible-two-tgraphs-are/44427 "2021-04-16T01:44:09Z")

</div>

Dear, I have two tgraphs that can not be fitted with a function, but I was to perform a test on how compatible they are with each other. Is there any function in ROOT to do that? Cheers!

---

## [What are those functions?](https://root-forum.cern.ch/t/what-are-those-functions/44416)

<div class="topic-metadata">

**Author:** [@bambo34](https://root-forum.cern.ch/u/bambo34)\
**Replies:** 2\
**Last updated:** [April 15, 2021, 12:09pm UTC](https://root-forum.cern.ch/t/what-are-those-functions/44416 "2021-04-15T12:09:59Z")

</div>

https://root.cern/doc/master/langaus\_8C.html What are names of math formulas, that are used in order to achive a chart looking like that? I tried to find some chi squared algorithms, but none of them is usable in order…

---

## [Looping over th2 to get the error in the histogram](https://root-forum.cern.ch/t/looping-over-th2-to-get-the-error-in-the-histogram/44325)

<div class="topic-metadata">

**Author:** [@iftikhar\_safi](https://root-forum.cern.ch/u/iftikhar_safi)\
**Replies:** 19\
**Last updated:** [April 15, 2021, 9:43am UTC](https://root-forum.cern.ch/t/looping-over-th2-to-get-the-error-in-the-histogram/44325 "2021-04-15T09:43:43Z")

</div>

Hello everyone, I have two th2 histograms, I want to divide one by another. However, the error bars(sqrt of entries) are too big if I do it this way. So I want to have the errors in each histogram calculated before, and…

---

## [Code does not work](https://root-forum.cern.ch/t/code-does-not-work/44417)

<div class="topic-metadata">

**Author:** [@Saoirse\_Reids](https://root-forum.cern.ch/u/Saoirse_Reids)\
**Replies:** 6\
**Last updated:** [April 15, 2021, 9:17am UTC](https://root-forum.cern.ch/t/code-does-not-work/44417 "2021-04-15T09:17:51Z")

</div>

I have a file as attached. I need to find the sum of edep in the file. I have attached my code here but it does not work. What am I doing wrong? code1.C (734 Bytes) trial.root (35.4 KB) ROOT Version: v6\_18.04

---

## [New TBrowser won't open a window](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453)

<div class="topic-metadata">

**Author:** [@Taylor\_Carnahan](https://root-forum.cern.ch/u/Taylor_Carnahan)\
**Replies:** 20\
**Last updated:** [April 14, 2021, 3:40pm UTC](https://root-forum.cern.ch/t/new-tbrowser-wont-open-a-window/42453 "2021-04-14T15:40:44Z")

</div>

Hi everyone! I’m definitely a newbie. When I attempt to open a root file in a new TBrowser, I’m getting no new windows (and from what I know about the TBrowser argument, I should be getting the TBrowser in a new window/t…

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

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