83 #ifndef __StEmbeddingQADraw_h__
84 #define __StEmbeddingQADraw_h__
103 StEmbeddingQADraw(
const TString embeddingFile,
const TString realDataFile,
const Int_t geantid,
104 const Bool_t isEmbeddingOnly = kFALSE);
108 const Int_t year,
const TString production,
const Int_t geantid,
const Bool_t isEmbeddingOnly = kFALSE);
120 Bool_t
draw()
const ;
154 void setPtMax(
const Double_t ptmax) ;
159 Bool_t open(
const TString embeddingFile,
const TString realDataFile) ;
162 void print(
const TCanvas& canvas,
const TString name)
const;
166 void checkInputGeantId() ;
169 Bool_t isOpen()
const ;
172 Bool_t isMatchedPairOk()
const ;
175 void setDaughterGeantId() ;
178 Int_t getEntries()
const ;
181 Bool_t isDecay()
const ;
185 Int_t getGeantIdReal(
const Int_t daughter)
const ;
192 Int_t getCategoryId(
const Bool_t isEmbedding = kTRUE)
const ;
195 TObject* getHistogram(
const TString name,
const Bool_t isEmbedding = kTRUE)
const ;
199 TObject* getHistogram(
const TString name,
const UInt_t daughter,
const Bool_t isEmbedding,
200 const UInt_t parentparentid = 0)
const ;
203 const Char_t* getHistogramName(
const TString name,
const UInt_t daughter,
const Bool_t isEmbedding,
204 const UInt_t parentparentid = 0)
const ;
208 Double_t getNormalization(
const TH1& h)
const ;
211 const Char_t* getBaseName()
const ;
214 Bool_t drawStatistics(
const Double_t x1=0.1,
const Double_t y1=0.2,
const Double_t x2=0.9,
const Double_t y2=0.8,
215 const Double_t textSize = 0.05)
const;
218 TPaveText* drawHeader(
const TString description,
219 const Double_t x1=0.0,
const Double_t y1=0.9,
const Double_t x2=1.0,
const Double_t y2=0.95,
220 const Double_t textSize = 0.032)
const;
223 void drawLegend(
const UInt_t
id, TH1* hembed, TH1* hreal,
const Option_t* option=
"L",
224 const Bool_t doSplit=kFALSE)
const ;
227 void drawErrorMessages(
const TString histogramName)
const ;
230 Bool_t drawVertices()
const;
231 Bool_t drawRunEventId()
const;
232 Bool_t drawNumberOfParticles()
const;
235 Bool_t drawdEdxVsMomentum(
const Bool_t isMcMomentum=kTRUE)
const ;
240 Bool_t drawProjection2D(
const TString name,
const Bool_t isMC = kFALSE)
const;
241 Bool_t drawProjection3D(
const TString name)
const;
245 TPaveText* initCanvas(
const TString header,
const Int_t nx=0,
const Int_t ny=0)
const;
248 Double_t getVzAcceptedMinimum()
const ;
249 Double_t getVzAcceptedMaximum()
const ;
252 const Char_t* getMcParticleName()
const ;
255 const Char_t* getEmbeddingParticleName(
const UInt_t
id,
const Bool_t doSplit=kFALSE)
const ;
258 const Char_t* getRealParticleName(
const UInt_t
id,
const Bool_t doSplit=kFALSE)
const ;
261 static UInt_t mCanvasId ;
267 const Bool_t mIsEmbeddingOnly ;
278 TString mProduction ;
282 TFile* mInputEmbedding ;
283 TFile* mInputRealData ;
285 TString mOutputFigureDirectory ;
287 std::vector<Int_t> mDaughterGeantId ;
288 std::vector<Int_t> mParentGeantId ;
289 std::vector<Int_t> mParentParentGeantId ;
290 std::vector<Int_t> mMcGeantId ;
291 Int_t mInputParentGeantId ;
Bool_t drawPhi() const
Geant id.
const Char_t * getParticleName(const Int_t geantid=-1) const
Get geant id.
Bool_t drawPt() const
(pseudo-)rapidity in different eta bins
Bool_t drawDca() const
dE/dx (2D) and projections
Bool_t drawdEdx() const
momentum (|eta|<2, 0.5 eta increment)
Bool_t drawNHit() const
Dca vs (pt, eta)
Bool_t drawGeantId() const
Draw Reconstructed track histograms.
void setJPGOn()
Set true for gif file flag (default is false)
virtual ~StEmbeddingQADraw()
void setPNGOn()
Finish QA.
void setEPSOn()
Set true for jpg file flag (default is false)
Bool_t drawRapidity() const
Azimuthal angle (phi) distributions.
Int_t getYear() const
Set true for ps file flag (default is false)
const Char_t * getProduction() const
Get year.
Bool_t drawTrack() const
Draw MC track histograms.
Bool_t finish()
NHit vs (pt, eta)
void setParentGeantId(const Int_t parentgeantid)
Set parent geant id (default is 0)
void setPSOn()
Set true for eps file flag (default is false)
Bool_t drawMomentum() const
pt (|eta|<2, 0.5 eta increment)
void setGIFOn()
Set true for png file flag (default is false)
Bool_t drawMcTrack() const
Draw all event-wise histograms.
Int_t getGeantId() const
Get production.
Bool_t drawEvent() const
Draw all histograms (event and track histograms).
void init()
Initialization.
void setOutputDirectory(const TString name="./")
Default is current directory.
StEmbeddingQADraw(const TString embeddingFile, const TString realDataFile, const Int_t geantid, const Bool_t isEmbeddingOnly=kFALSE)