# Newbie

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

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

---

## [How to run and debug in visual studio 2019](https://root-forum.cern.ch/t/how-to-run-and-debug-in-visual-studio-2019/45325)

<div class="topic-metadata">

**Author:** [@ljxljx](https://root-forum.cern.ch/u/ljxljx)\
**Replies:** 1\
**Last updated:** [June 10, 2021, 6:10am UTC](https://root-forum.cern.ch/t/how-to-run-and-debug-in-visual-studio-2019/45325 "2021-06-10T06:10:02Z")

</div>

Hello everyone, I am a novice on root, I successfully installed root using Binary distributions root\_v6.24.00.win32.vc16.debug.exe on Windows 10, and it works very well. Now I have two questions. The first is how…

---

## [How to merge histograms which are in root files and are provided by pythia8?](https://root-forum.cern.ch/t/how-to-merge-histograms-which-are-in-root-files-and-are-provided-by-pythia8/45317)

<div class="topic-metadata">

**Author:** [@11128](https://root-forum.cern.ch/u/11128)\
**Replies:** 3\
**Last updated:** [June 9, 2021, 2:43pm UTC](https://root-forum.cern.ch/t/how-to-merge-histograms-which-are-in-root-files-and-are-provided-by-pythia8/45317 "2021-06-09T14:43:51Z")

</div>

I have written a code which is written in pythia8 and the export files are root-files that create histograms.how can i merge histograms from different root files?

---

## [Conflict with Conda and Homebrew installation of ROOT](https://root-forum.cern.ch/t/conflict-with-conda-and-homebrew-installation-of-root/45272)

<div class="topic-metadata">

**Author:** [@eggsAndCoffee](https://root-forum.cern.ch/u/eggsAndCoffee)\
**Replies:** 4\
**Last updated:** [June 9, 2021, 11:59am UTC](https://root-forum.cern.ch/t/conflict-with-conda-and-homebrew-installation-of-root/45272 "2021-06-09T11:59:55Z")

</div>

Hello, I am running Mac OS 10.14.6. I recently made the mistake of installing ROOT using the Conda package manager using conda install -c conda-forge root while having an existing installation installed using Homebrew w…

---

## [ROOT Can't Compile a Macro but a Makefile Can](https://root-forum.cern.ch/t/root-cant-compile-a-macro-but-a-makefile-can/45124)

<div class="topic-metadata">

**Author:** [@ackuhlma](https://root-forum.cern.ch/u/ackuhlma)\
**Replies:** 3\
**Last updated:** [June 9, 2021, 7:36am UTC](https://root-forum.cern.ch/t/root-cant-compile-a-macro-but-a-makefile-can/45124 "2021-06-09T07:36:58Z")

</div>

I wasn’t sure what the correct category for this question is, so I put it in “Newbie” (this is my first post on this forum). I created a .C program (macro), but get the following error when I compile it. There are addit…

---

## [RESTful API calls and ROOT](https://root-forum.cern.ch/t/restful-api-calls-and-root/45254)

<div class="topic-metadata">

**Author:** [@decheine](https://root-forum.cern.ch/u/decheine)\
**Replies:** 5\
**Last updated:** [June 8, 2021, 4:28pm UTC](https://root-forum.cern.ch/t/restful-api-calls-and-root/45254 "2021-06-08T16:28:16Z")

</div>

Hi everyone, For a project we need to make some RESTful API calls to fetch some data for analysis inside ROOT. Specifically with an RDataFrame. What is the easiest way to do this? I know of libcurl as a wrapper for c…

---

## [Macro not found in file path](https://root-forum.cern.ch/t/macro-not-found-in-file-path/45305)

<div class="topic-metadata">

**Author:** [@stephen-mul](https://root-forum.cern.ch/u/stephen-mul)\
**Replies:** 1\
**Last updated:** [June 8, 2021, 2:54pm UTC](https://root-forum.cern.ch/t/macro-not-found-in-file-path/45305 "2021-06-08T14:54:35Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.18/05 Platform: Scientific Linux Compiler: Unsure Trying to run a .C file in root using .x and getting the following error Err…

---

## [Root in Windows 10 with MSVC 19 Incompatibilites](https://root-forum.cern.ch/t/root-in-windows-10-with-msvc-19-incompatibilites/45301)

<div class="topic-metadata">

**Author:** [@luminociter](https://root-forum.cern.ch/u/luminociter)\
**Replies:** 3\
**Last updated:** [June 8, 2021, 11:54am UTC](https://root-forum.cern.ch/t/root-in-windows-10-with-msvc-19-incompatibilites/45301 "2021-06-08T11:54:53Z")

</div>

Dear Rooters, Just wanted to report that none of the root versions available are curently comatible with the latest windows SDK in MSVC. That moight be an issue for some people but a workaround exist by selecting the in…

---

## [Draw problem : command terminal draw a different graph compare to my programm](https://root-forum.cern.ch/t/draw-problem-command-terminal-draw-a-different-graph-compare-to-my-programm/45282)

<div class="topic-metadata">

**Author:** [@IKoro](https://root-forum.cern.ch/u/IKoro)\
**Replies:** 13\
**Last updated:** [June 7, 2021, 3:09pm UTC](https://root-forum.cern.ch/t/draw-problem-command-terminal-draw-a-different-graph-compare-to-my-programm/45282 "2021-06-07T15:09:04Z")

</div>

Hello, i have a problem with my draw, because he work for the 9 graphs but for one he didn’t function. void OMline2() { //gStyle-\>SetOptStat(0); //gStyle-\>SetOptFit(1111); TCanvas \*c1 = new TCanvas(); TFile \*input =…

---

## [Macros inside the Macros - #ifndef issue](https://root-forum.cern.ch/t/macros-inside-the-macros-ifndef-issue/45295)

<div class="topic-metadata">

**Author:** [@ilomidze](https://root-forum.cern.ch/u/ilomidze)\
**Replies:** 1\
**Last updated:** [June 8, 2021, 7:27am UTC](https://root-forum.cern.ch/t/macros-inside-the-macros-ifndef-issue/45295 "2021-06-08T07:27:17Z")

</div>

ROOT Version: 6.22/08 Platform: macosx64 Compiler: Not Provided I have all the macro files in the same directory and was using them by directly including in the main macro, like: #include "macro2name.C" // some othe…

---

## [Elegant ways to get a TH2D from a vector?](https://root-forum.cern.ch/t/elegant-ways-to-get-a-th2d-from-a-vector/45151)

<div class="topic-metadata">

**Author:** [@Gramotey](https://root-forum.cern.ch/u/Gramotey)\
**Replies:** 8\
**Last updated:** [June 8, 2021, 12:36am UTC](https://root-forum.cern.ch/t/elegant-ways-to-get-a-th2d-from-a-vector/45151 "2021-06-08T00:36:24Z")

</div>

Dear All – I have my algo providing me with vectors of 3600 values, that make up 60x60 pixels with values that are small additive portions of my final 360 x 360 image. Is there any elegant and most importantly, fast way…

---

## [CMAKE Error while building ROOT](https://root-forum.cern.ch/t/cmake-error-while-building-root/45241)

<div class="topic-metadata">

**Author:** [@Alberto\_Navarro](https://root-forum.cern.ch/u/Alberto_Navarro)\
**Replies:** 4\
**Last updated:** [June 7, 2021, 9:05pm UTC](https://root-forum.cern.ch/t/cmake-error-while-building-root/45241 "2021-06-07T21:05:06Z")

</div>

Hello, I updated Ubuntu recently from 20.04 to 20.10 and I started getting this error while running ROOT (base) alberto@alberto-Inspiron-5558:~$ root ERROR in cling::CIFactory::createCI(): cannot extract standard libra…

---

## ['RConfig.h' file not found](https://root-forum.cern.ch/t/rconfig-h-file-not-found/45261)

<div class="topic-metadata">

**Author:** [@Russell\_Marroquin](https://root-forum.cern.ch/u/Russell_Marroquin)\
**Replies:** 2\
**Last updated:** [June 7, 2021, 8:42pm UTC](https://root-forum.cern.ch/t/rconfig-h-file-not-found/45261 "2021-06-07T20:42:38Z")

</div>

Hi, I am getting this error when running ‘make’ on Mac terminal, is it possible there is an error with my ROOT installation? Thanks in advance for your help and time.

---

## [Getting drawn histograms from TTree](https://root-forum.cern.ch/t/getting-drawn-histograms-from-ttree/45278)

<div class="topic-metadata">

**Author:** [@Dario\_Ramirez](https://root-forum.cern.ch/u/Dario_Ramirez)\
**Replies:** 1\
**Last updated:** [June 6, 2021, 2:34pm UTC](https://root-forum.cern.ch/t/getting-drawn-histograms-from-ttree/45278 "2021-06-06T14:34:11Z")

</div>

ROOT Version: 6.16/00 Platform: Ubuntu 20.04.2 LTS x64 Compiler: Not Provided Hello, I am looking for the fastest way to get the built histograms from a TTree. I have a TTree that for each entry has a vector. This …

---

## [Missing definition of class TVector3](https://root-forum.cern.ch/t/missing-definition-of-class-tvector3/45268)

<div class="topic-metadata">

**Author:** [@stephen-mul](https://root-forum.cern.ch/u/stephen-mul)\
**Replies:** 7\
**Last updated:** [June 5, 2021, 6:18pm UTC](https://root-forum.cern.ch/t/missing-definition-of-class-tvector3/45268 "2021-06-05T18:18:23Z")

</div>

Please read tips for efficient and successful posting and posting code \_ROOT Version: 6.19/02 \_Platform: Windows 10 \_Compiler:Visual Studio Currently working through a ROOT tutorial and I’m running into this error …

---

## [MacOSX Big Sur Update](https://root-forum.cern.ch/t/macosx-big-sur-update/42811)

<div class="topic-metadata">

**Author:** [@fstocker](https://root-forum.cern.ch/u/fstocker)\
**Replies:** 8\
**Last updated:** [June 5, 2021, 3:26pm UTC](https://root-forum.cern.ch/t/macosx-big-sur-update/42811 "2021-06-05T15:26:22Z")

</div>

Hi I’ve recently upgraded my Mac OS to Big Sur and wanted to update my Root to version 22.6. I can source thisroot.sh and it gives no error. However when I start with the command root I get following error and then Se…

---

## [Log calculations in Root 5 vs Root 6](https://root-forum.cern.ch/t/log-calculations-in-root-5-vs-root-6/45265)

<div class="topic-metadata">

**Author:** [@cbungau](https://root-forum.cern.ch/u/cbungau)\
**Replies:** 2\
**Last updated:** [June 5, 2021, 2:16pm UTC](https://root-forum.cern.ch/t/log-calculations-in-root-5-vs-root-6/45265 "2021-06-05T14:16:10Z")

</div>

Hello, I have a simple program to illustrate an issue I have encountered with using the natural log. While in Root 5 its value is calculated precisely, in Root 6 this is not happening. I have compared root 5 (5.27.02, o…

---

## [Trouble Opening Files in Windows Beta Version](https://root-forum.cern.ch/t/trouble-opening-files-in-windows-beta-version/45256)

<div class="topic-metadata">

**Author:** [@kidwellk28](https://root-forum.cern.ch/u/kidwellk28)\
**Replies:** 12\
**Last updated:** [June 4, 2021, 10:12pm UTC](https://root-forum.cern.ch/t/trouble-opening-files-in-windows-beta-version/45256 "2021-06-04T22:12:13Z")

</div>

Hello, I am trying to read data from a simple CSV file and am able to do it successfully with a g++ compiler using C++ on Windows as well as ROOT (C++) on MacOS, but not ROOT on Windows. The file is in the same folder…

---

## [RooPlot won't draw after reading from .root file](https://root-forum.cern.ch/t/rooplot-wont-draw-after-reading-from-root-file/45063)

<div class="topic-metadata">

**Author:** [@Jacob\_Repucci](https://root-forum.cern.ch/u/Jacob_Repucci)\
**Replies:** 3\
**Last updated:** [June 4, 2021, 3:04pm UTC](https://root-forum.cern.ch/t/rooplot-wont-draw-after-reading-from-root-file/45063 "2021-06-04T15:04:15Z")

</div>

In another post I had problems graphing a TH2F after reading it from a .root file. I was able to get that working using SetDirectory(gROOT), but now I’m trying to draw a RooPlot and for whatever reason it’s still refusi…

---

## [When we use GetEntries()](https://root-forum.cern.ch/t/when-we-use-getentries/45248)

<div class="topic-metadata">

**Author:** [@IKoro](https://root-forum.cern.ch/u/IKoro)\
**Replies:** 5\
**Last updated:** [June 4, 2021, 12:49pm UTC](https://root-forum.cern.ch/t/when-we-use-getentries/45248 "2021-06-04T12:49:08Z")

</div>

Hello, I would like to know how much input there is for a charge\_tree \> 1000, but I have no idea where to start. Currently I am using the GetEntry function to know the entry number for the entire histogram.

---

## [When we can create a Tgraph with Tree](https://root-forum.cern.ch/t/when-we-can-create-a-tgraph-with-tree/45193)

<div class="topic-metadata">

**Author:** [@IKoro](https://root-forum.cern.ch/u/IKoro)\
**Replies:** 5\
**Last updated:** [June 2, 2021, 8:40am UTC](https://root-forum.cern.ch/t/when-we-can-create-a-tgraph-with-tree/45193 "2021-06-02T08:40:00Z")

</div>

Hello, I don’t understand why my program didn’t function. It is possible to create a graphe with TGraphe with Tree data ? void OMline() { gStyle-\>SetOptStat(0); gStyle-\>SetOptFit(1111); //gStyle-\>SetMarkerSize(3…

---

## [Save a Graph with TGraphe](https://root-forum.cern.ch/t/save-a-graph-with-tgraphe/45245)

<div class="topic-metadata">

**Author:** [@IKoro](https://root-forum.cern.ch/u/IKoro)\
**Replies:** 1\
**Last updated:** [June 4, 2021, 10:09am UTC](https://root-forum.cern.ch/t/save-a-graph-with-tgraphe/45245 "2021-06-04T10:09:52Z")

</div>

Hello, I don’t understand why i can’t savec my different graph. void OMline2() { gStyle-\>SetOptStat(0); gStyle-\>SetOptFit(1111); TCanvas \*c1 = new TCanvas(); TFile \*input = new TFile("/home/dupuy/Documen…

---

## [Uncertainty on fit parameters](https://root-forum.cern.ch/t/uncertainty-on-fit-parameters/45208)

<div class="topic-metadata">

**Author:** [@gorsedh](https://root-forum.cern.ch/u/gorsedh)\
**Replies:** 2\
**Last updated:** [June 4, 2021, 9:03am UTC](https://root-forum.cern.ch/t/uncertainty-on-fit-parameters/45208 "2021-06-04T09:03:54Z")

</div>

Hello there, I wanted to read the documentation of some parts of root and after searching for a couple hours i almost managed to find everything but i still haven’t found How root estimates uncertainty on fit paramet…

---

## [Getting content of sub-range of a histogram and set in a new one](https://root-forum.cern.ch/t/getting-content-of-sub-range-of-a-histogram-and-set-in-a-new-one/45218)

<div class="topic-metadata">

**Author:** [@Haidar](https://root-forum.cern.ch/u/Haidar)\
**Replies:** 2\
**Last updated:** [June 4, 2021, 8:09am UTC](https://root-forum.cern.ch/t/getting-content-of-sub-range-of-a-histogram-and-set-in-a-new-one/45218 "2021-06-04T08:09:29Z")

</div>

Hi ROOTers, I have a histogram with variable binning and I want set sub-range of its content into a new one. I thought of using SetRangeUser(min,max) but then I realized that this method only affects the visualization b…

---

## [Gausian Fit in a histogram](https://root-forum.cern.ch/t/gausian-fit-in-a-histogram/45230)

<div class="topic-metadata">

**Author:** [@TheScientist](https://root-forum.cern.ch/u/TheScientist)\
**Replies:** 4\
**Last updated:** [June 4, 2021, 4:25am UTC](https://root-forum.cern.ch/t/gausian-fit-in-a-histogram/45230 "2021-06-04T04:25:55Z")

</div>

I am having trouble getting the Gaussian fit for the histogram. I got the error: too few arguments to a function call, expected at least 2, have 1. More: I am trying to read the data points from the txt file and make a …

---

## [gROOT ProcessLineFast](https://root-forum.cern.ch/t/groot-processlinefast/45055)

<div class="topic-metadata">

**Author:** [@gtortone](https://root-forum.cern.ch/u/gtortone)\
**Replies:** 7\
**Last updated:** [June 3, 2021, 12:16pm UTC](https://root-forum.cern.ch/t/groot-processlinefast/45055 "2021-06-03T12:16:30Z")

</div>

Hi, I’m trying to use ROOT for dynamic evaluation of C++ code inside a DAQ software; I realized that if I run this code #include \<TROOT.h\> int main(void) { for(;;) { gROOT-\>ProcessLineFast("TMath::Pi()"); …

---

## [How to compile a c++ file on windows 10 using root and Makefile?](https://root-forum.cern.ch/t/how-to-compile-a-c-file-on-windows-10-using-root-and-makefile/44883)

<div class="topic-metadata">

**Author:** [@fredo.faure](https://root-forum.cern.ch/u/fredo.faure)\
**Replies:** 26\
**Last updated:** [June 2, 2021, 11:22am UTC](https://root-forum.cern.ch/t/how-to-compile-a-c-file-on-windows-10-using-root-and-makefile/44883 "2021-06-02T11:22:11Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.24.00 Platform: Windows 10 Compiler: Not Provided Hello, i am totally new with using Windows 10 (but i am familiar with g++,ro…

---

## [Saving Branches to PDF/PNG (Command Line)](https://root-forum.cern.ch/t/saving-branches-to-pdf-png-command-line/45199)

<div class="topic-metadata">

**Author:** [@jain-pranay](https://root-forum.cern.ch/u/jain-pranay)\
**Replies:** 2\
**Last updated:** [June 2, 2021, 6:52am UTC](https://root-forum.cern.ch/t/saving-branches-to-pdf-png-command-line/45199 "2021-06-02T06:52:20Z")

</div>

Hey all, Looking for some help with a root project! Essentially, I have written a script that saves simulated data about the number of particles detected at certain detection point, modelled in a vector of integers, wh…

---

## [Fit of unbinned data: minimizer error for Minuit/Fumili](https://root-forum.cern.ch/t/fit-of-unbinned-data-minimizer-error-for-minuit-fumili/44949)

<div class="topic-metadata">

**Author:** [@PfD](https://root-forum.cern.ch/u/PfD)\
**Replies:** 6\
**Last updated:** [June 1, 2021, 1:27pm UTC](https://root-forum.cern.ch/t/fit-of-unbinned-data-minimizer-error-for-minuit-fumili/44949 "2021-06-01T13:27:37Z")

</div>

ROOT Version: 6.18.02 Platform: ubuntu 18.04 LTS on WSL10 Dear experts, I am trying to fit unbinned data as described in the user guide. I am not using RooFit (not that I understand at least). I am having the followi…

---

## [Unnaturally small chi-square; no fit convergence with non-zero errors](https://root-forum.cern.ch/t/unnaturally-small-chi-square-no-fit-convergence-with-non-zero-errors/45128)

<div class="topic-metadata">

**Author:** [@Ricardo\_Lambo](https://root-forum.cern.ch/u/Ricardo_Lambo)\
**Replies:** 2\
**Last updated:** [June 1, 2021, 3:12am UTC](https://root-forum.cern.ch/t/unnaturally-small-chi-square-no-fit-convergence-with-non-zero-errors/45128 "2021-06-01T03:12:58Z")

</div>

Dear Colleagues, In the attached code, performing on a TGraphErrors graph1 gives an unexpectedly small chi-square value if I assume no errors on my ‘x’ and ‘y’ values. However, any attempt to use non-zero errors stops t…

---

## [Draw an histo with Tree Problem](https://root-forum.cern.ch/t/draw-an-histo-with-tree-problem/45160)

<div class="topic-metadata">

**Author:** [@IKoro](https://root-forum.cern.ch/u/IKoro)\
**Replies:** 2\
**Last updated:** [May 31, 2021, 1:04pm UTC](https://root-forum.cern.ch/t/draw-an-histo-with-tree-problem/45160 "2021-05-31T13:04:52Z")

</div>

Hey, I don’t understand why i can’t draw my histo void OMline() { TCanvas \*c1 = new TCanvas(); TFile \*input = new TFile("/home/dupuy/Documents/code\_dupuy/Exercices/fichier root/valeurspics2.root","READ"); TTree \*tre…

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

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