1 void getPrescales(
const char *input)
3 gSystem->Load(
"MyEvent/MyEvent");
5 TFile *mFile=
new TFile(input,
"OPEN");
6 TTree *myEventTree=(TTree*)mFile->Get(
"mEventTree");
8 myEventTree->SetBranchAddress(
"branch",&ev);
18 while(myEventTree->GetEntry(i)){
21 if(i==0) cout<<
"run nmb nht1 nht2 psmb psht1 psht2"<<endl;
22 else cout<<runprev<<
" "<<NmbInRun<<
" "<<Nht1InRun<<
" "<<Nht2InRun<<
" "<<ps_mb<<
" "<<ps_ht1<<
" "<<ps_ht2<<endl;
25 ps_mb=ev->prescale(0);
26 ps_ht1=ev->prescale(2);
27 ps_ht2=ev->prescale(3);
34 if(ev->trigger()&1) NmbInRun++;
35 if(ev->trigger()&2) Nht1InRun++;
36 if(ev->trigger()&4) Nht2InRun++;