12 const TString outputDirectory =
"./",
13 const TString embeddingFile =
"qa_embedding_2005_P07ie.root",
14 const TString realDataFile =
"qa_real_2005_P07ie.root",
15 const Int_t geantid = 8,
16 const Float_t ptMaxCut = 10.0,
17 const Bool_t isEmbeddingOnly = kFALSE,
18 const Int_t parentGeantId = 0,
19 const Float_t vzCut = 30.0,
20 const Int_t refMultMinCut = 0,
21 const Int_t refMultMaxCut = 1000,
22 const Float_t ptMinCut = 0.1,
23 const Float_t etaMaxCut = 1.5,
24 const Float_t yMaxCut = 10.0
26 gROOT->Macro(
"${STAR}/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
27 gSystem->Load(
"StMiniMcEvent");
28 gSystem->Load(
"StEmbeddingUtilities");
39 utility->setPtMaxCut(ptMaxCut);
40 utility->setEtaCut(etaMaxCut);
45 utility->setRapidityCut(yMaxCut);
46 utility->setRefMultMinCut(refMultMinCut);
47 utility->setRefMultMaxCut(refMultMaxCut);
48 utility->setZVertexCut(vzCut);
71 maker->setPtMax(ptMaxCut+0.5) ;
104 void drawEmbeddingQA(
105 const TString outputDirectory,
106 const TString embeddingFile,
107 const TString realDataFile,
109 const TString production,
111 const Double_t ptmax,
112 const Bool_t isEmbeddingOnly = kFALSE,
113 const Int_t parentgeantId = 0
115 gROOT->Macro(
"${STAR}/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
116 gSystem->Load(
"StMiniMcEvent");
117 gSystem->Load(
"StEmbeddingUtilities");
132 maker->setPtMax(ptmax) ;
Float_t setPtMinCut(const Float_t val)
Set track and event selections, return new value.
Bool_t finish()
NHit vs (pt, eta)
static StEmbeddingQAUtilities * instance()
Get instance.
void setParentGeantId(const Int_t parentgeantid)
Set parent geant id (default is 0)
void init()
Initialization.
void setOutputDirectory(const TString name="./")
Default is current directory.