StRoot
1
|
Public Member Functions | |
StEmbeddingQADraw (const TString embeddingFile, const TString realDataFile, const Int_t geantid, const Bool_t isEmbeddingOnly=kFALSE) | |
StEmbeddingQADraw (const TString embeddingFile, const TString realDataFile, const Int_t year, const TString production, const Int_t geantid, const Bool_t isEmbeddingOnly=kFALSE) | |
Specify year, production and particle geantid if you put you own input embedding/real data file names. More... | |
virtual | ~StEmbeddingQADraw () |
void | init () |
Initialization. More... | |
void | setParentGeantId (const Int_t parentgeantid) |
Set parent geant id (default is 0) | |
void | setOutputDirectory (const TString name="./") |
Default is current directory. More... | |
Bool_t | draw () const |
Bool_t | drawEvent () const |
Draw all histograms (event and track histograms). More... | |
Bool_t | drawMcTrack () const |
Draw all event-wise histograms. More... | |
Bool_t | drawTrack () const |
Draw MC track histograms. More... | |
Bool_t | drawGeantId () const |
Draw Reconstructed track histograms. More... | |
Bool_t | drawPhi () const |
Geant id. More... | |
Bool_t | drawRapidity () const |
Azimuthal angle (phi) distributions. More... | |
Bool_t | drawPt () const |
(pseudo-)rapidity in different eta bins More... | |
Bool_t | drawMomentum () const |
pt (|eta|<2, 0.5 eta increment) More... | |
Bool_t | drawdEdx () const |
momentum (|eta|<2, 0.5 eta increment) More... | |
Bool_t | drawDca () const |
dE/dx (2D) and projections More... | |
Bool_t | drawNHit () const |
Dca vs (pt, eta) More... | |
Bool_t | finish () |
NHit vs (pt, eta) | |
void | setPNGOn () |
Finish QA. | |
void | setGIFOn () |
Set true for png file flag (default is false) | |
void | setJPGOn () |
Set true for gif file flag (default is false) | |
void | setEPSOn () |
Set true for jpg file flag (default is false) | |
void | setPSOn () |
Set true for eps file flag (default is false) | |
Int_t | getYear () const |
Set true for ps file flag (default is false) | |
const Char_t * | getProduction () const |
Get year. | |
Int_t | getGeantId () const |
Get production. | |
const Char_t * | getParticleName (const Int_t geantid=-1) const |
Get geant id. More... | |
void | setPtMax (const Double_t ptmax) |
Definition at line 97 of file StEmbeddingQADraw.h.
StEmbeddingQADraw::StEmbeddingQADraw | ( | const TString | embeddingFile, |
const TString | realDataFile, | ||
const Int_t | geantid, | ||
const Bool_t | isEmbeddingOnly = kFALSE |
||
) |
Input embedding/real data file names made by StEmbeddingQAAnalyzer Added 'isEmbeddingOnly' argument true –> draw QA only for the embedding false (default) –> draw QA both embedding and real data
Constructor for StEmbeddingQADraw
Open input files, see Bool_t open(const TString embeddingFile, const TString realDataFile)
Get year and production from input file
Do not define the year and production if input files have not been opened properly
Definition at line 132 of file StEmbeddingQADraw.cxx.
StEmbeddingQADraw::StEmbeddingQADraw | ( | const TString | embeddingFile, |
const TString | realDataFile, | ||
const Int_t | year, | ||
const TString | production, | ||
const Int_t | geantid, | ||
const Bool_t | isEmbeddingOnly = kFALSE |
||
) |
Specify year, production and particle geantid if you put you own input embedding/real data file names.
Constructor for StEmbeddingQADraw Define year and production from the input arguments
Open input files, see Bool_t open(const TString embeddingFile, const TString realDataFile)
Year, production and particle name by hand
Definition at line 175 of file StEmbeddingQADraw.cxx.
|
virtual |
Destructor
Clear MC and daughter geantid array
Close input files
Definition at line 193 of file StEmbeddingQADraw.cxx.
Bool_t StEmbeddingQADraw::draw | ( | ) | const |
QA for event-wise and track-wise (both MC and reconstructed) histograms
(1) Event-wise informations
(2-1) Track-wise informations (MC)
(2-2) Track-wise informations (Real vs Embedding)
Definition at line 2492 of file StEmbeddingQADraw.cxx.
References drawEvent(), drawMcTrack(), and drawTrack().
Bool_t StEmbeddingQADraw::drawDca | ( | ) | const |
dE/dx (2D) and projections
QA for global DCA distributions for each (pt, eta) slice
Make sure (1) input ROOT files and (2) input geantid
Definition at line 2211 of file StEmbeddingQADraw.cxx.
Referenced by drawTrack().
Bool_t StEmbeddingQADraw::drawdEdx | ( | ) | const |
momentum (|eta|<2, 0.5 eta increment)
QA for dE/dx
Make sure (1) input ROOT files and (2) input geantid
vs MC momentum
vs Reconstructed momentum
Definition at line 1903 of file StEmbeddingQADraw.cxx.
Referenced by drawTrack().
Bool_t StEmbeddingQADraw::drawEvent | ( | ) | const |
Draw all histograms (event and track histograms).
Event-wise QA
Make sure (1) input ROOT files and (2) input geantid
Run id, event id QA
Number of particles
Definition at line 1021 of file StEmbeddingQADraw.cxx.
Referenced by draw().
Bool_t StEmbeddingQADraw::drawGeantId | ( | ) | const |
Draw Reconstructed track histograms.
QA for geantid
Make sure (1) input ROOT files and (2) input geantid
pad0: MC tracks pad1: Reconstructed tracks pad2: Statistics
Draw MC tracks
Draw MC id +/- 10
Draw line at expected geantid id for MC tracks
Draw reconstructed geant id
Draw expected geant id lines for decay daughters
Definition at line 1437 of file StEmbeddingQADraw.cxx.
References getParticleName().
Referenced by drawTrack().
Bool_t StEmbeddingQADraw::drawMcTrack | ( | ) | const |
Draw all event-wise histograms.
MC track QA
Make sure (1) input ROOT files and (2) input geantid
pT vs eta
pT vs y
pT vs phi
Projections (pt, eta, y, phi)
Definition at line 1272 of file StEmbeddingQADraw.cxx.
Referenced by draw().
Bool_t StEmbeddingQADraw::drawMomentum | ( | ) | const |
pt (|eta|<2, 0.5 eta increment)
QA for momentum
Make sure (1) input ROOT files and (2) input geantid
Plot reconstructed momentum vs MC momentum (2D) (Embedding only)
Definition at line 1553 of file StEmbeddingQADraw.cxx.
References getParticleName().
Referenced by drawTrack().
Bool_t StEmbeddingQADraw::drawNHit | ( | ) | const |
Dca vs (pt, eta)
QA for Nfit distributions for each (pt, eta) slice
Make sure (1) input ROOT files and (2) input geantid
QA for NCommon hit vs NHit
Definition at line 2224 of file StEmbeddingQADraw.cxx.
References getParticleName().
Referenced by drawTrack().
Bool_t StEmbeddingQADraw::drawPhi | ( | ) | const |
Geant id.
QA for azimuthal angle (phi) distributions
Make sure (1) input ROOT files and (2) input geantid
Comparison of embedding with MC
Added comparison with real data
Definition at line 1519 of file StEmbeddingQADraw.cxx.
Referenced by drawTrack().
Bool_t StEmbeddingQADraw::drawPt | ( | ) | const |
(pseudo-)rapidity in different eta bins
QA for pt
Make sure (1) input ROOT files and (2) input geantid
Definition at line 1600 of file StEmbeddingQADraw.cxx.
References getParticleName().
Referenced by drawTrack().
Bool_t StEmbeddingQADraw::drawRapidity | ( | ) | const |
Azimuthal angle (phi) distributions.
QA for (pseudo-)rapidity
Make sure (1) input ROOT files and (2) input geantid
Pseudo-rapidity
Rapidity
Definition at line 1536 of file StEmbeddingQADraw.cxx.
Referenced by drawTrack().
Bool_t StEmbeddingQADraw::drawTrack | ( | ) | const |
Draw MC track histograms.
Track-wise QA
Make sure (1) input ROOT files and (2) input geantid
1: Geant id
2: Azimuthal angle distributions
3: (pseudo-)rapidity distributions
4: Momentum and pt
5: dE/dx
6: Global dca
7: NHit
Definition at line 1396 of file StEmbeddingQADraw.cxx.
References drawDca(), drawdEdx(), drawGeantId(), drawMomentum(), drawNHit(), drawPhi(), drawPt(), and drawRapidity().
Referenced by draw().
const Char_t * StEmbeddingQADraw::getParticleName | ( | const Int_t | geantid = -1 | ) | const |
Get geant id.
Get particle name from geant id
Get particle name
Default input geantid = -1 –> return particle name for mGeantid
Remove "/" from particle name (ex. J/Psi –> JPsi) Since particle name will be used for pdf filename, and "/" will be recognized as directory so that output will be disappeared if "/" is included in the filename Remove "()" and replace "*" to "start"
Definition at line 923 of file StEmbeddingQADraw.cxx.
References StEmbeddingQAUtilities::getParticleDefinition(), and StEmbeddingQAUtilities::instance().
Referenced by drawGeantId(), drawMomentum(), drawNHit(), drawPt(), and init().
void StEmbeddingQADraw::init | ( | ) |
Initialization.
Initialization of data members
Set maximum pt. Default is 5 GeV/c –> Draw histograms up to 5 GeV/c
Clear MC and daughter geantid array
set global ROOT styles
Make sure that we have histograms for the input geant id
Find daughter geant id from Contaminated pair histograms
Initialize canvas
Initialize main pad
Initialize PDF file
Draw # of events, input MC particle name, library and year
First page
Red (embedding) Blue and black (real)
Definition at line 259 of file StEmbeddingQADraw.cxx.
References getParticleName(), StEmbeddingQAUtilities::getPtMinCut(), StEmbeddingQAUtilities::instance(), and StEmbeddingQAUtilities::setStyle().
void StEmbeddingQADraw::setOutputDirectory | ( | const TString | name = "./" | ) |
Default is current directory.
Set output directory
Make sure that the directory exists or not
Make sure you put '/' at the end of directory name. If not, add '/'
Definition at line 434 of file StEmbeddingQADraw.cxx.