CbmRoot
CbmRichHitProducer Class Reference

Class for producing RICH hits directly from MCPoints. More...

#include <CbmRichHitProducer.h>

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

Public Member Functions

 CbmRichHitProducer ()
 Default constructor. More...
 
virtual ~CbmRichHitProducer ()
 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 SetRotationNeeded (Bool_t b)
 

Private Member Functions

void AddHit (CbmEvent *event, TVector3 &posHit, Double_t time, Int_t index)
 Add hit to the output array (and) CbmEvent if it is not NULL. More...
 
 CbmRichHitProducer (const CbmRichHitProducer &)
 Copy constructor. More...
 
CbmRichHitProduceroperator= (const CbmRichHitProducer &)
 Assignment operator. More...
 

Private Attributes

CbmDigiManagerfDigiMan
 
TClonesArray * fRichHits
 
TClonesArray * fCbmEvents
 
Int_t fEventNum
 
Bool_t fRotationNeeded
 
Double_t fHitError
 

Detailed Description

Class for producing RICH hits directly from MCPoints.

Author
B. Polichtchouk
Date
2004

Definition at line 30 of file CbmRichHitProducer.h.

Constructor & Destructor Documentation

◆ CbmRichHitProducer() [1/2]

CbmRichHitProducer::CbmRichHitProducer ( )

Default constructor.

Definition at line 27 of file CbmRichHitProducer.cxx.

◆ ~CbmRichHitProducer()

CbmRichHitProducer::~CbmRichHitProducer ( )
virtual

Destructor.

Definition at line 38 of file CbmRichHitProducer.cxx.

◆ CbmRichHitProducer() [2/2]

CbmRichHitProducer::CbmRichHitProducer ( const CbmRichHitProducer )
private

Copy constructor.

Member Function Documentation

◆ AddHit()

void CbmRichHitProducer::AddHit ( CbmEvent event,
TVector3 &  posHit,
Double_t  time,
Int_t  index 
)
private

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

Definition at line 123 of file CbmRichHitProducer.cxx.

References fHitError, fRichHits, kRichHit, CbmPixelHit::SetDx(), CbmPixelHit::SetDy(), CbmPixelHit::SetPosition(), CbmHit::SetRefId(), and CbmHit::SetTime().

Referenced by ProcessDigi().

◆ Exec()

void CbmRichHitProducer::Exec ( Option_t *  option)
virtual

Inherited from FairTask.

Definition at line 68 of file CbmRichHitProducer.cxx.

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

◆ Finish()

void CbmRichHitProducer::Finish ( )
virtual

Inherited from FairTask.

Definition at line 139 of file CbmRichHitProducer.cxx.

References fRichHits.

◆ Init()

InitStatus CbmRichHitProducer::Init ( )
virtual

◆ operator=()

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

Assignment operator.

◆ ProcessData()

void CbmRichHitProducer::ProcessData ( CbmEvent event)

Processblock of data either event-by-event or CbmEvent

Definition at line 86 of file CbmRichHitProducer.cxx.

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

Referenced by Exec().

◆ ProcessDigi()

◆ SetParContainers()

void CbmRichHitProducer::SetParContainers ( )
virtual

Inherited from FairTask.

Definition at line 43 of file CbmRichHitProducer.cxx.

◆ SetRotationNeeded()

void CbmRichHitProducer::SetRotationNeeded ( Bool_t  b)
inline

Definition at line 72 of file CbmRichHitProducer.h.

References fRotationNeeded.

Member Data Documentation

◆ fCbmEvents

TClonesArray* CbmRichHitProducer::fCbmEvents
private

Definition at line 78 of file CbmRichHitProducer.h.

Referenced by Exec(), and Init().

◆ fDigiMan

CbmDigiManager* CbmRichHitProducer::fDigiMan
private

Definition at line 76 of file CbmRichHitProducer.h.

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

◆ fEventNum

Int_t CbmRichHitProducer::fEventNum
private

Definition at line 80 of file CbmRichHitProducer.h.

Referenced by Exec().

◆ fHitError

Double_t CbmRichHitProducer::fHitError
private

Definition at line 84 of file CbmRichHitProducer.h.

Referenced by AddHit().

◆ fRichHits

TClonesArray* CbmRichHitProducer::fRichHits
private

Definition at line 77 of file CbmRichHitProducer.h.

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

◆ fRotationNeeded

Bool_t CbmRichHitProducer::fRotationNeeded
private

Definition at line 82 of file CbmRichHitProducer.h.

Referenced by ProcessDigi(), and SetRotationNeeded().


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