StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StEEmcPool
macros
LCP
rdGeantLcpTreeTest.C
1
// process .geant.root with my maker, finds generated LCP
2
//
3
TChain *chain =
new
TChain(
"G-LCP"
);
4
5
rdGeantLcpTreeTest(){
6
// f=TFile("./MC7777,tree.root");
7
// f->ls();
8
// return;
9
//TH1F *h=f->Get("hpx");
10
// h->Draw();
11
12
TString fItem=
"recoEffStudy/G2032.tree.root"
;
13
14
chain->AddFile(fItem, -1);
15
16
chain->
ls
();
17
float
pt;
18
int
nPKPi;
19
chain->SetBranchAddress(
"pt"
,&pt);
20
chain->SetBranchAddress(
"nPKPi"
,&nPKPi);
21
22
23
int
N=chain->GetEntries();
24
printf(
"N=%d\n"
,N);
25
system(
"date"
);
26
int
k;
27
for
(k=0;k<N;k++) {
28
int
ret=chain->GetEntry(k);
29
assert(ret);
30
//if(k%2000==0)
31
printf(
"%d %d %d %f\n"
,k,ret,nPKPi,pt);
32
}
33
system(
"date"
);
34
35
}
TDataSet::ls
virtual void ls(Option_t *option="") const
Definition:
TDataSet.cxx:495
Generated by
1.8.5