7 void rdFeeTTree(
int max=200000) {
8 gSystem->Load(
"StRoot/StEEmcUtil/EEfeeRaw/libEEfeeRaw.so");
10 TString fname=
"run00006.root";
11 fname=
"miniDaq/feb24/run00003.root";
12 fname=
"/star/u/eemcdb/ezdaqRead/fee.root";
14 TFile *f =
new TFile(fname);
15 TTree *t = (TTree *)f->Get(
"fee");
16 TBranch *bd = t->GetBranch(
"desc");
17 TBranch *be = t->GetBranch(
"evt");
20 EEfeeRunDescr *des =
new EEfeeRunDescr();
25 Int_t nentries = (Int_t)t->GetEntries();
26 printf(
" N entries=%d\n",nentries);
28 printf(
" file=%s is empty, STOP\n",fname.Data());
34 for(Int_t i=0; i<nentries; i++) {
35 nbe += be->GetEntry(i);
36 nbd += bd->GetEntry(i);
37 if(i%1000==0)des->print();