1 void doEStruct200(
const char* fileListFile,
const char* outputDir,
const char* cutFile,
const char* jobName,
int cutBinMode=0,
int maxNumEvents=0,
int analysisMode=0){
3 gROOT->LoadMacro(
"load2ptLibs.C");
5 gROOT->LoadMacro(
"getOutFileName.C");
17 const double temp[23]={2,15,35,68,117,152,187,234,281,341,401,451,501,551,614,676,739,796,852,902,952,1002,2000};
20 cent->setCentralities(temp,numCent);
22 int numberOfAnalyses=numCent-1;
26 cb->setMode(cutBinMode);
27 int mbNCutBins = cb->getNumBins();
40 estructMaker->SetEventReader(reader);
45 qaHists->initHistograms();
46 estructMaker->SetQAHists(qaHists);
51 for(
int i=0;i<numberOfAnalyses;i++){
53 if(numberOfAnalyses==1)ic=-1;
55 analysis[i]->setOutputFileName(getOutFileName(outputDir,jobName,
"data",ic));
56 analysis[i]->setQAHists(qaHists);
57 analysis[i]->setZBuffLimits(ecuts);
58 analysis[i]->setAnalysisIndex(i);
60 estructMaker->SetAnalyses(analysis,numberOfAnalyses);
64 estructMaker->startTimer();
65 int counter=0, istat=0, i=0;
68 istat=estructMaker->
Make();
71 cout<<
"doing event ="<<i<<endl;
75 if ( maxNumEvents!=0 && i>=maxNumEvents ) {
79 estructMaker->stopTimer();
82 ofstream ofs(getOutFileName(outputDir,jobName,
"stats"));
83 estructMaker->logAllStats(ofs);
84 ecuts->printCuts(ofs);
85 tcuts->printCuts(ofs);
86 pcuts->printCuts(ofs);
91 TFile* tf=
new TFile(getOutFileName(outputDir,jobName,
"cuts"),
"RECREATE");
92 ecuts->writeCutHists(tf);
93 tcuts->writeCutHists(tf);
97 estructMaker->writeQAHists(getOutFileName(outputDir,jobName,
"QA"));