StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
doAnalysisMaker.C
1 
2 //____________________________________________________________________________________________________
3 void doAnalysisMaker(
4  const TString system = "AuAu_39GeV",
5  const TString inputFileList = "tmp.list",
6  const TString outputFile = "ana.root",
7  const TString type = "default",
8  const TString tabledir = "./table",
9  const Bool_t doReweighting = kTRUE,
10  const Bool_t doUnitWeight = kFALSE,
11  const UShort_t debug = 0
12 ){
13  gSystem->Load("St_base");
14  gSystem->Load("StUtilities");
15  gSystem->Load("StGlauberUtilities");
16  gSystem->Load("StCentralityMaker");
17  gSystem->Load("StGlauberTree");
18  gSystem->Load("StGlauberAnalysisMaker");
19 
20  StGlauberAnalysisMaker* maker = new StGlauberAnalysisMaker(type, system, outputFile, tabledir);
21  if(debug) maker->DebugOn();
22  if(doReweighting) maker->ReweightingOn() ;
23  if(doUnitWeight) maker->UnitWeightOn() ;
24  maker->Run(inputFileList);
25  maker->Finish();
26 }
27 
28 //____________________________________________________________________________________________________
29 void doAnalysisMakerOneFile(
30  const TString system = "AuAu_39GeV",
31  const TString inputFile = "icmaker.root",
32  const TString outputFile = "ana.root",
33  const TString type = "default",
34  const TString abledir = "./table",
35  const Bool_t doReweighting = kTRUE,
36  const Bool_t doUnitWeight = kFALSE,
37  const UShort_t debug = 3
38 ){
39  gSystem->Load("St_base");
40  gSystem->Load("StUtilities");
41  gSystem->Load("StGlauberUtilities");
42  gSystem->Load("StCentralityMaker");
43  gSystem->Load("StGlauberTree");
44  gSystem->Load("StGlauberAnalysisMaker");
45 
46  StGlauberAnalysisMaker* maker = new StGlauberAnalysisMaker(type, system, outputFile, tabledir);
47  if(debug) maker->DebugOn();
48  if(doReweighting) maker->ReweightingOn() ;
49  if(doUnitWeight) maker->UnitWeightOn() ;
50  maker->RunFile(inputFile);
51  maker->Finish();
52 }
Bool_t Run(const TString inputFileList)
Loop over all events in one file.
Bool_t RunFile(const TString inputFileName="icmaker.root")
Make one event.
void UnitWeightOn()
Finish analysis.
void DebugOn()
Apply re-weighting correction.
Bool_t Finish()
Loop over all file lists.
void ReweightingOn()
Use unit weight instead of multiplicity weight.