15 void doEStructEmpty(
const char* fileListFile,
const char* outputDir,
const char* cutFile,
const char* jobName,
int cutBinMode=0,
int maxNumEvents=0,
int analysisMode=0){
17 gROOT->LoadMacro(
"load2ptLibs.C");
19 gROOT->LoadMacro(
"getOutFileName.C");
27 const double temp[2]={2,2000};
31 cent->setCentralities(temp,numCent);
32 int numberOfAnalyses=numCent-1;
36 cb->setMode(cutBinMode);
37 int mbNCutBins = cb->getNumBins();
50 estructMaker->SetEventReader(reader);
62 for(
int i=0;i<numberOfAnalyses;i++){
64 if(numberOfAnalyses==1)ic=-1;
67 analysis[i]->setOutputFileName(getOutFileName(outputDir,jobName,
"data",ic));
72 estructMaker->SetAnalyses(analysis,numberOfAnalyses);
76 estructMaker->startTimer();
77 int counter=0, istat=0, i=0;
80 istat=estructMaker->
Make();
83 cout<<
"doing event ="<<i<<endl;
87 if ( maxNumEvents!=0 && i>=maxNumEvents ) {
91 estructMaker->stopTimer();
94 ofstream ofs(getOutFileName(outputDir,jobName,
"stats"));
95 estructMaker->logAllStats(ofs);
96 ecuts->printCuts(ofs);
97 tcuts->printCuts(ofs);
103 TFile* tf=
new TFile(getOutFileName(outputDir,jobName,
"cuts"),
"RECREATE");
104 ecuts->writeCutHists(tf);
105 tcuts->writeCutHists(tf);