3 void doEmbeddingQAMaker(
4 const Int_t year = 2007,
5 const TString production =
"P08ic",
6 const Char_t* inputFileList =
"minimc.list",
7 const Char_t* outputFileName =
"",
8 const Bool_t isSimulation = kTRUE,
9 const Float_t vzCut = 30.0,
10 const Int_t refMultMinCut = 0,
11 const Int_t refMultMaxCut = 1000,
12 const Float_t ptMaxCut = 10.0,
13 const Float_t ptMinCut = 0.1,
14 const Float_t etaMaxCut = 1.5,
15 const Float_t yMaxCut = 10.0
17 const TString
data = (isSimulation) ?
"minimc tree" :
"real data" ;
18 const TString title =
"Embedding QA from " + data ;
20 gBenchmark->Start(title);
22 gROOT->Macro(
"${STAR}/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
23 gSystem->Load(
"StMiniMcEvent");
24 gSystem->Load(
"StEmbeddingUtilities");
40 utility->setPtMaxCut(ptMaxCut);
41 utility->setEtaCut(etaMaxCut);
46 utility->setRapidityCut(yMaxCut);
47 utility->setRefMultMinCut(refMultMinCut);
48 utility->setRefMultMaxCut(refMultMaxCut);
49 utility->setZVertexCut(vzCut);
60 maker->
book(outputFileName);
61 maker->
run(inputFileList);
64 gBenchmark->Stop(title);
65 gBenchmark->Show(title);
71 const Int_t year = 2007,
72 const TString production =
"P08ic",
73 const TString inputFileList =
"minimc.list"
75 doEmbeddingQAMaker(year, production, inputFileList,
"", kTRUE);
80 const Int_t year = 2007,
81 const TString production =
"P08ic",
82 const Char_t* inputFileList =
"MuDst.list"
84 doEmbeddingQAMaker(year, production, inputFileList,
"", kFALSE);
88 void doEmbeddingQAMakerOneFile(
89 const Int_t year = 2007,
90 const TString production =
"P08ic",
91 const Char_t* inputFileName =
"/star/institutions/lbl/hmasui/embedding/data/P08if/PiPlus_st_physics_8172100_raw_1020010.minimc.root",
92 const Char_t* outputFileName =
"",
93 const Bool_t isSimulation = kTRUE,
94 const Float_t vzCut = 30.0,
95 const Int_t refMultMinCut = 0,
96 const Int_t refMultMaxCut = 1000
98 gBenchmark->Start(
"Embedding QA from minimc tree");
100 gROOT->Macro(
"${STAR}/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
101 gSystem->Load(
"StMiniMcEvent");
102 gSystem->Load(
"StEmbeddingUtilities");
106 maker->setRefMultMinCut(refMultMinCut);
107 maker->setRefMultMaxCut(refMultMaxCut);
112 maker->
book(outputFileName);
113 maker->
make(inputFileName, kTRUE);
116 gBenchmark->Stop(
"Embedding QA from minimc tree");
117 gBenchmark->Show(
"Embedding QA from minimc tree");
Float_t setPtMinCut(const Float_t val)
Set track and event selections, return new value.
Bool_t run(const TString inputFileList)
Either RunRealData or RunEmbedding according to the kIsSimulation flag.
Bool_t book(const TString outputFileName="")
Initialization.
Bool_t make(const TString inputFileName, const Bool_t isSimulation=kTRUE)
Either fillEmbedding or fillRealData according to the isSimulation flag.
static StEmbeddingQAUtilities * instance()
Get instance.
Bool_t end() const
Close output file.
void setZVertexCut(const Float_t vz)