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

#include <CbmRichMCbmAerogelAna.h>

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

Public Member Functions

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

Private Member Functions

void InitHistograms ()
 Initialize histograms.
 
void DrawHist ()
 Draw histograms.
 
void RichRings ()
 
bool doToT (CbmRichHit *hit)
 
Bool_t cutRadius (CbmRichRing *ring)
 
 CbmRichMCbmAerogelAna (const CbmRichMCbmAerogelAna &)
 Copy constructor.
 
CbmRichMCbmAerogelAnaoperator= (const CbmRichMCbmAerogelAna &)
 Assignment operator.
 

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 25 of file CbmRichMCbmAerogelAna.h.

Constructor & Destructor Documentation

◆ CbmRichMCbmAerogelAna() [1/2]

CbmRichMCbmAerogelAna::CbmRichMCbmAerogelAna ( )

Standard constructor.

Definition at line 57 of file CbmRichMCbmAerogelAna.cxx.

◆ ~CbmRichMCbmAerogelAna()

virtual CbmRichMCbmAerogelAna::~CbmRichMCbmAerogelAna ( )
inlinevirtual

Standard destructor.

Definition at line 36 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 501 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 69 of file CbmRichMCbmAerogelAna.h.

References fDoDrawCanvas.

◆ doToT()

bool CbmRichMCbmAerogelAna::doToT ( CbmRichHit * hit)
private

Definition at line 492 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 74 of file CbmRichMCbmAerogelAna.h.

References fDoWriteHistToFile.

◆ DrawFromFile()

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

Draw histogram from file.

Save old global file and folder pointer to avoid messing with FairRoot

Restore old global file and folder pointer to avoid messing with FairRoot

Definition at line 469 of file CbmRichMCbmAerogelAna.cxx.

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

◆ DrawHist()

void CbmRichMCbmAerogelAna::DrawHist ( )
private

◆ Exec()

◆ Finish()

void CbmRichMCbmAerogelAna::Finish ( )
virtual

Inherited from FairTask.

Save old global file and folder pointer to avoid messing with FairRoot

Restore old global file and folder pointer to avoid messing with FairRoot

Definition at line 437 of file CbmRichMCbmAerogelAna.cxx.

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

◆ Init()

InitStatus CbmRichMCbmAerogelAna::Init ( )
virtual

◆ InitHistograms()

void CbmRichMCbmAerogelAna::InitHistograms ( )
private

Initialize histograms.

Definition at line 120 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 57 of file CbmRichMCbmAerogelAna.h.

References fOutputDir.

◆ XOffsetHistos()

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

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

Definition at line 80 of file CbmRichMCbmAerogelAna.h.

References fXOffsetHisto.

Member Data Documentation

◆ fCbmEvent

TClonesArray* CbmRichMCbmAerogelAna::fCbmEvent
private

Definition at line 89 of file CbmRichMCbmAerogelAna.h.

Referenced by Exec(), and Init().

◆ fDigiMan

CbmDigiManager* CbmRichMCbmAerogelAna::fDigiMan = nullptr
private

Definition at line 83 of file CbmRichMCbmAerogelAna.h.

Referenced by Exec(), and Init().

◆ fDoDrawCanvas

bool CbmRichMCbmAerogelAna::fDoDrawCanvas = true
private

Definition at line 107 of file CbmRichMCbmAerogelAna.h.

Referenced by DoDrawCanvas(), and Finish().

◆ fDoWriteHistToFile

bool CbmRichMCbmAerogelAna::fDoWriteHistToFile = true
private

Definition at line 106 of file CbmRichMCbmAerogelAna.h.

Referenced by DoWriteHistToFile(), and Finish().

◆ fEventNum

Int_t CbmRichMCbmAerogelAna::fEventNum
private

Definition at line 95 of file CbmRichMCbmAerogelAna.h.

Referenced by Exec().

◆ fHM

CbmHistManager* CbmRichMCbmAerogelAna::fHM
private

Definition at line 91 of file CbmRichMCbmAerogelAna.h.

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

◆ fNofDrawnEvents

Int_t CbmRichMCbmAerogelAna::fNofDrawnEvents
private

Definition at line 101 of file CbmRichMCbmAerogelAna.h.

◆ fNofDrawnRichTofEv

Int_t CbmRichMCbmAerogelAna::fNofDrawnRichTofEv
private

Definition at line 99 of file CbmRichMCbmAerogelAna.h.

◆ fNofDrawnRings

Int_t CbmRichMCbmAerogelAna::fNofDrawnRings
private

Definition at line 97 of file CbmRichMCbmAerogelAna.h.

◆ fOutputDir

string CbmRichMCbmAerogelAna::fOutputDir
private

Definition at line 104 of file CbmRichMCbmAerogelAna.h.

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

◆ fRichHits

TClonesArray* CbmRichMCbmAerogelAna::fRichHits
private

Definition at line 85 of file CbmRichMCbmAerogelAna.h.

Referenced by Exec(), and Init().

◆ fRichRings

TClonesArray* CbmRichMCbmAerogelAna::fRichRings
private

Definition at line 87 of file CbmRichMCbmAerogelAna.h.

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

◆ fXOffsetHisto

Double_t CbmRichMCbmAerogelAna::fXOffsetHisto
private

Definition at line 93 of file CbmRichMCbmAerogelAna.h.

Referenced by InitHistograms(), and XOffsetHistos().


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