CbmRoot
|
#include <CbmRichMCbmQa.h>
Public Member Functions | |
CbmRichMCbmQa () | |
Standard constructor. | |
virtual | ~CbmRichMCbmQa () |
Standard destructor. | |
virtual InitStatus | Init () |
Inherited from FairTask. | |
virtual void | Exec (Option_t *option) |
Inherited from FairTask. | |
virtual void | Finish () |
Inherited from FairTask. | |
void | SetOutputDir (const string &dir) |
Set output directory where you want to write results (figures and json). | |
void | DrawFromFile (const string &fileName, const string &outputDir) |
Draw histogram from file. | |
Private Member Functions | |
void | InitHistograms () |
Initialize histograms. | |
void | DrawHist () |
Draw histograms. | |
vector< Double_t > | GetHistBins (Bool_t isX) |
void | DrawCircle (CbmRichRing *ring) |
void | DrawEvent () |
CbmRichMCbmQa (const CbmRichMCbmQa &) | |
Copy constructor. | |
CbmRichMCbmQa & | operator= (const CbmRichMCbmQa &) |
Assignment operator. | |
Private Attributes | |
CbmHistManager * | fHM |
Int_t | fEventNum |
string | fOutputDir |
TClonesArray * | fMCTracks |
TClonesArray * | fRichPoints |
TClonesArray * | fRichDigis |
TClonesArray * | fRichHits |
TClonesArray * | fRichRings |
TClonesArray * | fRichRingMatches |
TClonesArray * | fRefPlanePoints |
TClonesArray * | fGlobalTracks |
TClonesArray * | fTrdTracks |
TClonesArray * | fTofHits |
TClonesArray * | fTofPoints |
TClonesArray * | fTofHitMatches |
Definition at line 19 of file CbmRichMCbmQa.h.
CbmRichMCbmQa::CbmRichMCbmQa | ( | ) |
Standard constructor.
Definition at line 47 of file CbmRichMCbmQa.cxx.
|
inlinevirtual |
Standard destructor.
Definition at line 30 of file CbmRichMCbmQa.h.
|
private |
Copy constructor.
|
private |
Definition at line 661 of file CbmRichMCbmQa.cxx.
References CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), and CbmRichRing::GetRadius().
Referenced by DrawEvent().
|
private |
Definition at line 599 of file CbmRichMCbmQa.cxx.
References CbmHistManager::CreateCanvas(), DrawCircle(), DrawH2(), fEventNum, fHM, fRichHits, fRichPoints, fRichRings, CbmPixelHit::GetX(), and CbmPixelHit::GetY().
void CbmRichMCbmQa::DrawFromFile | ( | const string & | fileName, |
const string & | outputDir ) |
Draw histogram from file.
Save old global file and folder pointer to avoid messing with FairRoot
Restore old global file and folder pointer to avoid messing with FairRoot
Definition at line 683 of file CbmRichMCbmQa.cxx.
References DrawHist(), fHM, fOutputDir, CbmHistManager::ReadFromFile(), and CbmHistManager::SaveCanvasToImage().
|
private |
Draw histograms.
Definition at line 501 of file CbmRichMCbmQa.cxx.
References CbmHistManager::CreateCanvas(), DrawH1(), DrawH1andFitGauss(), DrawH2(), fHM, CbmHistManager::H1(), CbmHistManager::H2(), CbmHistManager::ScaleByPattern(), and SetDefaultDrawStyle().
Referenced by DrawFromFile().
|
virtual |
Inherited from FairTask.
Definition at line 229 of file CbmRichMCbmQa.cxx.
References fEventNum, fHM, fMCTracks, fRichHits, fRichPoints, fRichRingMatches, fRichRings, fTofHitMatches, fTofHits, fTofPoints, CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), CbmMCTrack::GetMomentum(), CbmMCTrack::GetMotherId(), CbmMCTrack::GetPdgCode(), CbmTofHit::GetR(), CbmRichRing::GetRadius(), CbmHit::GetTime(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmHistManager::H1(), CbmHistManager::H2(), and sqrt().
|
virtual |
Inherited from FairTask.
Definition at line 675 of file CbmRichMCbmQa.cxx.
References fHM, and CbmHistManager::WriteToFile().
|
private |
Return low edges of the histogram bins which matches pixel structure.
|
virtual |
Inherited from FairTask.
Definition at line 67 of file CbmRichMCbmQa.cxx.
References fMCTracks, fRefPlanePoints, fRichDigis, fRichHits, fRichPoints, fRichRingMatches, fRichRings, fTofHitMatches, fTofHits, fTofPoints, and InitHistograms().
|
private |
Initialize histograms.
Definition at line 173 of file CbmRichMCbmQa.cxx.
References CbmHistManager::Create1(), CbmHistManager::Create2(), and fHM.
Referenced by Init().
|
private |
Assignment operator.
|
inline |
Set output directory where you want to write results (figures and json).
[in] | dir | Path to the output directory. |
Definition at line 51 of file CbmRichMCbmQa.h.
References fOutputDir.
|
private |
Definition at line 94 of file CbmRichMCbmQa.h.
Referenced by DrawEvent(), and Exec().
|
private |
Definition at line 107 of file CbmRichMCbmQa.h.
|
private |
Definition at line 91 of file CbmRichMCbmQa.h.
Referenced by DrawEvent(), DrawFromFile(), DrawHist(), Exec(), Finish(), and InitHistograms().
|
private |
Definition at line 100 of file CbmRichMCbmQa.h.
|
private |
Definition at line 97 of file CbmRichMCbmQa.h.
Referenced by DrawFromFile(), and SetOutputDir().
|
private |
Definition at line 106 of file CbmRichMCbmQa.h.
Referenced by Init().
|
private |
Definition at line 102 of file CbmRichMCbmQa.h.
Referenced by Init().
|
private |
Definition at line 103 of file CbmRichMCbmQa.h.
Referenced by DrawEvent(), Exec(), and Init().
|
private |
Definition at line 101 of file CbmRichMCbmQa.h.
Referenced by DrawEvent(), Exec(), and Init().
|
private |
Definition at line 105 of file CbmRichMCbmQa.h.
|
private |
Definition at line 104 of file CbmRichMCbmQa.h.
Referenced by DrawEvent(), Exec(), and Init().
|
private |
Definition at line 111 of file CbmRichMCbmQa.h.
|
private |
Definition at line 109 of file CbmRichMCbmQa.h.
|
private |
Definition at line 110 of file CbmRichMCbmQa.h.
|
private |
Definition at line 108 of file CbmRichMCbmQa.h.