CbmRoot
CbmRichMCbmQaRichOnly Class Reference

#include <CbmRichMCbmQaRichOnly.h>

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

Public Member Functions

 CbmRichMCbmQaRichOnly ()
 Standard constructor. More...
 
virtual ~CbmRichMCbmQaRichOnly ()
 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 DoRestrictToAcc ()
 
void DoRestrictToFullAcc (bool val=true)
 
void DoDrawCanvas (bool val=true)
 
void DoWriteHistToFile (bool val=true)
 
void XOffsetHistos (Double_t val=0.)
 
void SetMaxNofDrawnEvents (Int_t val=100)
 
void SetTriggerRichHits (Int_t val=0)
 

Private Member Functions

void InitHistograms ()
 Initialize histograms. More...
 
void DrawHist ()
 Draw histograms. More...
 
void RichRings ()
 
void DrawEvent (CbmEvent *ev, std::vector< int > &ringIndx, bool full)
 
void DrawRing (CbmRichRing *ring)
 
void DrawRing (CbmRichRing *ring, bool full)
 
bool doToT (CbmRichHit *hit)
 
void analyseRing (CbmRichRing *ring, CbmEvent *ev)
 
Bool_t cutRadius (CbmRichRing *ring)
 
void save_ICD (std::array< Double_t, 2304 > &offsets, unsigned int iteration)
 
void read_ICD (std::array< Double_t, 2304 > &offsets, unsigned int iteration)
 
 CbmRichMCbmQaRichOnly (const CbmRichMCbmQaRichOnly &)
 Copy constructor. More...
 
CbmRichMCbmQaRichOnlyoperator= (const CbmRichMCbmQaRichOnly &)
 Assignment operator. More...
 

Private Attributes

CbmDigiManagerfDigiMan = nullptr
 
TClonesArray * fRichHits
 
TClonesArray * fRichRings
 
TClonesArray * fCbmEvent
 
CbmHistManagerfHM
 
Double_t fXOffsetHisto
 
Int_t fEventNum
 
Int_t fNofDrawnRings
 
Int_t fNofDrawnRichTofEv
 
Int_t fNofDrawnEvents
 
Int_t fMaxNofDrawnEvents
 
Int_t fTriggerRichHits
 
string fOutputDir
 
bool fRestrictToAcc = false
 
bool fRestrictToFullAcc = false
 
bool fDoWriteHistToFile = true
 
bool fDoDrawCanvas = true
 
std::array< Double_t, 2304 > ICD_offset_read
 
std::array< Double_t, 2304 > ICD_offset
 
std::array< uint32_t, 2304 > ICD_offset_cnt
 
CbmRichMCbmSEDisplayfSeDisplay = nullptr
 

Detailed Description

Definition at line 24 of file CbmRichMCbmQaRichOnly.h.

Constructor & Destructor Documentation

◆ CbmRichMCbmQaRichOnly() [1/2]

CbmRichMCbmQaRichOnly::CbmRichMCbmQaRichOnly ( )

Standard constructor.

Definition at line 66 of file CbmRichMCbmQaRichOnly.cxx.

◆ ~CbmRichMCbmQaRichOnly()

virtual CbmRichMCbmQaRichOnly::~CbmRichMCbmQaRichOnly ( )
inlinevirtual

Standard destructor.

Definition at line 35 of file CbmRichMCbmQaRichOnly.h.

◆ CbmRichMCbmQaRichOnly() [2/2]

CbmRichMCbmQaRichOnly::CbmRichMCbmQaRichOnly ( const CbmRichMCbmQaRichOnly )
private

Copy constructor.

Member Function Documentation

◆ analyseRing()

◆ cutRadius()

Bool_t CbmRichMCbmQaRichOnly::cutRadius ( CbmRichRing ring)
private

Definition at line 846 of file CbmRichMCbmQaRichOnly.cxx.

References CbmRichRing::GetRadius().

◆ DoDrawCanvas()

void CbmRichMCbmQaRichOnly::DoDrawCanvas ( bool  val = true)
inline

Apply restriction to full mRICH Acceptance (for Simulations)

Definition at line 79 of file CbmRichMCbmQaRichOnly.h.

◆ DoRestrictToAcc()

void CbmRichMCbmQaRichOnly::DoRestrictToAcc ( )
inline

Apply restriction to current mRICH Acceptance (for Simulations)

Definition at line 67 of file CbmRichMCbmQaRichOnly.h.

◆ DoRestrictToFullAcc()

void CbmRichMCbmQaRichOnly::DoRestrictToFullAcc ( bool  val = true)
inline

Apply restriction to full mRICH Acceptance (for Simulations)

Definition at line 73 of file CbmRichMCbmQaRichOnly.h.

◆ doToT()

bool CbmRichMCbmQaRichOnly::doToT ( CbmRichHit hit)
private

Definition at line 747 of file CbmRichMCbmQaRichOnly.cxx.

References CbmRichHit::GetToT().

Referenced by DrawRing().

◆ DoWriteHistToFile()

void CbmRichMCbmQaRichOnly::DoWriteHistToFile ( bool  val = true)
inline

Apply restriction to full mRICH Acceptance (for Simulations)

Definition at line 84 of file CbmRichMCbmQaRichOnly.h.

◆ DrawEvent()

void CbmRichMCbmQaRichOnly::DrawEvent ( CbmEvent ev,
std::vector< int > &  ringIndx,
bool  full 
)
private

◆ DrawFromFile()

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

Draw histogram from file.

Definition at line 733 of file CbmRichMCbmQaRichOnly.cxx.

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

◆ DrawHist()

void CbmRichMCbmQaRichOnly::DrawHist ( )
private

◆ DrawRing() [1/2]

void CbmRichMCbmQaRichOnly::DrawRing ( CbmRichRing ring)
inlineprivate

Definition at line 156 of file CbmRichMCbmQaRichOnly.h.

References DrawRing().

Referenced by DrawRing().

◆ DrawRing() [2/2]

◆ Exec()

◆ Finish()

void CbmRichMCbmQaRichOnly::Finish ( )
virtual

◆ Init()

◆ InitHistograms()

void CbmRichMCbmQaRichOnly::InitHistograms ( )
private

Initialize histograms.

Definition at line 132 of file CbmRichMCbmQaRichOnly.cxx.

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

Referenced by Init().

◆ operator=()

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

Assignment operator.

◆ read_ICD()

void CbmRichMCbmQaRichOnly::read_ICD ( std::array< Double_t, 2304 > &  offsets,
unsigned int  iteration 
)
private

Definition at line 869 of file CbmRichMCbmQaRichOnly.cxx.

Referenced by Init().

◆ RichRings()

◆ save_ICD()

void CbmRichMCbmQaRichOnly::save_ICD ( std::array< Double_t, 2304 > &  offsets,
unsigned int  iteration 
)
private

Definition at line 852 of file CbmRichMCbmQaRichOnly.cxx.

References i.

Referenced by Finish().

◆ SetMaxNofDrawnEvents()

void CbmRichMCbmQaRichOnly::SetMaxNofDrawnEvents ( Int_t  val = 100)
inline

Limit of Single Event Displays that should be drawn

Definition at line 94 of file CbmRichMCbmQaRichOnly.h.

◆ SetOutputDir()

void CbmRichMCbmQaRichOnly::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 CbmRichMCbmQaRichOnly.h.

◆ SetTriggerRichHits()

void CbmRichMCbmQaRichOnly::SetTriggerRichHits ( Int_t  val = 0)
inline

Set an trigger on the RICH Hits.

Definition at line 99 of file CbmRichMCbmQaRichOnly.h.

◆ XOffsetHistos()

void CbmRichMCbmQaRichOnly::XOffsetHistos ( Double_t  val = 0.)
inline

Move X-Position of mRICH in Histograms (e.g. for Geometry changes)

Definition at line 89 of file CbmRichMCbmQaRichOnly.h.

Member Data Documentation

◆ fCbmEvent

TClonesArray* CbmRichMCbmQaRichOnly::fCbmEvent
private

Definition at line 108 of file CbmRichMCbmQaRichOnly.h.

Referenced by Exec(), and Init().

◆ fDigiMan

CbmDigiManager* CbmRichMCbmQaRichOnly::fDigiMan = nullptr
private

Definition at line 102 of file CbmRichMCbmQaRichOnly.h.

Referenced by Exec(), and Init().

◆ fDoDrawCanvas

bool CbmRichMCbmQaRichOnly::fDoDrawCanvas = true
private

Definition at line 133 of file CbmRichMCbmQaRichOnly.h.

Referenced by Finish().

◆ fDoWriteHistToFile

bool CbmRichMCbmQaRichOnly::fDoWriteHistToFile = true
private

Definition at line 132 of file CbmRichMCbmQaRichOnly.h.

Referenced by Finish().

◆ fEventNum

Int_t CbmRichMCbmQaRichOnly::fEventNum
private

Definition at line 114 of file CbmRichMCbmQaRichOnly.h.

Referenced by Exec().

◆ fHM

CbmHistManager* CbmRichMCbmQaRichOnly::fHM
private

◆ fMaxNofDrawnEvents

Int_t CbmRichMCbmQaRichOnly::fMaxNofDrawnEvents
private

Definition at line 122 of file CbmRichMCbmQaRichOnly.h.

Referenced by Init().

◆ fNofDrawnEvents

Int_t CbmRichMCbmQaRichOnly::fNofDrawnEvents
private

Definition at line 120 of file CbmRichMCbmQaRichOnly.h.

◆ fNofDrawnRichTofEv

Int_t CbmRichMCbmQaRichOnly::fNofDrawnRichTofEv
private

Definition at line 118 of file CbmRichMCbmQaRichOnly.h.

◆ fNofDrawnRings

Int_t CbmRichMCbmQaRichOnly::fNofDrawnRings
private

Definition at line 116 of file CbmRichMCbmQaRichOnly.h.

Referenced by DrawRing().

◆ fOutputDir

string CbmRichMCbmQaRichOnly::fOutputDir
private

Definition at line 127 of file CbmRichMCbmQaRichOnly.h.

Referenced by DrawFromFile(), Finish(), and Init().

◆ fRestrictToAcc

bool CbmRichMCbmQaRichOnly::fRestrictToAcc = false
private

Definition at line 129 of file CbmRichMCbmQaRichOnly.h.

◆ fRestrictToFullAcc

bool CbmRichMCbmQaRichOnly::fRestrictToFullAcc = false
private

Definition at line 130 of file CbmRichMCbmQaRichOnly.h.

◆ fRichHits

TClonesArray* CbmRichMCbmQaRichOnly::fRichHits
private

Definition at line 104 of file CbmRichMCbmQaRichOnly.h.

Referenced by analyseRing(), DrawRing(), Exec(), Init(), and RichRings().

◆ fRichRings

TClonesArray* CbmRichMCbmQaRichOnly::fRichRings
private

Definition at line 106 of file CbmRichMCbmQaRichOnly.h.

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

◆ fSeDisplay

CbmRichMCbmSEDisplay* CbmRichMCbmQaRichOnly::fSeDisplay = nullptr
private

Definition at line 139 of file CbmRichMCbmQaRichOnly.h.

Referenced by Exec(), and Init().

◆ fTriggerRichHits

Int_t CbmRichMCbmQaRichOnly::fTriggerRichHits
private

Definition at line 124 of file CbmRichMCbmQaRichOnly.h.

Referenced by Exec().

◆ fXOffsetHisto

Double_t CbmRichMCbmQaRichOnly::fXOffsetHisto
private

Definition at line 112 of file CbmRichMCbmQaRichOnly.h.

Referenced by InitHistograms().

◆ ICD_offset

std::array<Double_t, 2304> CbmRichMCbmQaRichOnly::ICD_offset
private

Definition at line 136 of file CbmRichMCbmQaRichOnly.h.

Referenced by Finish(), Init(), and RichRings().

◆ ICD_offset_cnt

std::array<uint32_t, 2304> CbmRichMCbmQaRichOnly::ICD_offset_cnt
private

Definition at line 137 of file CbmRichMCbmQaRichOnly.h.

Referenced by Finish(), Init(), and RichRings().

◆ ICD_offset_read

std::array<Double_t, 2304> CbmRichMCbmQaRichOnly::ICD_offset_read
private

Definition at line 135 of file CbmRichMCbmQaRichOnly.h.

Referenced by Finish(), Init(), and RichRings().


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