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

#include <CbmRichRecoTbQa.h>

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

Public Member Functions

 CbmRichRecoTbQa ()
 Standard constructor.
 
virtual ~CbmRichRecoTbQa ()
 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 ()
 
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.
 
CbmRichRecoTbQaoperator= (const CbmRichRecoTbQa &)
 Assignment operator.
 

Private Attributes

CbmHistManagerfHM
 
Int_t fTimeSliceNum
 
Int_t fNofLogEvents
 
string fOutputDir
 
CbmMCDataArrayfMCTracks
 
CbmMCDataArrayfRichPoints
 
CbmMCDataArrayfStsPoints
 
CbmDigiManagerfDigiMan
 
TClonesArray * fRichHits
 
TClonesArray * fRichRings
 
TClonesArray * fRichRingMatches
 
CbmMCEventListfEventList
 
vector< CbmLinkfRecRings
 

Detailed Description

Definition at line 23 of file CbmRichRecoTbQa.h.

Constructor & Destructor Documentation

◆ CbmRichRecoTbQa() [1/2]

CbmRichRecoTbQa::CbmRichRecoTbQa ( )

Standard constructor.

Definition at line 52 of file CbmRichRecoTbQa.cxx.

◆ ~CbmRichRecoTbQa()

virtual CbmRichRecoTbQa::~CbmRichRecoTbQa ( )
inlinevirtual

Standard destructor.

Definition at line 34 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 590 of file CbmRichRecoTbQa.cxx.

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

Referenced by DrawHist().

◆ Exec()

void CbmRichRecoTbQa::Exec ( Option_t * option)
virtual

Inherited from FairTask.

Definition at line 178 of file CbmRichRecoTbQa.cxx.

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

◆ Finish()

void CbmRichRecoTbQa::Finish ( )
virtual

Inherited from FairTask.

Definition at line 614 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 116 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 372 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 421 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 56 of file CbmRichRecoTbQa.h.

References fOutputDir.

Member Data Documentation

◆ fDigiMan

CbmDigiManager* CbmRichRecoTbQa::fDigiMan
private

Definition at line 114 of file CbmRichRecoTbQa.h.

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

◆ fEventList

CbmMCEventList* CbmRichRecoTbQa::fEventList
private

Definition at line 118 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 108 of file CbmRichRecoTbQa.h.

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

◆ fOutputDir

string CbmRichRecoTbQa::fOutputDir
private

Definition at line 109 of file CbmRichRecoTbQa.h.

Referenced by Finish(), and SetOutputDir().

◆ fRecRings

vector<CbmLink> CbmRichRecoTbQa::fRecRings
private

Definition at line 120 of file CbmRichRecoTbQa.h.

Referenced by RingRecoEfficiency().

◆ fRichHits

TClonesArray* CbmRichRecoTbQa::fRichHits
private

Definition at line 115 of file CbmRichRecoTbQa.h.

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

◆ fRichPoints

CbmMCDataArray* CbmRichRecoTbQa::fRichPoints
private

Definition at line 112 of file CbmRichRecoTbQa.h.

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

◆ fRichRingMatches

TClonesArray* CbmRichRecoTbQa::fRichRingMatches
private

Definition at line 117 of file CbmRichRecoTbQa.h.

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

◆ fRichRings

TClonesArray* CbmRichRecoTbQa::fRichRings
private

Definition at line 116 of file CbmRichRecoTbQa.h.

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

◆ fStsPoints

CbmMCDataArray* CbmRichRecoTbQa::fStsPoints
private

Definition at line 113 of file CbmRichRecoTbQa.h.

Referenced by Init(), and ProcessMc().

◆ fTimeSliceNum

Int_t CbmRichRecoTbQa::fTimeSliceNum
private

Definition at line 106 of file CbmRichRecoTbQa.h.

Referenced by Exec().


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