CbmRoot
CbmRichRecoQa Class Reference

#include <CbmRichRecoQa.h>

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

Public Member Functions

 CbmRichRecoQa ()
 Standard constructor. More...
 
virtual ~CbmRichRecoQa ()
 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...
 
void SetCorrection (string s)
 
 CbmRichRecoQa ()
 Standard constructor. More...
 
virtual ~CbmRichRecoQa ()
 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...
 

Static Public Member Functions

static Bool_t IsMcPrimaryElectron (const CbmMCTrack *mctrack)
 
static Bool_t IsMcPion (const CbmMCTrack *mctrack)
 
static Bool_t IsMcPrimaryElectron (const CbmMCTrack *mctrack)
 
static Bool_t IsMcPion (const CbmMCTrack *mctrack)
 

Private Member Functions

void InitHistograms ()
 Initialize histograms. More...
 
void FillRichRingNofHits ()
 Fill map mcTrackId -> nof RICH hits. More...
 
void FillRingTrackDistance ()
 Fill histogramms related to ring track distance. More...
 
void RingTrackMismatchSource ()
 Fill histograms related to study of the source of ring-track mismatch. More...
 
void DrawHist ()
 Draw histograms. More...
 
string GetMeanRmsOverflowString (TH1 *h, Bool_t withOverflow=true)
 Return string with mean, RMS and overflow percent for input TH1. More...
 
void DrawRingTrackDistHistWithSuffix (const string &suffix)
 Draw histograms related to ring-track distance for pions or electrons (+/-). More...
 
void DrawRingTrackDistHistWithSuffixPmtHalf (const string &suffix)
 
bool WasRingFound (Int_t mcTrackId)
 
bool WasRingMatched (Int_t mcTrackId)
 
bool WasRichProjectionMatched (Int_t stsTrackId)
 
bool HasRichProjection (Int_t stsTrackId)
 
 CbmRichRecoQa (const CbmRichRecoQa &)
 Copy constructor. More...
 
CbmRichRecoQaoperator= (const CbmRichRecoQa &)
 Assignment operator. More...
 
void InitHistograms ()
 Initialize histograms. More...
 
void FillRichRingNofHits ()
 Fill map mcTrackId -> nof RICH hits. More...
 
void FillRingTrackDistance ()
 Fill histogramms related to ring track distance. More...
 
void RingTrackMismatchSource ()
 Fill histograms related to study of the source of ring-track mismatch. More...
 
void DrawHist ()
 Draw histograms. More...
 
string GetMeanRmsOverflowString (TH1 *h, Bool_t withOverflow=true)
 Return string with mean, RMS and overflow percent for input TH1. More...
 
void DrawRingTrackDistHistWithSuffix (const string &suffix)
 Draw histograms related to ring-track distance for pions or electrons (+/-). More...
 
bool WasRingFound (Int_t mcTrackId)
 
bool WasRingMatched (Int_t mcTrackId)
 
bool WasRichProjectionMatched (Int_t stsTrackId)
 
bool HasRichProjection (Int_t stsTrackId)
 
 CbmRichRecoQa (const CbmRichRecoQa &)
 Copy constructor. More...
 
CbmRichRecoQaoperator= (const CbmRichRecoQa &)
 Assignment operator. More...
 

Private Attributes

CbmHistManagerfHM
 
Int_t fEventNum
 
string fOutputDir
 
TClonesArray * fMCTracks
 
TClonesArray * fRichPoints
 
TClonesArray * fRichDigis
 
TClonesArray * fRichHits
 
TClonesArray * fRichRings
 
TClonesArray * fRichRingMatches
 
TClonesArray * fGlobalTracks
 
TClonesArray * fStsTracks
 
TClonesArray * fStsTrackMatches
 
TClonesArray * fRichProjections
 
std::map< Int_t, Int_t > fNofHitsInRingMap
 
string fCorrection
 
vector< TCanvas * > fCanvas
 
CbmDigiManagerfDigiMan
 

Detailed Description

Definition at line 21 of file alignment/CbmRichRecoQa.h.

Constructor & Destructor Documentation

◆ CbmRichRecoQa() [1/4]

CbmRichRecoQa::CbmRichRecoQa ( )

Standard constructor.

Definition at line 40 of file alignment/CbmRichRecoQa.cxx.

◆ ~CbmRichRecoQa() [1/2]

virtual CbmRichRecoQa::~CbmRichRecoQa ( )
inlinevirtual

Standard destructor.

Definition at line 32 of file alignment/CbmRichRecoQa.h.

◆ CbmRichRecoQa() [2/4]

CbmRichRecoQa::CbmRichRecoQa ( const CbmRichRecoQa )
private

Copy constructor.

◆ CbmRichRecoQa() [3/4]

CbmRichRecoQa::CbmRichRecoQa ( )

Standard constructor.

◆ ~CbmRichRecoQa() [2/2]

virtual CbmRichRecoQa::~CbmRichRecoQa ( )
inlinevirtual

Standard destructor.

Definition at line 33 of file qa/CbmRichRecoQa.h.

◆ CbmRichRecoQa() [4/4]

CbmRichRecoQa::CbmRichRecoQa ( const CbmRichRecoQa )
private

Copy constructor.

Member Function Documentation

◆ DrawFromFile() [1/2]

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

Draw histogram from file.

Definition at line 1222 of file alignment/CbmRichRecoQa.cxx.

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

◆ DrawFromFile() [2/2]

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

Draw histogram from file.

◆ DrawHist() [1/2]

void CbmRichRecoQa::DrawHist ( )
private

Draw histograms.

◆ DrawHist() [2/2]

◆ DrawRingTrackDistHistWithSuffix() [1/2]

void CbmRichRecoQa::DrawRingTrackDistHistWithSuffix ( const string &  suffix)
private

Draw histograms related to ring-track distance for pions or electrons (+/-).

◆ DrawRingTrackDistHistWithSuffix() [2/2]

void CbmRichRecoQa::DrawRingTrackDistHistWithSuffix ( const string &  suffix)
private

Draw histograms related to ring-track distance for pions or electrons (+/-).

Definition at line 969 of file alignment/CbmRichRecoQa.cxx.

References CbmHistManager::CreateCanvas(), DrawH1(), DrawH2WithProfile(), DrawH3Profile(), DrawTextOnPad(), fHM, GetMeanRmsOverflowString(), CbmHistManager::H2(), and CbmHistManager::H3().

Referenced by DrawHist().

◆ DrawRingTrackDistHistWithSuffixPmtHalf()

void CbmRichRecoQa::DrawRingTrackDistHistWithSuffixPmtHalf ( const string &  suffix)
private

◆ Exec() [1/2]

void CbmRichRecoQa::Exec ( Option_t *  option)
virtual

Inherited from FairTask.

Definition at line 441 of file alignment/CbmRichRecoQa.cxx.

References fEventNum, FillRichRingNofHits(), FillRingTrackDistance(), and RingTrackMismatchSource().

◆ Exec() [2/2]

virtual void CbmRichRecoQa::Exec ( Option_t *  option)
virtual

Inherited from FairTask.

◆ FillRichRingNofHits() [1/2]

void CbmRichRecoQa::FillRichRingNofHits ( )
private

Fill map mcTrackId -> nof RICH hits.

◆ FillRichRingNofHits() [2/2]

void CbmRichRecoQa::FillRichRingNofHits ( )
private

Fill map mcTrackId -> nof RICH hits.

Definition at line 450 of file alignment/CbmRichRecoQa.cxx.

References fMCTracks, fNofHitsInRingMap, fRichDigis, fRichHits, fRichPoints, CbmMatchRecoToMC::GetMcTrackMotherIdsForRichHit(), and i.

Referenced by Exec().

◆ FillRingTrackDistance() [1/2]

void CbmRichRecoQa::FillRingTrackDistance ( )
private

Fill histogramms related to ring track distance.

◆ FillRingTrackDistance() [2/2]

◆ Finish() [1/2]

void CbmRichRecoQa::Finish ( )
virtual

◆ Finish() [2/2]

virtual void CbmRichRecoQa::Finish ( )
virtual

Inherited from FairTask.

◆ GetMeanRmsOverflowString() [1/2]

string CbmRichRecoQa::GetMeanRmsOverflowString ( TH1 *  h,
Bool_t  withOverflow = true 
)
private

Return string with mean, RMS and overflow percent for input TH1.

◆ GetMeanRmsOverflowString() [2/2]

string CbmRichRecoQa::GetMeanRmsOverflowString ( TH1 *  h,
Bool_t  withOverflow = true 
)
private

Return string with mean, RMS and overflow percent for input TH1.

Definition at line 955 of file alignment/CbmRichRecoQa.cxx.

Referenced by DrawHist(), and DrawRingTrackDistHistWithSuffix().

◆ HasRichProjection() [1/2]

bool CbmRichRecoQa::HasRichProjection ( Int_t  stsTrackId)
private

◆ HasRichProjection() [2/2]

bool CbmRichRecoQa::HasRichProjection ( Int_t  stsTrackId)
private

Definition at line 612 of file alignment/CbmRichRecoQa.cxx.

References fRichProjections.

Referenced by RingTrackMismatchSource().

◆ Init() [1/2]

InitStatus CbmRichRecoQa::Init ( )
virtual

◆ Init() [2/2]

virtual InitStatus CbmRichRecoQa::Init ( )
virtual

Inherited from FairTask.

◆ InitHistograms() [1/2]

void CbmRichRecoQa::InitHistograms ( )
private

Initialize histograms.

◆ InitHistograms() [2/2]

void CbmRichRecoQa::InitHistograms ( )
private

Initialize histograms.

Definition at line 115 of file alignment/CbmRichRecoQa.cxx.

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

Referenced by Init().

◆ IsMcPion() [1/2]

bool CbmRichRecoQa::IsMcPion ( const CbmMCTrack mctrack)
static

Definition at line 1200 of file alignment/CbmRichRecoQa.cxx.

References CbmMCTrack::GetPdgCode().

Referenced by FillRingTrackDistance().

◆ IsMcPion() [2/2]

static Bool_t CbmRichRecoQa::IsMcPion ( const CbmMCTrack mctrack)
static

◆ IsMcPrimaryElectron() [1/2]

bool CbmRichRecoQa::IsMcPrimaryElectron ( const CbmMCTrack mctrack)
static

◆ IsMcPrimaryElectron() [2/2]

static Bool_t CbmRichRecoQa::IsMcPrimaryElectron ( const CbmMCTrack mctrack)
static

◆ operator=() [1/2]

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

Assignment operator.

◆ operator=() [2/2]

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

Assignment operator.

◆ RingTrackMismatchSource() [1/2]

void CbmRichRecoQa::RingTrackMismatchSource ( )
private

Fill histograms related to study of the source of ring-track mismatch.

◆ RingTrackMismatchSource() [2/2]

◆ SetCorrection()

void CbmRichRecoQa::SetCorrection ( string  s)
inline

Definition at line 64 of file alignment/CbmRichRecoQa.h.

◆ SetOutputDir() [1/2]

void CbmRichRecoQa::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 57 of file alignment/CbmRichRecoQa.h.

◆ SetOutputDir() [2/2]

void CbmRichRecoQa::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 58 of file qa/CbmRichRecoQa.h.

◆ WasRichProjectionMatched() [1/2]

bool CbmRichRecoQa::WasRichProjectionMatched ( Int_t  stsTrackId)
private

◆ WasRichProjectionMatched() [2/2]

bool CbmRichRecoQa::WasRichProjectionMatched ( Int_t  stsTrackId)
private

◆ WasRingFound() [1/2]

bool CbmRichRecoQa::WasRingFound ( Int_t  mcTrackId)
private

◆ WasRingFound() [2/2]

bool CbmRichRecoQa::WasRingFound ( Int_t  mcTrackId)
private

◆ WasRingMatched() [1/2]

bool CbmRichRecoQa::WasRingMatched ( Int_t  mcTrackId)
private

◆ WasRingMatched() [2/2]

bool CbmRichRecoQa::WasRingMatched ( Int_t  mcTrackId)
private

Member Data Documentation

◆ fCanvas

vector< TCanvas * > CbmRichRecoQa::fCanvas
private

Definition at line 158 of file alignment/CbmRichRecoQa.h.

◆ fCorrection

string CbmRichRecoQa::fCorrection
private

Definition at line 156 of file alignment/CbmRichRecoQa.h.

Referenced by Finish().

◆ fDigiMan

CbmDigiManager* CbmRichRecoQa::fDigiMan
private

Definition at line 148 of file qa/CbmRichRecoQa.h.

◆ fEventNum

Int_t CbmRichRecoQa::fEventNum
private

Definition at line 138 of file alignment/CbmRichRecoQa.h.

Referenced by Exec().

◆ fGlobalTracks

TClonesArray * CbmRichRecoQa::fGlobalTracks
private

◆ fHM

◆ fMCTracks

TClonesArray * CbmRichRecoQa::fMCTracks
private

◆ fNofHitsInRingMap

std::map< Int_t, Int_t > CbmRichRecoQa::fNofHitsInRingMap
private

Definition at line 154 of file alignment/CbmRichRecoQa.h.

Referenced by FillRichRingNofHits(), and RingTrackMismatchSource().

◆ fOutputDir

string CbmRichRecoQa::fOutputDir
private

Definition at line 140 of file alignment/CbmRichRecoQa.h.

Referenced by DrawFromFile(), and Finish().

◆ fRichDigis

TClonesArray* CbmRichRecoQa::fRichDigis
private

Definition at line 144 of file alignment/CbmRichRecoQa.h.

Referenced by FillRichRingNofHits(), and Init().

◆ fRichHits

TClonesArray * CbmRichRecoQa::fRichHits
private

Definition at line 145 of file alignment/CbmRichRecoQa.h.

Referenced by FillRichRingNofHits(), and Init().

◆ fRichPoints

TClonesArray * CbmRichRecoQa::fRichPoints
private

Definition at line 143 of file alignment/CbmRichRecoQa.h.

Referenced by FillRichRingNofHits(), and Init().

◆ fRichProjections

TClonesArray * CbmRichRecoQa::fRichProjections
private

Definition at line 151 of file alignment/CbmRichRecoQa.h.

Referenced by HasRichProjection(), and Init().

◆ fRichRingMatches

TClonesArray * CbmRichRecoQa::fRichRingMatches
private

◆ fRichRings

TClonesArray * CbmRichRecoQa::fRichRings
private

◆ fStsTrackMatches

TClonesArray * CbmRichRecoQa::fStsTrackMatches
private

Definition at line 150 of file alignment/CbmRichRecoQa.h.

Referenced by FillRingTrackDistance(), Init(), and RingTrackMismatchSource().

◆ fStsTracks

TClonesArray * CbmRichRecoQa::fStsTracks
private

Definition at line 149 of file alignment/CbmRichRecoQa.h.

Referenced by Init().


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