48 #ifndef __StEmbeddingQA_h__
49 #define __StEmbeddingQA_h__
57 #include "StEmbeddingQAUtilities.h"
67 class StEmbeddingQAPair ;
83 StEmbeddingQA(
const Int_t year,
const TString production,
const Bool_t isSimulation = kTRUE);
94 Bool_t
book(
const TString outputFileName =
"");
97 Bool_t
make(
const TString inputFileName,
const Bool_t isSimulation = kTRUE);
100 Bool_t
run(
const TString inputFileList) ;
114 void setRefMultMinCut(
const Int_t refMultMin) ;
115 void setRefMultMaxCut(
const Int_t refMultMax) ;
130 const TString mProduction ;
131 const Bool_t mIsSimulation ;
137 Bool_t fillEmbedding(
const TString inputFileName) ;
138 Bool_t fillRealData(
const TString inputFileName) ;
141 void fillEmbeddingTracks(
const StMiniMcEvent& mcevent,
const Int_t categoryid,
const Int_t itrk) ;
147 void fillRealTracks(
const StMuTrack&
track,
const Int_t categoryid,
const Int_t itrk);
153 void expandHistograms(
const Int_t categoryid,
const Int_t geantid,
const Int_t parentid,
154 const Int_t parentparentid,
const Int_t geantprocess);
157 Bool_t pushBackGeantId(
const Int_t categoryid,
const Int_t geantid,
const Int_t parentid,
158 const Int_t parentparentid,
const Int_t geantprocess) ;
167 Bool_t isTriggerOk(
StMuEvent* event)
const ;
170 Int_t getNtrack(
const Int_t categoryid,
const StMiniMcEvent& mcevent)
const ;
174 TString getIdCollection(
const Int_t geantid,
const Int_t parentid,
const Int_t parentparentid)
const ;
196 TH1* mhNParticles[StEmbeddingQAConst::mNCategory] ;
203 std::vector<Int_t> mGeantId[StEmbeddingQAConst::mNCategory] ;
204 std::vector<TString> mGeantIdCollection ;
207 TH1* mhGeantId[StEmbeddingQAConst::mNCategory];
208 std::map<TString, TH3*> mhNHit[StEmbeddingQAConst::mNCategory] ;
209 std::map<TString, TH3*> mhDca[StEmbeddingQAConst::mNCategory] ;
210 std::map<TString, TH2*> mhPtVsEta[StEmbeddingQAConst::mNCategory] ;
211 std::map<TString, TH2*> mhPtVsY[StEmbeddingQAConst::mNCategory] ;
212 std::map<TString, TH2*> mhPtVsPhi[StEmbeddingQAConst::mNCategory] ;
213 std::map<TString, TH2*> mhPtVsMom[StEmbeddingQAConst::mNCategory] ;
214 std::map<TString, TH2*> mhdPtVsPt[StEmbeddingQAConst::mNCategory] ;
215 std::map<TString, TH2*> mhdInvPtVsPt[StEmbeddingQAConst::mNCategory] ;
216 std::map<TString, TH2*> mhMomVsEta[StEmbeddingQAConst::mNCategory] ;
217 std::map<TString, TH2*> mhdEdxVsMomMc[StEmbeddingQAConst::mNCategory] ;
218 std::map<TString, TH2*> mhdEdxVsMomMcPidCut[StEmbeddingQAConst::mNCategory] ;
219 std::map<TString, TH2*> mhdEdxVsMomReco[StEmbeddingQAConst::mNCategory] ;
220 std::map<TString, TH2*> mhdEdxVsMomRecoPidCut[StEmbeddingQAConst::mNCategory] ;
221 std::map<TString, TH2*> mhRecoPVsMcP[StEmbeddingQAConst::mNCategory] ;
222 std::map<TString, TH3*> mhNCommonHitVsNHit[StEmbeddingQAConst::mNCategory] ;
224 std::map<TString, TH2*> mhEtaVsPhi[StEmbeddingQAConst::mNCategory] ;
225 std::map<TString, TH2*> mhEtaVsVz[StEmbeddingQAConst::mNCategory] ;
226 std::map<TString, TH2*> mhYVsVz[StEmbeddingQAConst::mNCategory] ;
void setRapidityCut(const Float_t ycut)
StEmbeddingQA()
Default constructor (default argument is 2007, P08ic)
Bool_t run(const TString inputFileList)
Either RunRealData or RunEmbedding according to the kIsSimulation flag.
void setPtMax(Float_t ptmax)
Set Maximum Range of pT histograms; binning = 10*ptmax.
Bool_t runRealData(const TString inputFileList)
Analyzer real data.
Bool_t book(const TString outputFileName="")
Initialization.
virtual ~StEmbeddingQA()
Destructor.
Bool_t runEmbedding(const TString inputFileList)
Analyzer embedding data.
Bool_t make(const TString inputFileName, const Bool_t isSimulation=kTRUE)
Either fillEmbedding or fillRealData according to the isSimulation flag.
void addTriggerIdCut(const UInt_t id)
Bool_t end() const
Close output file.
void setZVertexCut(const Float_t vz)