#if !defined(__CINT__) || defined(__MAKECINT__) #include #include "TChain.h" #include #include #include #include #include #include #include "TChain.h" #include "TString.h" #include "TROOT.h" #include "TObjString.h" #include "TSortedList.h" #include "TObjArray.h" #include "TOrdCollection.h" #include "THashTable.h" #include "TBtree.h" #include "TStopwatch.h" #include using namespace std; extern void InitGui(); VoidFuncPtr_t initfuncs[] = { InitGui, 0 }; TROOT root("Rint","The ROOT Interactive Interface", initfuncs); #endif run(char *inputfile) { cout<<"inputfile: "<ProcessLine(".x oaAnalysisReadInitFile.C"); gROOT->ProcessLine(".L analysisDQFlags.C"); //Run over the macro for POT studies ofstream outfile( "DQFlagsComps.dat" ); ifstream infile(inputfile); while (! infile.eof() ) { int subrun(-1); char filename[200]={}; infile >> filename >>subrun ; if (subrun == -1 ) continue; analysisDQFlags(filename,subrun, &outfile); } infile.close(); outfile.close(); }