CbmRoot
CbmRichRecoTbQa Class Reference

#include <CbmRichRecoTbQa.h>

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

Public Member Functions

 CbmRichRecoTbQa ()
 Standard constructor. More...
 
virtual ~CbmRichRecoTbQa ()
 Standard destructor. More...
 
virtual InitStatus Init ()
 Inherited from FairTask. More...
 
virtual void Exec (Option_t *option)
 Inherited from FairTask. More...
 
virtual void Finish ()
 Inherited from FairTask. More...
 
void SetOutputDir (const string &dir)
 Set output directory where you want to write results (figures and json). More...
 
void DrawFromFile (const string &fileName, const string &outputDir)
 Draw histogram from file. More...
 

Private Member Functions

void InitHistograms ()
 Initialize histograms. More...
 
void DrawHist ()
 
void Process ()
 
void ProcessMc ()
 
void RingRecoEfficiency ()
 
Int_t GetNofPrimaryMcTracks (Int_t iEv)
 
Bool_t IsCherenkovPhoton (const CbmRichPoint *point, Int_t fileId, Int_t eventId)
 
Bool_t IsCherenkovPhotonFromPrimaryElectron (const CbmRichPoint *point, Int_t fileId, Int_t eventId)
 
Bool_t IsCherenkovPhotonFromSecondaryElectron (const CbmRichPoint *point, Int_t fileId, Int_t eventId)
 
Bool_t IsMcPrimaryElectron (const CbmMCTrack *mctrack)
 
Bool_t IsCherenkovPhotonFromPion (const CbmRichPoint *point, Int_t fileId, Int_t eventId)
 
Bool_t IsMcPion (const CbmMCTrack *mctrack)
 
void DrawTimeLog (const string &hMainName, Int_t nofLogEvents, bool withNoise=false)
 
 CbmRichRecoTbQa (const CbmRichRecoTbQa &)
 Copy constructor. More...
 
CbmRichRecoTbQaoperator= (const CbmRichRecoTbQa &)
 Assignment operator. More...
 

Private Attributes

CbmHistManagerfHM
 
Int_t fTimeSliceNum
 
Int_t fNofLogEvents
 
string fOutputDir
 
CbmMCDataArrayfMCTracks
 
CbmMCDataArrayfRichPoints
 
CbmMCDataArrayfStsPoints
 
CbmDigiManagerfDigiMan
 
TClonesArray * fRichHits
 
TClonesArray * fRichRings
 
TClonesArray * fRichRingMatches
 
CbmMCEventListfEventList
 
vector< pair< Int_t, Int_t > > fRecRings
 

Detailed Description

Definition at line 19 of file CbmRichRecoTbQa.h.

Constructor & Destructor Documentation

◆ CbmRichRecoTbQa() [1/2]

CbmRichRecoTbQa::CbmRichRecoTbQa ( )

Standard constructor.

Definition at line 50 of file CbmRichRecoTbQa.cxx.

◆ ~CbmRichRecoTbQa()

virtual CbmRichRecoTbQa::~CbmRichRecoTbQa ( )
inlinevirtual

Standard destructor.

Definition at line 30 of file CbmRichRecoTbQa.h.

◆ CbmRichRecoTbQa() [2/2]

CbmRichRecoTbQa::CbmRichRecoTbQa ( const CbmRichRecoTbQa )
private

Copy constructor.

Member Function Documentation

◆ DrawFromFile()

void CbmRichRecoTbQa::DrawFromFile ( const string &  fileName,
const string &  outputDir 
)

Draw histogram from file.

◆ DrawHist()

void CbmRichRecoTbQa::DrawHist ( )
private

◆ DrawTimeLog()

void CbmRichRecoTbQa::DrawTimeLog ( const string &  hMainName,
Int_t  nofLogEvents,
bool  withNoise = false 
)
private

Definition at line 737 of file CbmRichRecoTbQa.cxx.

References DrawH1(), fHM, CbmHistManager::H1(), kLinear, kLog, max(), and min().

Referenced by DrawHist().

◆ Exec()

void CbmRichRecoTbQa::Exec ( Option_t *  option)
virtual

Inherited from FairTask.

Definition at line 244 of file CbmRichRecoTbQa.cxx.

References fEventList, fTimeSliceNum, CbmMCEventList::GetNofEvents(), Process(), and RingRecoEfficiency().

◆ Finish()

void CbmRichRecoTbQa::Finish ( )
virtual

Inherited from FairTask.

Definition at line 765 of file CbmRichRecoTbQa.cxx.

References DrawHist(), fHM, fOutputDir, ProcessMc(), CbmHistManager::SaveCanvasToImage(), and CbmHistManager::WriteToFile().

◆ GetNofPrimaryMcTracks()

Int_t CbmRichRecoTbQa::GetNofPrimaryMcTracks ( Int_t  iEv)
private

◆ Init()

◆ InitHistograms()

void CbmRichRecoTbQa::InitHistograms ( )
private

Initialize histograms.

Definition at line 110 of file CbmRichRecoTbQa.cxx.

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

Referenced by Init().

◆ IsCherenkovPhoton()

Bool_t CbmRichRecoTbQa::IsCherenkovPhoton ( const CbmRichPoint point,
Int_t  fileId,
Int_t  eventId 
)
private

Definition at line 443 of file CbmRichRecoTbQa.cxx.

References fMCTracks, CbmMCDataArray::Get(), and CbmMCTrack::GetPdgCode().

Referenced by ProcessMc().

◆ IsCherenkovPhotonFromPion()

Bool_t CbmRichRecoTbQa::IsCherenkovPhotonFromPion ( const CbmRichPoint point,
Int_t  fileId,
Int_t  eventId 
)
private

◆ IsCherenkovPhotonFromPrimaryElectron()

Bool_t CbmRichRecoTbQa::IsCherenkovPhotonFromPrimaryElectron ( const CbmRichPoint point,
Int_t  fileId,
Int_t  eventId 
)
private

◆ IsCherenkovPhotonFromSecondaryElectron()

Bool_t CbmRichRecoTbQa::IsCherenkovPhotonFromSecondaryElectron ( const CbmRichPoint point,
Int_t  fileId,
Int_t  eventId 
)
private

◆ IsMcPion()

Bool_t CbmRichRecoTbQa::IsMcPion ( const CbmMCTrack mctrack)
private

Definition at line 500 of file CbmRichRecoTbQa.cxx.

References CbmMCTrack::GetPdgCode().

Referenced by IsCherenkovPhotonFromPion().

◆ IsMcPrimaryElectron()

Bool_t CbmRichRecoTbQa::IsMcPrimaryElectron ( const CbmMCTrack mctrack)
private

◆ operator=()

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

Assignment operator.

◆ Process()

◆ ProcessMc()

◆ RingRecoEfficiency()

◆ SetOutputDir()

void CbmRichRecoTbQa::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 52 of file CbmRichRecoTbQa.h.

Member Data Documentation

◆ fDigiMan

CbmDigiManager* CbmRichRecoTbQa::fDigiMan
private

Definition at line 119 of file CbmRichRecoTbQa.h.

Referenced by Init(), Process(), and RingRecoEfficiency().

◆ fEventList

CbmMCEventList* CbmRichRecoTbQa::fEventList
private

Definition at line 123 of file CbmRichRecoTbQa.h.

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

◆ fHM

CbmHistManager* CbmRichRecoTbQa::fHM
private

◆ fMCTracks

◆ fNofLogEvents

Int_t CbmRichRecoTbQa::fNofLogEvents
private

Definition at line 113 of file CbmRichRecoTbQa.h.

Referenced by DrawHist(), InitHistograms(), Process(), and ProcessMc().

◆ fOutputDir

string CbmRichRecoTbQa::fOutputDir
private

Definition at line 114 of file CbmRichRecoTbQa.h.

Referenced by Finish().

◆ fRecRings

vector<pair<Int_t, Int_t> > CbmRichRecoTbQa::fRecRings
private

Definition at line 125 of file CbmRichRecoTbQa.h.

Referenced by RingRecoEfficiency().

◆ fRichHits

TClonesArray* CbmRichRecoTbQa::fRichHits
private

Definition at line 120 of file CbmRichRecoTbQa.h.

Referenced by Init(), Process(), and RingRecoEfficiency().

◆ fRichPoints

CbmMCDataArray* CbmRichRecoTbQa::fRichPoints
private

Definition at line 117 of file CbmRichRecoTbQa.h.

Referenced by Init(), ProcessMc(), and RingRecoEfficiency().

◆ fRichRingMatches

TClonesArray* CbmRichRecoTbQa::fRichRingMatches
private

Definition at line 122 of file CbmRichRecoTbQa.h.

Referenced by Init(), Process(), and RingRecoEfficiency().

◆ fRichRings

TClonesArray* CbmRichRecoTbQa::fRichRings
private

Definition at line 121 of file CbmRichRecoTbQa.h.

Referenced by Init(), Process(), and RingRecoEfficiency().

◆ fStsPoints

CbmMCDataArray* CbmRichRecoTbQa::fStsPoints
private

Definition at line 118 of file CbmRichRecoTbQa.h.

Referenced by Init(), and ProcessMc().

◆ fTimeSliceNum

Int_t CbmRichRecoTbQa::fTimeSliceNum
private

Definition at line 111 of file CbmRichRecoTbQa.h.

Referenced by Exec().


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