CbmRoot
Loading...
Searching...
No Matches
CbmRichMCbmQa Class Reference

#include <CbmRichMCbmQa.h>

Inheritance diagram for CbmRichMCbmQa:
[legend]
Collaboration diagram for CbmRichMCbmQa:
[legend]

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.
 
CbmRichMCbmQaoperator= (const CbmRichMCbmQa &)
 Assignment operator.
 

Private Attributes

CbmHistManagerfHM
 
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
 

Detailed Description

Definition at line 19 of file CbmRichMCbmQa.h.

Constructor & Destructor Documentation

◆ CbmRichMCbmQa() [1/2]

CbmRichMCbmQa::CbmRichMCbmQa ( )

Standard constructor.

Definition at line 47 of file CbmRichMCbmQa.cxx.

◆ ~CbmRichMCbmQa()

virtual CbmRichMCbmQa::~CbmRichMCbmQa ( )
inlinevirtual

Standard destructor.

Definition at line 30 of file CbmRichMCbmQa.h.

◆ CbmRichMCbmQa() [2/2]

CbmRichMCbmQa::CbmRichMCbmQa ( const CbmRichMCbmQa & )
private

Copy constructor.

Member Function Documentation

◆ DrawCircle()

void CbmRichMCbmQa::DrawCircle ( CbmRichRing * ring)
private

◆ DrawEvent()

void CbmRichMCbmQa::DrawEvent ( )
private

◆ DrawFromFile()

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().

◆ DrawHist()

void CbmRichMCbmQa::DrawHist ( )
private

◆ Exec()

◆ Finish()

void CbmRichMCbmQa::Finish ( )
virtual

Inherited from FairTask.

Definition at line 675 of file CbmRichMCbmQa.cxx.

References fHM, and CbmHistManager::WriteToFile().

◆ GetHistBins()

vector< Double_t > CbmRichMCbmQa::GetHistBins ( Bool_t isX)
private

Return low edges of the histogram bins which matches pixel structure.

◆ Init()

InitStatus CbmRichMCbmQa::Init ( )
virtual

◆ InitHistograms()

void CbmRichMCbmQa::InitHistograms ( )
private

Initialize histograms.

Definition at line 173 of file CbmRichMCbmQa.cxx.

References CbmHistManager::Create1(), CbmHistManager::Create2(), and fHM.

Referenced by Init().

◆ operator=()

CbmRichMCbmQa & CbmRichMCbmQa::operator= ( const CbmRichMCbmQa & )
private

Assignment operator.

◆ SetOutputDir()

void CbmRichMCbmQa::SetOutputDir ( const string & dir)
inline

Set output directory where you want to write results (figures and json).

Parameters
[in]dirPath to the output directory.

Definition at line 51 of file CbmRichMCbmQa.h.

References fOutputDir.

Member Data Documentation

◆ fEventNum

Int_t CbmRichMCbmQa::fEventNum
private

Definition at line 94 of file CbmRichMCbmQa.h.

Referenced by DrawEvent(), and Exec().

◆ fGlobalTracks

TClonesArray* CbmRichMCbmQa::fGlobalTracks
private

Definition at line 107 of file CbmRichMCbmQa.h.

◆ fHM

CbmHistManager* CbmRichMCbmQa::fHM
private

Definition at line 91 of file CbmRichMCbmQa.h.

Referenced by DrawEvent(), DrawFromFile(), DrawHist(), Exec(), Finish(), and InitHistograms().

◆ fMCTracks

TClonesArray* CbmRichMCbmQa::fMCTracks
private

Definition at line 100 of file CbmRichMCbmQa.h.

Referenced by Exec(), and Init().

◆ fOutputDir

string CbmRichMCbmQa::fOutputDir
private

Definition at line 97 of file CbmRichMCbmQa.h.

Referenced by DrawFromFile(), and SetOutputDir().

◆ fRefPlanePoints

TClonesArray* CbmRichMCbmQa::fRefPlanePoints
private

Definition at line 106 of file CbmRichMCbmQa.h.

Referenced by Init().

◆ fRichDigis

TClonesArray* CbmRichMCbmQa::fRichDigis
private

Definition at line 102 of file CbmRichMCbmQa.h.

Referenced by Init().

◆ fRichHits

TClonesArray* CbmRichMCbmQa::fRichHits
private

Definition at line 103 of file CbmRichMCbmQa.h.

Referenced by DrawEvent(), Exec(), and Init().

◆ fRichPoints

TClonesArray* CbmRichMCbmQa::fRichPoints
private

Definition at line 101 of file CbmRichMCbmQa.h.

Referenced by DrawEvent(), Exec(), and Init().

◆ fRichRingMatches

TClonesArray* CbmRichMCbmQa::fRichRingMatches
private

Definition at line 105 of file CbmRichMCbmQa.h.

Referenced by Exec(), and Init().

◆ fRichRings

TClonesArray* CbmRichMCbmQa::fRichRings
private

Definition at line 104 of file CbmRichMCbmQa.h.

Referenced by DrawEvent(), Exec(), and Init().

◆ fTofHitMatches

TClonesArray* CbmRichMCbmQa::fTofHitMatches
private

Definition at line 111 of file CbmRichMCbmQa.h.

Referenced by Exec(), and Init().

◆ fTofHits

TClonesArray* CbmRichMCbmQa::fTofHits
private

Definition at line 109 of file CbmRichMCbmQa.h.

Referenced by Exec(), and Init().

◆ fTofPoints

TClonesArray* CbmRichMCbmQa::fTofPoints
private

Definition at line 110 of file CbmRichMCbmQa.h.

Referenced by Exec(), and Init().

◆ fTrdTracks

TClonesArray* CbmRichMCbmQa::fTrdTracks
private

Definition at line 108 of file CbmRichMCbmQa.h.


The documentation for this class was generated from the following files: