1 void doEStrucut62(
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");
16 const double temp[19]={2,10,24,46,81,129,194,237,280,335,389,437,484,532,597,622,672,722,1000};
18 cent->setCentralities(temp,numCent);
20 int numberOfAnalyses=numCent-1;
24 cb->setMode(cutBinMode);
25 int mbNCutBins = cb->getNumBins();
38 estructMaker->SetEventReader(reader);
43 qaHists->initHistograms();
44 estructMaker->SetQAHists(qaHists);
49 for(
int i=0;i<numberOfAnalyses;i++){
51 if(numberOfAnalyses==1)ic=-1;
53 analysis[i]->setOutputFileName(getOutFileName(outputDir,jobName,
"data",ic));
54 analysis[i]->setQAHists(qaHists);
55 analysis[i]->setZBuffLimits(ecuts);
56 analysis[i]->setAnalysisIndex(i);
58 estructMaker->SetAnalyses(analysis,numberOfAnalyses);
62 estructMaker->startTimer();
63 int counter=0, istat=0, i=0;
66 istat=estructMaker->
Make();
69 cout<<
"doing event ="<<i<<endl;
73 if ( maxNumEvents!=0 && i>=maxNumEvents ) {
77 estructMaker->stopTimer();
80 ofstream ofs(getOutFileName(outputDir,jobName,
"stats"));
81 estructMaker->logAllStats(ofs);
82 ecuts->printCuts(ofs);
83 tcuts->printCuts(ofs);
84 pcuts->printCuts(ofs);
89 TFile* tf=
new TFile(getOutFileName(outputDir,jobName,
"cuts"),
"RECREATE");
90 ecuts->writeCutHists(tf);
91 tcuts->writeCutHists(tf);
95 estructMaker->writeQAHists(getOutFileName(outputDir,jobName,
"QA"));