CbmRoot
CbmRichMCbmAerogelAna Class Reference

#include <CbmRichMCbmAerogelAna.h>

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

Public Member Functions

 CbmRichMCbmAerogelAna ()
 Standard constructor. More...
 
virtual ~CbmRichMCbmAerogelAna ()
 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 DoDrawCanvas (bool val=true)
 
void DoWriteHistToFile (bool val=true)
 
void XOffsetHistos (Double_t offset=0.)
 

Private Member Functions

void InitHistograms ()
 Initialize histograms. More...
 
void DrawHist ()
 Draw histograms. More...
 
void RichRings ()
 
bool doToT (CbmRichHit *hit)
 
Bool_t cutRadius (CbmRichRing *ring)
 
 CbmRichMCbmAerogelAna (const CbmRichMCbmAerogelAna &)
 Copy constructor. More...
 
CbmRichMCbmAerogelAnaoperator= (const CbmRichMCbmAerogelAna &)
 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
 
string fOutputDir
 
bool fDoWriteHistToFile = true
 
bool fDoDrawCanvas = true
 

Detailed Description

Definition at line 21 of file CbmRichMCbmAerogelAna.h.

Constructor & Destructor Documentation

◆ CbmRichMCbmAerogelAna() [1/2]

CbmRichMCbmAerogelAna::CbmRichMCbmAerogelAna ( )

Standard constructor.

Definition at line 54 of file CbmRichMCbmAerogelAna.cxx.

◆ ~CbmRichMCbmAerogelAna()

virtual CbmRichMCbmAerogelAna::~CbmRichMCbmAerogelAna ( )
inlinevirtual

Standard destructor.

Definition at line 32 of file CbmRichMCbmAerogelAna.h.

◆ CbmRichMCbmAerogelAna() [2/2]

CbmRichMCbmAerogelAna::CbmRichMCbmAerogelAna ( const CbmRichMCbmAerogelAna )
private

Copy constructor.

Member Function Documentation

◆ cutRadius()

Bool_t CbmRichMCbmAerogelAna::cutRadius ( CbmRichRing ring)
private

Definition at line 584 of file CbmRichMCbmAerogelAna.cxx.

References CbmRichRing::GetRadius().

◆ DoDrawCanvas()

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

Apply restriction to full mRICH Acceptance (for Simulations)

Definition at line 65 of file CbmRichMCbmAerogelAna.h.

◆ doToT()

bool CbmRichMCbmAerogelAna::doToT ( CbmRichHit hit)
private

Definition at line 576 of file CbmRichMCbmAerogelAna.cxx.

References CbmRichHit::GetToT().

◆ DoWriteHistToFile()

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

Apply restriction to full mRICH Acceptance (for Simulations)

Definition at line 70 of file CbmRichMCbmAerogelAna.h.

◆ DrawFromFile()

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

Draw histogram from file.

Definition at line 561 of file CbmRichMCbmAerogelAna.cxx.

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

◆ DrawHist()

void CbmRichMCbmAerogelAna::DrawHist ( )
private

◆ Exec()

◆ Finish()

void CbmRichMCbmAerogelAna::Finish ( )
virtual

◆ Init()

InitStatus CbmRichMCbmAerogelAna::Init ( )
virtual

◆ InitHistograms()

void CbmRichMCbmAerogelAna::InitHistograms ( )
private

Initialize histograms.

Definition at line 114 of file CbmRichMCbmAerogelAna.cxx.

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

Referenced by Init().

◆ operator=()

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

Assignment operator.

◆ RichRings()

void CbmRichMCbmAerogelAna::RichRings ( )
private

◆ SetOutputDir()

void CbmRichMCbmAerogelAna::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 53 of file CbmRichMCbmAerogelAna.h.

◆ XOffsetHistos()

void CbmRichMCbmAerogelAna::XOffsetHistos ( Double_t  offset = 0.)
inline

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

Definition at line 76 of file CbmRichMCbmAerogelAna.h.

Member Data Documentation

◆ fCbmEvent

TClonesArray* CbmRichMCbmAerogelAna::fCbmEvent
private

Definition at line 85 of file CbmRichMCbmAerogelAna.h.

Referenced by Exec(), and Init().

◆ fDigiMan

CbmDigiManager* CbmRichMCbmAerogelAna::fDigiMan = nullptr
private

Definition at line 79 of file CbmRichMCbmAerogelAna.h.

Referenced by Exec(), and Init().

◆ fDoDrawCanvas

bool CbmRichMCbmAerogelAna::fDoDrawCanvas = true
private

Definition at line 103 of file CbmRichMCbmAerogelAna.h.

Referenced by Finish().

◆ fDoWriteHistToFile

bool CbmRichMCbmAerogelAna::fDoWriteHistToFile = true
private

Definition at line 102 of file CbmRichMCbmAerogelAna.h.

Referenced by Finish().

◆ fEventNum

Int_t CbmRichMCbmAerogelAna::fEventNum
private

Definition at line 91 of file CbmRichMCbmAerogelAna.h.

Referenced by Exec().

◆ fHM

CbmHistManager* CbmRichMCbmAerogelAna::fHM
private

Definition at line 87 of file CbmRichMCbmAerogelAna.h.

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

◆ fNofDrawnEvents

Int_t CbmRichMCbmAerogelAna::fNofDrawnEvents
private

Definition at line 97 of file CbmRichMCbmAerogelAna.h.

◆ fNofDrawnRichTofEv

Int_t CbmRichMCbmAerogelAna::fNofDrawnRichTofEv
private

Definition at line 95 of file CbmRichMCbmAerogelAna.h.

◆ fNofDrawnRings

Int_t CbmRichMCbmAerogelAna::fNofDrawnRings
private

Definition at line 93 of file CbmRichMCbmAerogelAna.h.

◆ fOutputDir

string CbmRichMCbmAerogelAna::fOutputDir
private

Definition at line 100 of file CbmRichMCbmAerogelAna.h.

Referenced by DrawFromFile(), and Finish().

◆ fRichHits

TClonesArray* CbmRichMCbmAerogelAna::fRichHits
private

Definition at line 81 of file CbmRichMCbmAerogelAna.h.

Referenced by Exec(), and Init().

◆ fRichRings

TClonesArray* CbmRichMCbmAerogelAna::fRichRings
private

Definition at line 83 of file CbmRichMCbmAerogelAna.h.

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

◆ fXOffsetHisto

Double_t CbmRichMCbmAerogelAna::fXOffsetHisto
private

Definition at line 89 of file CbmRichMCbmAerogelAna.h.

Referenced by InitHistograms().


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