% root
------------------------------------------------------------------
| Welcome to ROOT 6.23/01 https://root.cern |
| (c) 1995-2021, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for macosx64 on Feb 12 2021, 06:10:13 |
| From heads/master@v6-23-01-RF-binSampling-737-g3d545273d7 |
| With Apple clang version 12.0.0 (clang-1200.0.32.29) |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------------
root [0] TFile *f = new TFile("run01.root");
Warning in <TClass::Init>: no dictionary for class TNeEvent is available
Warning in <TClass::Init>: no dictionary for class TGo4EventElement is available
root [1] TTree *t1 = (TTree*)f->Get("AnalysisxTree");
root [2] UShort_t abc[16];
root [3] t1->SetBranchAddress("NeEvent.PPAC[16]",abc);
root [4] t1->GetEntry(1);
root [5] cout<<abc[0]<<endl;
16
root [6]
Hello Everybody,
I am Nhat, I am a new member.
I start learning root recently, I had some problems with trees. i could not solve it.
i hope everybody can help me solve it.
My problem is
my purpose: I want to draw 2 PPAC,tPPAC histograms, and fit “gaus” for each.
but my code had a problem.
Below are the link code and file root I want to analyze.