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 = kFALSE,
10  const Bool_t doUnitWeight = kFALSE,
11  const UShort_t debug = 0
12  )
13 {
14  gSystem->Load("St_base");
15  gSystem->Load("StUtilities");
16  gSystem->Load("StGlauberUtilities");
17  gSystem->Load("StCentralityMaker");
18  gSystem->Load("StGlauberTree");
19  gSystem->Load("StGlauberAnalysisMaker");
20 
21  StGlauberAnalysisMaker* maker = new StGlauberAnalysisMaker(type, system, outputFile, tabledir);
22 
23  if(debug) maker->DebugOn();
24  if(doReweighting) maker->ReweightingOn() ;
25  if(doUnitWeight) maker->UnitWeightOn() ;
26 
27  maker->Run(inputFileList);
28  maker->Finish();
29 }
30 
31 //____________________________________________________________________________________________________
32 void doAnalysisMakerOneFile(
33  const TString system = "AuAu_39GeV",
34  const TString inputFile = "icmaker.root",
35  const TString outputFile = "ana.root",
36  const TString type = "default",
37  const TString abledir = "./table",
38  const Bool_t doReweighting = kFALSE,
39  const Bool_t doUnitWeight = kFALSE,
40  const UShort_t debug = 3
41  )
42 {
43  gSystem->Load("St_base");
44  gSystem->Load("StUtilities");
45  gSystem->Load("StGlauberUtilities");
46  gSystem->Load("StCentralityMaker");
47  gSystem->Load("StGlauberTree");
48  gSystem->Load("StGlauberAnalysisMaker");
49 
50  StGlauberAnalysisMaker* maker = new StGlauberAnalysisMaker(type, system, outputFile, tabledir);
51 
52  if(debug) maker->DebugOn();
53  if(doReweighting) maker->ReweightingOn() ;
54  if(doUnitWeight) maker->UnitWeightOn() ;
55 
56  maker->RunFile(inputFile);
57  maker->Finish();
58 }
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.