14 TFile *_file0 = TFile::Open(liveFileName);
16 TTree*
tree = (TTree *) gROOT->FindObject(
"liveTime");
17 if(tree==NULL) {cout <<
"ScanLIVE : liveTime tree not found !!!" << endl;
exit(1);}
20 sprintf(selection,
"lag[%d]==0 && slag[%d]==0",nIFO,nIFO);
22 tree->Draw(
"start[0]:stop[0]:live",selection,
"goff");
24 int size = (Int_t)tree->GetSelectedRows();
25 double*
start = tree->GetV1();
26 double*
stop = tree->GetV2();
27 double*
live = tree->GetV3();
33 cout <<
i <<
"\tstart: " << start[
i] <<
"\tstop: " << stop[
i] << endl;
34 live_dq1+=stop[
i]-start[
i];
38 cout <<
"livetime zero lag after DQ CAT1 : " << live_dq1 <<
" sec\t" << live_dq1/(24*3600.) <<
" days" << endl;
39 cout <<
"livetime zero lag after DQ CAT2 & GATING: " << live_dq2 <<
" sec\t" << live_dq2/(24*3600.) <<
" days" << endl;
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)
void ReadLiveTimeFromROOT(TString liveFileName, int nIFO)