# Newbie

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

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

---

## [Problems with pcm and c++ kernel for jupyter](https://root-forum.cern.ch/t/problems-with-pcm-and-c-kernel-for-jupyter/38848)

<div class="topic-metadata">

**Author:** [@bdrum](https://root-forum.cern.ch/u/bdrum)\
**Replies:** 1\
**Last updated:** [April 13, 2020, 7:23pm UTC](https://root-forum.cern.ch/t/problems-with-pcm-and-c-kernel-for-jupyter/38848 "2020-04-13T19:23:39Z")

</div>

Dear experts, could you please help me with my problems. Actually I have got three problems: I’ve reinstalled my root with such configuration: cmake ../root-6.20.04/ -DPYTHON\_EXECUTABLE=/usr/bin/python3 -DCMAKE\_CXX\_…

---

## [Running a C++ Script in ROOT](https://root-forum.cern.ch/t/running-a-c-script-in-root/38788)

<div class="topic-metadata">

**Author:** [@Conor\_McGee](https://root-forum.cern.ch/u/Conor_McGee)\
**Replies:** 10\
**Last updated:** [April 13, 2020, 6:12pm UTC](https://root-forum.cern.ch/t/running-a-c-script-in-root/38788 "2020-04-13T18:12:49Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: root\_v6.19.02.macosx64-10.15-clang110.tar.gz Platform: Mac OS Compiler: XCode Hi I am running through a root tutorial for my lab.…

---

## [NPM/Webpack situation of the JSROOT](https://root-forum.cern.ch/t/npm-webpack-situation-of-the-jsroot/38843)

<div class="topic-metadata">

**Author:** [@nowakowp](https://root-forum.cern.ch/u/nowakowp)\
**Replies:** 1\
**Last updated:** [April 12, 2020, 8:41pm UTC](https://root-forum.cern.ch/t/npm-webpack-situation-of-the-jsroot/38843 "2020-04-12T20:41:27Z")

</div>

Dear ROOT developers, are there any news regarding the npm issue? (https://github.com/root-project/jsroot/issues/180) Importing jsroot downloaded from npm repository (npm install jsroot) into my vue.js project via imp…

---

## [How to declare a TComplex 2D array?](https://root-forum.cern.ch/t/how-to-declare-a-tcomplex-2d-array/38809)

<div class="topic-metadata">

**Author:** [@Student](https://root-forum.cern.ch/u/Student)\
**Replies:** 6\
**Last updated:** [April 11, 2020, 8:06am UTC](https://root-forum.cern.ch/t/how-to-declare-a-tcomplex-2d-array/38809 "2020-04-11T08:06:48Z")

</div>

Hi, I’m trying to declare a 2D array with variable size and where all elements are of the class TComplex. My guess is: TComplex \*\*Complex\_matrix()= new TComplex\[rows\]\[col\]; but it doesn’t work. Does anyone have an id…

---

## [JSROOT Branch to Javascript Array](https://root-forum.cern.ch/t/jsroot-branch-to-javascript-array/38796)

<div class="topic-metadata">

**Author:** [@MarkD32](https://root-forum.cern.ch/u/MarkD32)\
**Replies:** 4\
**Last updated:** [April 10, 2020, 8:59pm UTC](https://root-forum.cern.ch/t/jsroot-branch-to-javascript-array/38796 "2020-04-10T20:59:54Z")

</div>

Hi, I’m new to JSROOT and javascript in general and I have what is likely an easy question: I’m trying to write a function that will turn a branch into a javascript array. function branchToArray(filename, branchName) {…

---

## [Error when declaring TVector](https://root-forum.cern.ch/t/error-when-declaring-tvector/38798)

<div class="topic-metadata">

**Author:** [@juliangb](https://root-forum.cern.ch/u/juliangb)\
**Replies:** 2\
**Last updated:** [April 10, 2020, 8:50pm UTC](https://root-forum.cern.ch/t/error-when-declaring-tvector/38798 "2020-04-10T20:50:11Z")

</div>

Hello, I’m still learning to use ROOT and C++, so I would be grateful for your help. When I try to declare a TVector (already included in my code), in the very simple way TVector \<double\> vec(10, 0); , it returns the e…

---

## [Print out dir structure inside a root file in a tree-form](https://root-forum.cern.ch/t/print-out-dir-structure-inside-a-root-file-in-a-tree-form/38818)

<div class="topic-metadata">

**Author:** [@Y.S.Zhang](https://root-forum.cern.ch/u/Y.S.Zhang)\
**Replies:** 2\
**Last updated:** [April 10, 2020, 7:54pm UTC](https://root-forum.cern.ch/t/print-out-dir-structure-inside-a-root-file-in-a-tree-form/38818 "2020-04-10T19:54:11Z")

</div>

Hi, experts I have searched a lot but still cannot find what I am looking for. I have naive question on how to dump the content of a root file in a tree-form. Like the linux command, tree, is there any similar tool? I…

---

## [Root shows non singular circulant matrix to be singular and fails the FFT](https://root-forum.cern.ch/t/root-shows-non-singular-circulant-matrix-to-be-singular-and-fails-the-fft/38797)

<div class="topic-metadata">

**Author:** [@Waldemar](https://root-forum.cern.ch/u/Waldemar)\
**Replies:** 2\
**Last updated:** [April 10, 2020, 3:11pm UTC](https://root-forum.cern.ch/t/root-shows-non-singular-circulant-matrix-to-be-singular-and-fails-the-fft/38797 "2020-04-10T15:11:06Z")

</div>

ROOT Version: 6.18/04 Platform: Ubuntu 19.10 Compiler: g++ 4:9.2.1-3.1ubuntu1 amd64 GNU C++ compiler Dear Root community, I am currently try…

---

## [Integration in ROOT](https://root-forum.cern.ch/t/integration-in-root/38803)

<div class="topic-metadata">

**Author:** [@Akash116](https://root-forum.cern.ch/u/Akash116)\
**Replies:** 7\
**Last updated:** [April 10, 2020, 11:00am UTC](https://root-forum.cern.ch/t/integration-in-root/38803 "2020-04-10T11:00:14Z")

</div>

Hello I’m trying to use integration in ROOT however root crashes without any message. Can someone help me here? Here is the code, the second #include command contains \<iostream but two angle brackets cause it to remove…

---

## [pyROOT Having Trouble Importing on Windows 10](https://root-forum.cern.ch/t/pyroot-having-trouble-importing-on-windows-10/38800)

<div class="topic-metadata">

**Author:** [@scary](https://root-forum.cern.ch/u/scary)\
**Replies:** 1\
**Last updated:** [April 10, 2020, 10:31am UTC](https://root-forum.cern.ch/t/pyroot-having-trouble-importing-on-windows-10/38800 "2020-04-10T10:31:00Z")

</div>

Hello! I’ve been having trouble importing pyROOT to use it for a jupyter notebook. I have been getting “redefinition errors” as well as a “DLL load failure.” I’m using Windows 10, as well as a 32bit Anaconda that runs p…

---

## [Plotting two TGraphs from a different root file on the same graph](https://root-forum.cern.ch/t/plotting-two-tgraphs-from-a-different-root-file-on-the-same-graph/38786)

<div class="topic-metadata">

**Author:** [@KatR](https://root-forum.cern.ch/u/KatR)\
**Replies:** 10\
**Last updated:** [April 9, 2020, 3:17pm UTC](https://root-forum.cern.ch/t/plotting-two-tgraphs-from-a-different-root-file-on-the-same-graph/38786 "2020-04-09T15:17:50Z")

</div>

Hi all! I’m trying to plot graphs from two different root files on the same graph. I get a segmentation violation when I try it like this: #include \<TH2.h\> #include \<TStyle.h\> #include \<TCanvas.h\> #include "TGraph.h"…

---

## [Histogram pattern](https://root-forum.cern.ch/t/histogram-pattern/38776)

<div class="topic-metadata">

**Author:** [@phy.vijayraj](https://root-forum.cern.ch/u/phy.vijayraj)\
**Replies:** 3\
**Last updated:** [April 9, 2020, 8:17am UTC](https://root-forum.cern.ch/t/histogram-pattern/38776 "2020-04-09T08:17:19Z")

</div>

Dear Sir/Madam, I need your help in understanding the style of histogram. It look like a filled histogram. I want to explain in a brief, I recently performed an experiment. The data is in .dat format with two columns. …

---

## [Warning in \<TClass::TClass\>](https://root-forum.cern.ch/t/warning-in-tclass-tclass/38770)

<div class="topic-metadata">

**Author:** [@pure](https://root-forum.cern.ch/u/pure)\
**Replies:** 5\
**Last updated:** [April 8, 2020, 9:03am UTC](https://root-forum.cern.ch/t/warning-in-tclass-tclass/38770 "2020-04-08T09:03:48Z")

</div>

Hello, everybody! I have a .root file and when I run it, I get these errors: Warning in TClass::TClass: no dictionary for class TRootLHEFEvent is available Warning in TClass::TClass: no dictionary for class TRootWeig…

---

## [Getting error while installing ROOT 6.20.04](https://root-forum.cern.ch/t/getting-error-while-installing-root-6-20-04/38764)

<div class="topic-metadata">

**Author:** [@shdutta](https://root-forum.cern.ch/u/shdutta)\
**Replies:** 5\
**Last updated:** [April 8, 2020, 8:18am UTC](https://root-forum.cern.ch/t/getting-error-while-installing-root-6-20-04/38764 "2020-04-08T08:18:27Z")

</div>

Hello I am getting errors of the form given in \[1\] when building the latest root release. I am posting just a single line, but there are several lines of similar error with all referring to clang::CodeGen . \[1\] undefin…

---

## [TCanvas not dividing](https://root-forum.cern.ch/t/tcanvas-not-dividing/38682)

<div class="topic-metadata">

**Author:** [@kvetter](https://root-forum.cern.ch/u/kvetter)\
**Replies:** 20\
**Last updated:** [April 7, 2020, 10:12am UTC](https://root-forum.cern.ch/t/tcanvas-not-dividing/38682 "2020-04-07T10:12:17Z")

</div>

I am using root 5.34/38 (this is what is returned when I punch in gROOT-\>GetVersion() ) I have an array of 12 TGraphs called g and an array of 6 TMultiGraphs called mg. The goal is to plot two of the TGraphs in each of …

---

## [Random behavior when drawing tree on multiple pads](https://root-forum.cern.ch/t/random-behavior-when-drawing-tree-on-multiple-pads/38736)

<div class="topic-metadata">

**Author:** [@Excelsior](https://root-forum.cern.ch/u/Excelsior)\
**Replies:** 14\
**Last updated:** [April 7, 2020, 5:12am UTC](https://root-forum.cern.ch/t/random-behavior-when-drawing-tree-on-multiple-pads/38736 "2020-04-07T05:12:57Z")

</div>

Hi, I am trying to draw a tree on multiple pads with different options. However, the results varied when I run the SAME code several times. The first one is what I expected: But for most of the time, I got the latter…

---

## [Axis labels overlapped while using TPad](https://root-forum.cern.ch/t/axis-labels-overlapped-while-using-tpad/38742)

<div class="topic-metadata">

**Author:** [@opinto](https://root-forum.cern.ch/u/opinto)\
**Replies:** 1\
**Last updated:** [April 6, 2020, 2:14pm UTC](https://root-forum.cern.ch/t/axis-labels-overlapped-while-using-tpad/38742 "2020-04-06T14:14:18Z")

</div>

When drawing two pads, one pad overlaps the axis label of the other. Is there any way to avoid this?

---

## [A problem about opening a file](https://root-forum.cern.ch/t/a-problem-about-opening-a-file/38733)

<div class="topic-metadata">

**Author:** [@11122](https://root-forum.cern.ch/u/11122)\
**Replies:** 5\
**Last updated:** [April 6, 2020, 9:41am UTC](https://root-forum.cern.ch/t/a-problem-about-opening-a-file/38733 "2020-04-06T09:41:32Z")

</div>

Hi I use ‘’‘TFile \*f = new TFile(“3pietap\_Sig\_ppg\_mcs\_nophotoncut\_pipipietap.root”);’’’ in my macros and then I take this file to the folder where I install root ,but when I excute this macros,root shows that this file …

---

## [Help with filling a Tree branch with a structure of vectors](https://root-forum.cern.ch/t/help-with-filling-a-tree-branch-with-a-structure-of-vectors/38684)

<div class="topic-metadata">

**Author:** [@imaznas](https://root-forum.cern.ch/u/imaznas)\
**Replies:** 2\
**Last updated:** [April 6, 2020, 6:57am UTC](https://root-forum.cern.ch/t/help-with-filling-a-tree-branch-with-a-structure-of-vectors/38684 "2020-04-06T06:57:41Z")

</div>

Dear support team, I’ve been trying without success to fill a branch of a tree with a structure of vectors. Essentially I would like to achieve what’s discribed in this presentation (p17-18) but with vectors instead of…

---

## [Y-axis range is not changed](https://root-forum.cern.ch/t/y-axis-range-is-not-changed/38719)

<div class="topic-metadata">

**Author:** [@robertfroast](https://root-forum.cern.ch/u/robertfroast)\
**Replies:** 1\
**Last updated:** [April 5, 2020, 3:23pm UTC](https://root-forum.cern.ch/t/y-axis-range-is-not-changed/38719 "2020-04-05T15:23:04Z")

</div>

Hi, The range of y-axis is not changed. I want to set it only upto 3000. All the necessary files are updated below: basic.root (30.1 KB) trio.C (3.2 KB) Have a nice day. ROOT Version: Not Provided Platform: Not Pr…

---

## [Linking ROOT libs with cmake in Windows](https://root-forum.cern.ch/t/linking-root-libs-with-cmake-in-windows/38689)

<div class="topic-metadata">

**Author:** [@estimpson](https://root-forum.cern.ch/u/estimpson)\
**Replies:** 3\
**Last updated:** [April 4, 2020, 3:03am UTC](https://root-forum.cern.ch/t/linking-root-libs-with-cmake-in-windows/38689 "2020-04-04T03:03:14Z")

</div>

I’ve been trying for a few days to get ROOT working on a Windows 10 machine. It’s been a challenge and there are a lot of pieces that I’m not yet familiar with but I’ve so far managed to: Install pre-reqs, including G…

---

## [Convertin TString to string and vice versa](https://root-forum.cern.ch/t/convertin-tstring-to-string-and-vice-versa/38674)

<div class="topic-metadata">

**Author:** [@trenta\_coollime](https://root-forum.cern.ch/u/trenta_coollime)\
**Replies:** 1\
**Last updated:** [April 3, 2020, 3:56am UTC](https://root-forum.cern.ch/t/convertin-tstring-to-string-and-vice-versa/38674 "2020-04-03T03:56:04Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: 6.10.06 Platform: Ubuntu 16.04 Compiler: gcc530 TString sample = "/Results/trial2.root"; std::cout \<\< "sample is: " \<\< typeid(sam…

---

## [Activating multi thread slows down file reading speed](https://root-forum.cern.ch/t/activating-multi-thread-slows-down-file-reading-speed/38566)

<div class="topic-metadata">

**Author:** [@LongHoa](https://root-forum.cern.ch/u/LongHoa)\
**Replies:** 15\
**Last updated:** [April 2, 2020, 5:06pm UTC](https://root-forum.cern.ch/t/activating-multi-thread-slows-down-file-reading-speed/38566 "2020-04-02T17:06:28Z")

</div>

Dear expert, I read a topic about activating multi-thread in ROOT using ROOT::EnableImplicitMT(nthreads). I tested my new “discovery” on a tree I created myself. The tree is simple, it contains 4 branches. I fill the t…

---

## [ROOT not launching](https://root-forum.cern.ch/t/root-not-launching/38669)

<div class="topic-metadata">

**Author:** [@Kilo\_Victor\_Papa](https://root-forum.cern.ch/u/Kilo_Victor_Papa)\
**Replies:** 2\
**Last updated:** [April 2, 2020, 4:25pm UTC](https://root-forum.cern.ch/t/root-not-launching/38669 "2020-04-02T16:25:23Z")

</div>

Hi, I’m setting up ROOT on my computer. I’ve already downloaded Microsoft Visual Studio 2019 and downloaded ROOT via .exe file (obviously corresponding to the visual studia that I currently have in my computer. Upon ini…

---

## [Tab completion in pyROOT in an IDE environment](https://root-forum.cern.ch/t/tab-completion-in-pyroot-in-an-ide-environment/38612)

<div class="topic-metadata">

**Author:** [@altaylor](https://root-forum.cern.ch/u/altaylor)\
**Replies:** 4\
**Last updated:** [April 2, 2020, 7:40am UTC](https://root-forum.cern.ch/t/tab-completion-in-pyroot-in-an-ide-environment/38612 "2020-04-02T07:40:04Z")

</div>

Hi all, I was wondering if anyone had any instructions / insights for getting tab completion working with pyROOT in an IDE environment? (using MS Visual Studio Code in particular but also interested in general). For me…

---

## [port root6 with Error in \<HandleInterpreterException\>](https://root-forum.cern.ch/t/port-root6-with-error-in-handleinterpreterexception/38655)

<div class="topic-metadata">

**Author:** [@prebello](https://root-forum.cern.ch/u/prebello)\
**Replies:** 1\
**Last updated:** [April 1, 2020, 5:47pm UTC](https://root-forum.cern.ch/t/port-root6-with-error-in-handleinterpreterexception/38655 "2020-04-01T17:47:19Z")

</div>

I have installed root via port as “sudo port install root6” Now, while trying to run a C++ macro, I am getting the error msg below. May I ask your help to fix it? \[/opt/local/libexec/root6/lib/root/libCling.6.20.02.so\]…

---

## [Error using SetDirectory](https://root-forum.cern.ch/t/error-using-setdirectory/38640)

<div class="topic-metadata">

**Author:** [@adecours](https://root-forum.cern.ch/u/adecours)\
**Replies:** 2\
**Last updated:** [March 31, 2020, 7:28am UTC](https://root-forum.cern.ch/t/error-using-setdirectory/38640 "2020-03-31T07:28:34Z")

</div>

I’m getting this error when I try to run a python plotting script: AttributeError: 'TObject' object has no attribute 'SetDirectory' Here is the part of the script for fetching the histograms / where I’m getting the err…

---

## [Getting histogram x axis value/plotting a TGraph](https://root-forum.cern.ch/t/getting-histogram-x-axis-value-plotting-a-tgraph/38620)

<div class="topic-metadata">

**Author:** [@KatR](https://root-forum.cern.ch/u/KatR)\
**Replies:** 5\
**Last updated:** [March 30, 2020, 6:41pm UTC](https://root-forum.cern.ch/t/getting-histogram-x-axis-value-plotting-a-tgraph/38620 "2020-03-30T18:41:44Z")

</div>

Hi all, Apologies in advance, it’s probably a simple question but I don’t know much C++ and found the documentation hard to understand. I have a TH1F made like this: TH1F \*b = new TH1F(“b”, “NTrack”, 120, 0, 120); For…

---

## [Installing Root on Mac Problems not Configuring](https://root-forum.cern.ch/t/installing-root-on-mac-problems-not-configuring/38600)

<div class="topic-metadata">

**Author:** [@Conor\_McGee](https://root-forum.cern.ch/u/Conor_McGee)\
**Replies:** 10\
**Last updated:** [March 30, 2020, 3:00pm UTC](https://root-forum.cern.ch/t/installing-root-on-mac-problems-not-configuring/38600 "2020-03-30T15:00:07Z")

</div>

Please read tips for efficient and successful posting and posting code ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided Hi so I was trying to set up root on my mac and I keep getting this er…

---

## [GetPointY() doesn't work for TGraphAsymmErrors](https://root-forum.cern.ch/t/getpointy-doesnt-work-for-tgraphasymmerrors/38602)

<div class="topic-metadata">

**Author:** [@evdv](https://root-forum.cern.ch/u/evdv)\
**Replies:** 6\
**Last updated:** [March 30, 2020, 10:10am UTC](https://root-forum.cern.ch/t/getpointy-doesnt-work-for-tgraphasymmerrors/38602 "2020-03-30T10:10:57Z")

</div>

Hi all, I have a TGraphAsymmErrors object and I only want to plot it for y values that are above a certain value. In order to do this, I need to extract my y values from my function and compare them to that value and rem…

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

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