CbmRoot
CbmPsdMCbmHitProducer Class Reference

#include <CbmPsdMCbmHitProducer.h>

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

Public Member Functions

 CbmPsdMCbmHitProducer ()
 Default constructor. More...
 
virtual ~CbmPsdMCbmHitProducer ()
 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 setEnRange (double low, double high)
 
void applyEnCut ()
 

Private Member Functions

void InitMapping ()
 
bool isInEnRange (const double energy)
 
void AddHit (CbmEvent *event, Double_t time, Double_t energy, UInt_t moduleId, UInt_t sectionId, Int_t index)
 Add hit to the output array (and) CbmEvent if it is not NULL. More...
 
 CbmPsdMCbmHitProducer (const CbmPsdMCbmHitProducer &)
 Copy constructor. More...
 
CbmPsdMCbmHitProduceroperator= (const CbmPsdMCbmHitProducer &)
 Assignment operator. More...
 

Private Attributes

CbmDigiManagerfDigiMan = nullptr
 
TClonesArray * fPsdHits
 
TClonesArray * fCbmEvents = nullptr
 
bool fDoEnCut = false
 
double fEnLimitLow = 0.
 
double fEnLimitHigh = 100000.
 
Int_t fEventNum
 
Double_t fHitError
 
TString fMappingFile
 

Detailed Description

Definition at line 14 of file CbmPsdMCbmHitProducer.h.

Constructor & Destructor Documentation

◆ CbmPsdMCbmHitProducer() [1/2]

CbmPsdMCbmHitProducer::CbmPsdMCbmHitProducer ( )

Default constructor.

Definition at line 16 of file CbmPsdMCbmHitProducer.cxx.

◆ ~CbmPsdMCbmHitProducer()

CbmPsdMCbmHitProducer::~CbmPsdMCbmHitProducer ( )
virtual

Destructor.

Definition at line 23 of file CbmPsdMCbmHitProducer.cxx.

◆ CbmPsdMCbmHitProducer() [2/2]

CbmPsdMCbmHitProducer::CbmPsdMCbmHitProducer ( const CbmPsdMCbmHitProducer )
private

Copy constructor.

Member Function Documentation

◆ AddHit()

void CbmPsdMCbmHitProducer::AddHit ( CbmEvent event,
Double_t  time,
Double_t  energy,
UInt_t  moduleId,
UInt_t  sectionId,
Int_t  index 
)
private

Add hit to the output array (and) CbmEvent if it is not NULL.

Definition at line 146 of file CbmPsdMCbmHitProducer.cxx.

References fPsdHits, kPsdHit, CbmPsdMCbmHit::SetEdep(), CbmPsdMCbmHit::SetModuleID(), CbmPsdMCbmHit::SetSectionID(), and CbmPsdMCbmHit::SetTime().

Referenced by ProcessDigi().

◆ applyEnCut()

void CbmPsdMCbmHitProducer::applyEnCut ( )
inline

Apply Energy Cut

Definition at line 77 of file CbmPsdMCbmHitProducer.h.

References fDoEnCut.

◆ Exec()

void CbmPsdMCbmHitProducer::Exec ( Option_t *  option)
virtual

Inherited from FairTask.

Definition at line 94 of file CbmPsdMCbmHitProducer.cxx.

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

◆ Finish()

void CbmPsdMCbmHitProducer::Finish ( )
virtual

Inherited from FairTask.

Definition at line 165 of file CbmPsdMCbmHitProducer.cxx.

References fPsdHits.

◆ Init()

InitStatus CbmPsdMCbmHitProducer::Init ( )
virtual

◆ InitMapping()

void CbmPsdMCbmHitProducer::InitMapping ( )
private

◆ isInEnRange()

bool CbmPsdMCbmHitProducer::isInEnRange ( const double  energy)
private

Definition at line 168 of file CbmPsdMCbmHitProducer.cxx.

References fDoEnCut, fEnLimitHigh, and fEnLimitLow.

Referenced by ProcessDigi().

◆ operator=()

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

Assignment operator.

◆ ProcessData()

void CbmPsdMCbmHitProducer::ProcessData ( CbmEvent event)

Processblock of data either event-by-event or CbmEvent

Definition at line 112 of file CbmPsdMCbmHitProducer.cxx.

References fDigiMan, CbmDigiManager::GetNofDigis(), kPsd, kPsdDigi, and ProcessDigi().

Referenced by Exec().

◆ ProcessDigi()

void CbmPsdMCbmHitProducer::ProcessDigi ( CbmEvent event,
Int_t  digiIndex 
)

◆ setEnRange()

void CbmPsdMCbmHitProducer::setEnRange ( double  low,
double  high 
)
inline

Set mapping file path. Set Energy Limits.

Definition at line 69 of file CbmPsdMCbmHitProducer.h.

References fEnLimitHigh, and fEnLimitLow.

◆ SetParContainers()

void CbmPsdMCbmHitProducer::SetParContainers ( )
virtual

Inherited from FairTask.

Definition at line 28 of file CbmPsdMCbmHitProducer.cxx.

Member Data Documentation

◆ fCbmEvents

TClonesArray* CbmPsdMCbmHitProducer::fCbmEvents = nullptr
private

Definition at line 82 of file CbmPsdMCbmHitProducer.h.

Referenced by Exec(), and Init().

◆ fDigiMan

CbmDigiManager* CbmPsdMCbmHitProducer::fDigiMan = nullptr
private

Definition at line 80 of file CbmPsdMCbmHitProducer.h.

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

◆ fDoEnCut

bool CbmPsdMCbmHitProducer::fDoEnCut = false
private

Definition at line 83 of file CbmPsdMCbmHitProducer.h.

Referenced by applyEnCut(), and isInEnRange().

◆ fEnLimitHigh

double CbmPsdMCbmHitProducer::fEnLimitHigh = 100000.
private

Definition at line 85 of file CbmPsdMCbmHitProducer.h.

Referenced by isInEnRange(), and setEnRange().

◆ fEnLimitLow

double CbmPsdMCbmHitProducer::fEnLimitLow = 0.
private

Definition at line 84 of file CbmPsdMCbmHitProducer.h.

Referenced by isInEnRange(), and setEnRange().

◆ fEventNum

Int_t CbmPsdMCbmHitProducer::fEventNum
private

Definition at line 89 of file CbmPsdMCbmHitProducer.h.

Referenced by Exec().

◆ fHitError

Double_t CbmPsdMCbmHitProducer::fHitError
private

Definition at line 91 of file CbmPsdMCbmHitProducer.h.

◆ fMappingFile

TString CbmPsdMCbmHitProducer::fMappingFile
private

Definition at line 93 of file CbmPsdMCbmHitProducer.h.

◆ fPsdHits

TClonesArray* CbmPsdMCbmHitProducer::fPsdHits
private

Definition at line 81 of file CbmPsdMCbmHitProducer.h.

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


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