CbmRoot
CbmTrdModuleSimT.h
Go to the documentation of this file.
1 #ifndef CBMTRDMODULESIMT_H
2 #define CBMTRDMODULESIMT_H
3 
4 #include "CbmTrdModuleSim.h"
5 
6 class CbmTimeSlice;
7 class CbmTrdFASP;
9 class CbmTrdParSetAsic;
15 public:
16  CbmTrdModuleSimT(Int_t mod, Int_t ly, Int_t rot, Bool_t FASP = kTRUE);
17  virtual ~CbmTrdModuleSimT();
18 
24  Int_t FlushBuffer(ULong64_t time = 0);
25 
34  Bool_t MakeDigi(CbmTrdPoint* p, Double_t time, Bool_t TR);
35  Bool_t MakeRaw(/*CbmTrdPoint *p*/) { return kTRUE; }
36  void SetRadiator(CbmTrdRadiator* radiator) { fRadiator = radiator; }
37  void SetGamma(Double_t /*gamma*/) { ; }
38  void SetMessageConverter(CbmTrdRawToDigiR* conv = NULL) { (void) conv; }
39  void SetQA(CbmTrdCheckUtil* qa = NULL) { (void) qa; }
40 
41  void SetAsic(Bool_t /*set*/) { ; }
42  void SetAsicPar(CbmTrdParSetAsic* p = NULL);
43 
44 private:
47 
56  Bool_t
57  ScanPadPlane(const Double_t* point, Double_t dx, Double_t E, Double_t tdrift);
68  void AddDigi(Int_t address, Double_t* charge, Double_t time);
73  void DumpBuffer() const;
74 
79  ULong64_t fTimeOld;
80 
81  ClassDef(CbmTrdModuleSimT, 1)
82 };
83 
84 #endif
CbmTrdModuleSimT::SetRadiator
void SetRadiator(CbmTrdRadiator *radiator)
Definition: CbmTrdModuleSimT.h:36
CbmTrdModuleSimT::SetGamma
void SetGamma(Double_t)
Definition: CbmTrdModuleSimT.h:37
CbmTrdModuleSimT::fTriangleBinning
CbmTrdTrianglePRF * fTriangleBinning
Integration of PRF on triangular pad-plane geometry.
Definition: CbmTrdModuleSimT.h:76
CbmTrdModuleSimT::fTimeOld
ULong64_t fTimeOld
time [ns] of the last event processed (check CbmDaq)
Definition: CbmTrdModuleSimT.h:79
CbmTrdModuleSimT::CbmTrdModuleSimT
CbmTrdModuleSimT(const CbmTrdModuleSimT &ref)
CbmTrdParSetAsic
Describe TRD module ASIC settings (electronic gain, delays, etc)
Definition: CbmTrdParSetAsic.h:18
CbmTrdModuleSimT::CbmTrdModuleSimT
CbmTrdModuleSimT(Int_t mod, Int_t ly, Int_t rot, Bool_t FASP=kTRUE)
Definition: CbmTrdModuleSimT.cxx:41
CbmTrdModuleSimT::MakeDigi
Bool_t MakeDigi(CbmTrdPoint *p, Double_t time, Bool_t TR)
Steer building of digits for triangular pad geometry.
Definition: CbmTrdModuleSimT.cxx:59
CbmTrdModuleSimT::SetAsicPar
void SetAsicPar(CbmTrdParSetAsic *p=NULL)
Definition: CbmTrdModuleSimT.cxx:847
CbmTrdModuleSim
Abstract class for module wise digitization and raw format producing.
Definition: CbmTrdModuleSim.h:18
CbmTrdModuleSimT::MakeRaw
Bool_t MakeRaw()
Steering routine for converting MC point to raw format.
Definition: CbmTrdModuleSimT.h:35
CbmTrdModuleSimT::~CbmTrdModuleSimT
virtual ~CbmTrdModuleSimT()
Definition: CbmTrdModuleSimT.cxx:52
CbmTrdModuleSim.h
CbmTrdModuleSimT::fTimeSlice
CbmTimeSlice * fTimeSlice
link to CBM time slice
Definition: CbmTrdModuleSimT.h:78
CbmTrdModuleSimT::FlushBuffer
Int_t FlushBuffer(ULong64_t time=0)
Flush local buffer of digits which can no longer interact with current event.
Definition: CbmTrdModuleSimT.cxx:655
CbmTrdFASP
FASP channel simulator.
Definition: CbmTrdFASP.h:24
CbmTrdModuleSimT::DumpBuffer
void DumpBuffer() const
Print current buffer content.
Definition: CbmTrdModuleSimT.cxx:826
CbmTrdRadiator
Definition: CbmTrdRadiator.h:24
CbmTrdPoint
Definition: CbmTrdPoint.h:23
CbmTrdModuleSimT::operator=
const CbmTrdModuleSimT & operator=(const CbmTrdModuleSimT &ref)
CbmTrdModuleSim::fRadiator
CbmTrdRadiator * fRadiator
Pointer to digitizer.
Definition: CbmTrdModuleSim.h:94
CbmTrdRawToDigiR
Definition: CbmTrdRawToDigiR.h:17
CbmTrdModuleSimT::SetMessageConverter
void SetMessageConverter(CbmTrdRawToDigiR *conv=NULL)
Definition: CbmTrdModuleSimT.h:38
CbmTrdCheckUtil
Definition: CbmTrdCheckUtil.h:19
CbmTimeSlice
Bookkeeping of time-slice content.
Definition: CbmTimeSlice.h:29
CbmTrdModuleSimT::SetQA
void SetQA(CbmTrdCheckUtil *qa=NULL)
Definition: CbmTrdModuleSimT.h:39
CbmTrdModuleSimT::fFASP
CbmTrdFASP * fFASP
FASP simulator.
Definition: CbmTrdModuleSimT.h:77
CbmTrdModuleSimT::ScanPadPlane
Bool_t ScanPadPlane(const Double_t *point, Double_t dx, Double_t E, Double_t tdrift)
Build digits for the triangular pad geometry.
Definition: CbmTrdModuleSimT.cxx:339
CbmTrdTrianglePRF
Utility for converting energy to signal over the triangular pad geometry (Bucharest prototype)
Definition: CbmTrdTrianglePRF.h:26
CbmTrdModuleSimT::SetAsic
void SetAsic(Bool_t)
Definition: CbmTrdModuleSimT.h:41
CbmTrdModuleSimT::AddDigi
void AddDigi(Int_t address, Double_t *charge, Double_t time)
Adding triangular digits to time slice buffer.
Definition: CbmTrdModuleSimT.cxx:606
CbmTrdModuleSimT
Simulation module implementation for triangular pad geometry.
Definition: CbmTrdModuleSimT.h:14