CbmRoot
CbmRichMCbmHitProducer Class Reference

#include <CbmRichMCbmHitProducer.h>

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

Public Member Functions

 CbmRichMCbmHitProducer ()
 Default constructor. More...
 
virtual ~CbmRichMCbmHitProducer ()
 Destructor. More...
 
virtual void SetParContainers ()
 Inherited from FairTask. 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 ProcessData (CbmEvent *event)
 
void ProcessDigi (CbmEvent *event, Int_t digiIndex)
 
void SetMappingFile (const std::string &mappingFile)
 
void setToTLimits (double low, double high)
 
void setToTLimitLow (double low)
 
void setToTLimitHigh (double high)
 
void applyToTCut ()
 
void DoRestrictToAcc (bool val=true)
 
void DoRestrictToFullAcc (bool val=true)
 

Private Member Functions

void InitMapping ()
 
bool isInToT (const double ToT)
 
bool RestrictToAcc (TVector3 &pos)
 
bool RestrictToAcc (Double_t x, Double_t y)
 
bool RestrictToFullAcc (TVector3 &pos)
 
bool RestrictToFullAcc (Double_t x, Double_t y)
 
bool RestrictToAerogelAccDec2019 (TVector3 &pos)
 
bool RestrictToAerogelAccDec2019 (Double_t x, Double_t y)
 
void AddHit (CbmEvent *event, TVector3 &posHit, const CbmRichDigi *digi, Int_t index, Int_t PmtId)
 Add hit to the output array (and) CbmEvent if it is not NULL. More...
 
 CbmRichMCbmHitProducer (const CbmRichMCbmHitProducer &)
 Copy constructor. More...
 
CbmRichMCbmHitProduceroperator= (const CbmRichMCbmHitProducer &)
 Assignment operator. More...
 

Private Attributes

CbmDigiManagerfDigiMan = nullptr
 
TClonesArray * fRichHits
 
TClonesArray * fCbmEvents = nullptr
 
bool fDoToT = false
 
bool fRestrictToAcc = false
 
bool fRestrictToFullAcc = false
 
bool fRestrictToAerogelAccDec2019 = false
 
double fToTLimitLow = 0.
 
double fToTLimitHigh = 1000.
 
std::map< Int_t, CbmRichMCbmMappingDatafRichMapping
 
Int_t fEventNum
 
Int_t fNofHits = 0
 
Double_t fHitError
 
std::string fMappingFile
 

Detailed Description

Definition at line 24 of file CbmRichMCbmHitProducer.h.

Constructor & Destructor Documentation

◆ CbmRichMCbmHitProducer() [1/2]

CbmRichMCbmHitProducer::CbmRichMCbmHitProducer ( )

Default constructor.

Definition at line 21 of file CbmRichMCbmHitProducer.cxx.

◆ ~CbmRichMCbmHitProducer()

CbmRichMCbmHitProducer::~CbmRichMCbmHitProducer ( )
virtual

Destructor.

Definition at line 30 of file CbmRichMCbmHitProducer.cxx.

◆ CbmRichMCbmHitProducer() [2/2]

CbmRichMCbmHitProducer::CbmRichMCbmHitProducer ( const CbmRichMCbmHitProducer )
private

Copy constructor.

Member Function Documentation

◆ AddHit()

void CbmRichMCbmHitProducer::AddHit ( CbmEvent event,
TVector3 &  posHit,
const CbmRichDigi digi,
Int_t  index,
Int_t  PmtId 
)
private

◆ applyToTCut()

void CbmRichMCbmHitProducer::applyToTCut ( )
inline

Apply ToT Cut

Definition at line 102 of file CbmRichMCbmHitProducer.h.

References fDoToT.

◆ DoRestrictToAcc()

void CbmRichMCbmHitProducer::DoRestrictToAcc ( bool  val = true)
inline

Apply restriction to Mar2019 mRICH Acceptance (for Simulations)

Definition at line 107 of file CbmRichMCbmHitProducer.h.

References fRestrictToAcc.

◆ DoRestrictToFullAcc()

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

Apply restriction to full mRICH Acceptance (for Simulations)

Definition at line 112 of file CbmRichMCbmHitProducer.h.

References fRestrictToFullAcc.

◆ Exec()

void CbmRichMCbmHitProducer::Exec ( Option_t *  option)
virtual

Inherited from FairTask.

Definition at line 100 of file CbmRichMCbmHitProducer.cxx.

References fCbmEvents, fEventNum, fRichHits, and ProcessData().

◆ Finish()

void CbmRichMCbmHitProducer::Finish ( )
virtual

Inherited from FairTask.

Definition at line 200 of file CbmRichMCbmHitProducer.cxx.

References fRichHits.

◆ Init()

InitStatus CbmRichMCbmHitProducer::Init ( )
virtual

◆ InitMapping()

◆ isInToT()

bool CbmRichMCbmHitProducer::isInToT ( const double  ToT)
private

Definition at line 203 of file CbmRichMCbmHitProducer.cxx.

References fDoToT, fToTLimitHigh, and fToTLimitLow.

Referenced by ProcessDigi().

◆ operator=()

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

Assignment operator.

◆ ProcessData()

void CbmRichMCbmHitProducer::ProcessData ( CbmEvent event)

Processblock of data either event-by-event or CbmEvent

Definition at line 118 of file CbmRichMCbmHitProducer.cxx.

References fDigiMan, fNofHits, CbmDigiManager::GetNofDigis(), kRich, kRichDigi, and ProcessDigi().

Referenced by Exec().

◆ ProcessDigi()

◆ RestrictToAcc() [1/2]

bool CbmRichMCbmHitProducer::RestrictToAcc ( Double_t  x,
Double_t  y 
)
private

Definition at line 222 of file CbmRichMCbmHitProducer.cxx.

References fRestrictToAcc, x, and y.

◆ RestrictToAcc() [2/2]

bool CbmRichMCbmHitProducer::RestrictToAcc ( TVector3 &  pos)
private

Definition at line 215 of file CbmRichMCbmHitProducer.cxx.

References pos, x, and y.

Referenced by ProcessDigi().

◆ RestrictToAerogelAccDec2019() [1/2]

bool CbmRichMCbmHitProducer::RestrictToAerogelAccDec2019 ( Double_t  x,
Double_t  y 
)
private

Definition at line 265 of file CbmRichMCbmHitProducer.cxx.

References fRestrictToAerogelAccDec2019, x, and y.

◆ RestrictToAerogelAccDec2019() [2/2]

bool CbmRichMCbmHitProducer::RestrictToAerogelAccDec2019 ( TVector3 &  pos)
private

Definition at line 258 of file CbmRichMCbmHitProducer.cxx.

References pos, x, and y.

Referenced by ProcessDigi().

◆ RestrictToFullAcc() [1/2]

bool CbmRichMCbmHitProducer::RestrictToFullAcc ( Double_t  x,
Double_t  y 
)
private

Definition at line 245 of file CbmRichMCbmHitProducer.cxx.

References fRestrictToFullAcc, x, and y.

◆ RestrictToFullAcc() [2/2]

bool CbmRichMCbmHitProducer::RestrictToFullAcc ( TVector3 &  pos)
private

Definition at line 238 of file CbmRichMCbmHitProducer.cxx.

References pos, x, and y.

Referenced by ProcessDigi().

◆ SetMappingFile()

void CbmRichMCbmHitProducer::SetMappingFile ( const std::string &  mappingFile)
inline

Set mapping file path.

Definition at line 73 of file CbmRichMCbmHitProducer.h.

References fMappingFile.

◆ SetParContainers()

void CbmRichMCbmHitProducer::SetParContainers ( )
virtual

Inherited from FairTask.

Definition at line 35 of file CbmRichMCbmHitProducer.cxx.

◆ setToTLimitHigh()

void CbmRichMCbmHitProducer::setToTLimitHigh ( double  high)
inline

Set high ToT Limit.

Definition at line 96 of file CbmRichMCbmHitProducer.h.

References fToTLimitHigh.

◆ setToTLimitLow()

void CbmRichMCbmHitProducer::setToTLimitLow ( double  low)
inline

Set low ToT Limit.

Definition at line 90 of file CbmRichMCbmHitProducer.h.

References fToTLimitLow.

◆ setToTLimits()

void CbmRichMCbmHitProducer::setToTLimits ( double  low,
double  high 
)
inline

Set ToT Limits.

Definition at line 81 of file CbmRichMCbmHitProducer.h.

References fToTLimitHigh, and fToTLimitLow.

Member Data Documentation

◆ fCbmEvents

TClonesArray* CbmRichMCbmHitProducer::fCbmEvents = nullptr
private

Definition at line 118 of file CbmRichMCbmHitProducer.h.

Referenced by Exec(), and Init().

◆ fDigiMan

CbmDigiManager* CbmRichMCbmHitProducer::fDigiMan = nullptr
private

Definition at line 116 of file CbmRichMCbmHitProducer.h.

Referenced by Init(), ProcessData(), and ProcessDigi().

◆ fDoToT

bool CbmRichMCbmHitProducer::fDoToT = false
private

Definition at line 119 of file CbmRichMCbmHitProducer.h.

Referenced by applyToTCut(), and isInToT().

◆ fEventNum

Int_t CbmRichMCbmHitProducer::fEventNum
private

Definition at line 128 of file CbmRichMCbmHitProducer.h.

Referenced by Exec().

◆ fHitError

Double_t CbmRichMCbmHitProducer::fHitError
private

Definition at line 132 of file CbmRichMCbmHitProducer.h.

Referenced by AddHit().

◆ fMappingFile

std::string CbmRichMCbmHitProducer::fMappingFile
private

Definition at line 134 of file CbmRichMCbmHitProducer.h.

Referenced by InitMapping(), and SetMappingFile().

◆ fNofHits

Int_t CbmRichMCbmHitProducer::fNofHits = 0
private

Definition at line 130 of file CbmRichMCbmHitProducer.h.

Referenced by AddHit(), and ProcessData().

◆ fRestrictToAcc

bool CbmRichMCbmHitProducer::fRestrictToAcc = false
private

Definition at line 120 of file CbmRichMCbmHitProducer.h.

Referenced by DoRestrictToAcc(), and RestrictToAcc().

◆ fRestrictToAerogelAccDec2019

bool CbmRichMCbmHitProducer::fRestrictToAerogelAccDec2019 = false
private

Definition at line 122 of file CbmRichMCbmHitProducer.h.

Referenced by RestrictToAerogelAccDec2019().

◆ fRestrictToFullAcc

bool CbmRichMCbmHitProducer::fRestrictToFullAcc = false
private

Definition at line 121 of file CbmRichMCbmHitProducer.h.

Referenced by DoRestrictToFullAcc(), and RestrictToFullAcc().

◆ fRichHits

TClonesArray* CbmRichMCbmHitProducer::fRichHits
private

Definition at line 117 of file CbmRichMCbmHitProducer.h.

Referenced by AddHit(), Exec(), Finish(), and Init().

◆ fRichMapping

std::map<Int_t, CbmRichMCbmMappingData> CbmRichMCbmHitProducer::fRichMapping
private

Definition at line 126 of file CbmRichMCbmHitProducer.h.

Referenced by InitMapping(), and ProcessDigi().

◆ fToTLimitHigh

double CbmRichMCbmHitProducer::fToTLimitHigh = 1000.
private

Definition at line 124 of file CbmRichMCbmHitProducer.h.

Referenced by isInToT(), setToTLimitHigh(), and setToTLimits().

◆ fToTLimitLow

double CbmRichMCbmHitProducer::fToTLimitLow = 0.
private

Definition at line 123 of file CbmRichMCbmHitProducer.h.

Referenced by isInToT(), setToTLimitLow(), and setToTLimits().


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