Go to the documentation of this file. 1 #ifndef CBMTRDMODULESIM_H
2 #define CBMTRDMODULESIM_H
36 virtual void GetCounters(Int_t& nEl, Int_t& nLattice, Int_t& nOverThr)
const {
41 virtual std::map<Int_t, std::pair<CbmTrdDigi*, CbmMatch*>>*
GetDigiMap() {
72 virtual void SetGamma(Double_t gamma = 0.) = 0;
74 memcpy(
fXYZ,
pos, 3 *
sizeof(Double_t));
76 virtual void SetLinkId(Int_t input, Int_t event = -1, Int_t point = -1) {
96 std::map<Int_t, std::pair<CbmTrdDigi*, CbmMatch*>>
98 std::map<Int_t, std::vector<std::pair<CbmTrdDigi*, CbmMatch*>>>
virtual void SetMessageConverter(CbmTrdRawToDigiR *conv=NULL)=0
Double_t fXYZ[3]
MC position of the point in module coordinates.
CbmTrdModuleSim()
Default constructor.
virtual void SetPointId(Int_t id)
const CbmTrdModuleSim & operator=(const CbmTrdModuleSim &ref)
Int_t fEventId
MC event id being processed.
virtual void SetEventId(Int_t id)
virtual void GetCounters(Int_t &nEl, Int_t &nLattice, Int_t &nOverThr) const
std::map< Int_t, std::pair< CbmTrdDigi *, CbmMatch * > > fDigiMap
Temporary storage for complete digis for each CBM address.
Abstract class for module wise digitization and raw format producing.
Int_t fInputId
MC input file number.
CbmTrdDigitizer * fDigitizer
void SetDigitizer(CbmTrdDigitizer *digitizer)
virtual void SetPositionMC(Double_t pos[3])
virtual std::map< Int_t, std::pair< CbmTrdDigi *, CbmMatch * > > * GetDigiMap()
virtual Int_t FlushBuffer(ULong64_t time=0)=0
Flush local digi buffer.
virtual Int_t GetEventId() const
Int_t fPointId
MC point id being processed.
virtual void ResetCounters()
virtual void SetInputId(Int_t id)
CbmTrdModuleSim(const CbmTrdModuleSim &ref)
std::map< Int_t, std::vector< std::pair< CbmTrdDigi *, CbmMatch * > > > fBuffer
Local digits buffer as function of time for each TRD channel in the module.
virtual Int_t GetPointId() const
CbmTrdRadiator * fRadiator
Pointer to digitizer.
@ kTime
select Time based/Event by event simulations
Abstract class for TRD module.
@ kWeightDistance
use weighting distance for link generation
virtual Bool_t MakeDigi(CbmTrdPoint *p, Double_t time, Bool_t TR=kFALSE)=0
Steering routine for converting MC point to digits.
virtual Int_t GetInputId() const
virtual void SetRadiator(CbmTrdRadiator *radiator=NULL)=0
@ kNoise
switch noise digits generation
virtual void SetLinkId(Int_t input, Int_t event=-1, Int_t point=-1)
virtual void SetGamma(Double_t gamma=0.)=0
virtual ~CbmTrdModuleSim()
virtual void SetQA(CbmTrdCheckUtil *qa=NULL)=0
virtual Bool_t MakeRaw()=0
Steering routine for converting MC point to raw format.