StRoot
1
|
Public Member Functions | |
StEmbeddingQA () | |
Default constructor (default argument is 2007, P08ic) More... | |
StEmbeddingQA (const Int_t year, const TString production, const Bool_t isSimulation=kTRUE) | |
Specify year, production (isSimulation=kTRUE –> do embedding QA) More... | |
virtual | ~StEmbeddingQA () |
Destructor. | |
void | init () |
Bool_t | book (const TString outputFileName="") |
Initialization. More... | |
Bool_t | make (const TString inputFileName, const Bool_t isSimulation=kTRUE) |
Either fillEmbedding or fillRealData according to the isSimulation flag. More... | |
Bool_t | run (const TString inputFileList) |
Either RunRealData or RunEmbedding according to the kIsSimulation flag. More... | |
Bool_t | runRealData (const TString inputFileList) |
Analyzer real data. More... | |
Bool_t | runEmbedding (const TString inputFileList) |
Analyzer embedding data. More... | |
Bool_t | end () const |
Close output file. More... | |
void | setZVertexCut (const Float_t vz) |
void | setRefMultMinCut (const Int_t refMultMin) |
void | setRefMultMaxCut (const Int_t refMultMax) |
void | addTriggerIdCut (const UInt_t id) |
void | setRapidityCut (const Float_t ycut) |
void | setPtMax (Float_t ptmax) |
Set Maximum Range of pT histograms; binning = 10*ptmax. | |
Definition at line 77 of file StEmbeddingQA.h.
StEmbeddingQA::StEmbeddingQA | ( | ) |
Default constructor (default argument is 2007, P08ic)
Default constructor Default year, production are 2007 and P08ic, and default mIsSimulation flag is kTRUE
Definition at line 114 of file StEmbeddingQA.cxx.
StEmbeddingQA::StEmbeddingQA | ( | const Int_t | year, |
const TString | production, | ||
const Bool_t | isSimulation = kTRUE |
||
) |
Specify year, production (isSimulation=kTRUE –> do embedding QA)
Define year, production from the input arguments
Definition at line 124 of file StEmbeddingQA.cxx.
References init().
void StEmbeddingQA::addTriggerIdCut | ( | const UInt_t | id | ) |
Add trigger id cut (default is no trigger id selections). Multiple trigger can be added Moved to StEmbeddingQAUtilities but keep the function for backward compatibility
Add trigger id in the array (NOTE: will be used for real data only)
Definition at line 245 of file StEmbeddingQA.cxx.
References StEmbeddingQAUtilities::instance().
Bool_t StEmbeddingQA::book | ( | const TString | outputFileName = "" | ) |
Initialization.
Book histograms Default output is 'ana_{type}_{year}_{production}_{particleId}.root' if you don't put any words in the argument (i.e. whitespace) {type} is either embedding or real
Book event-wise histograms, and geantid histogram
Set default file name if output filename is blank Output filename will be qa_{data}_{year}_{production}.root where data is 'embedding' or 'real'
Open output file
NOTE: Initialize only event-wise histograms at this point. Track-wise histograms will be defined for the particles found in either MC or reconstructed tracks in expandHistograms()
Definition at line 292 of file StEmbeddingQA.cxx.
References StEmbeddingQAUtilities::getCategoryTitle(), StEmbeddingQAUtilities::instance(), kStOk, and StEmbeddingQAUtilities::setStyle().
Bool_t StEmbeddingQA::end | ( | ) | const |
Close output file.
Close output ROOT file
Definition at line 689 of file StEmbeddingQA.cxx.
References kStOk.
void StEmbeddingQA::init | ( | ) |
Initialization of data members
Clear all histograms
Definition at line 189 of file StEmbeddingQA.cxx.
Referenced by StEmbeddingQA().
Bool_t StEmbeddingQA::make | ( | const TString | inputFileName, |
const Bool_t | isSimulation = kTRUE |
||
) |
Either fillEmbedding or fillRealData according to the isSimulation flag.
Fill histograms for either embedding or real data
Check output file has already opened. If not, do not fill output histograms.
Fill embedding outputs from minimc tree
Fill real data outputs from MuDST
Definition at line 398 of file StEmbeddingQA.cxx.
Referenced by runEmbedding(), and runRealData().
Bool_t StEmbeddingQA::run | ( | const TString | inputFileList | ) |
Either RunRealData or RunEmbedding according to the kIsSimulation flag.
Read either muDst or minimc file list and fill histograms
Definition at line 668 of file StEmbeddingQA.cxx.
References StEmbeddingQAUtilities::instance(), StEmbeddingQAUtilities::PrintCuts(), runEmbedding(), and runRealData().
Bool_t StEmbeddingQA::runEmbedding | ( | const TString | inputFileList | ) |
Analyzer embedding data.
Read input minimc list and fill histograms
Fill embedding outputs
Definition at line 646 of file StEmbeddingQA.cxx.
Referenced by run().
Bool_t StEmbeddingQA::runRealData | ( | const TString | inputFileList | ) |
Analyzer real data.
Read input muDst file list and fill histograms
Delete StMuDstMaker if it has been defined before
Define histograms for electrons, pions, kaons and protons for the real data.
Definition at line 604 of file StEmbeddingQA.cxx.
References StEmbeddingQAUtilities::instance(), kStOk, and make().
Referenced by run().
void StEmbeddingQA::setRapidityCut | ( | const Float_t | ycut | ) |
Set rapidity cut (default is |y|<10, i.e. no rapidity cut) Moved to StEmbeddingQAUtilities but keep the function for backward compatibility
Set rapidity cut
Definition at line 253 of file StEmbeddingQA.cxx.
References StEmbeddingQAUtilities::instance().
void StEmbeddingQA::setZVertexCut | ( | const Float_t | vz | ) |
set z-vertex cut (default is |vz|<30cm unless otherwise specified) Moved to StEmbeddingQAUtilities but keep the function for backward compatibility
Definition at line 239 of file StEmbeddingQA.cxx.
References StEmbeddingQAUtilities::instance().