CbmRoot
CbmTrdSPADIC.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmTrdSPADIC header file -----
3 // ----- Created 03/06/14 by Cyrano Bergmann -----
4 // -------------------------------------------------------------------------
5 
6 
7 #ifndef CBMTRDSPADIC_H
8 #define CBMTRDSPADIC_H
9 
10 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
11 #include <RtypesCore.h> // for Double_t, Int_t, Bool_t, Option_t
12 
13 #include "FairTask.h" // for FairTask, InitStatus
14 
15 class CbmTrdDigi;
16 class CbmTrdGeoHandler;
17 class CbmTrdParModDigi;
18 class CbmTrdParSetDigi;
19 class TClonesArray;
20 class TH1D;
21 
22 class CbmTrdSPADIC : public FairTask {
23 
24 public:
28  CbmTrdSPADIC();
29  // CbmTrdSPADIC(Bool_t MultiHit, Bool_t NeighbourReadout, Bool_t RowClusterMerger, Double_t MinimumChargeTH);
30 
34  virtual ~CbmTrdSPADIC();
35 
39  virtual InitStatus Init();
40 
44  virtual void SetParContainers();
45 
49  virtual void Exec(Option_t* option);
50 
51  void SetTriggerThreshold(Double_t triggerthreshold);
52  void SetPulseShapeSim(Bool_t pulseShape);
53  void SetSelectionMask(Bool_t mask[45]);
54  void SetBitResolution(Int_t bit);
55  void SetMaxRange(Double_t maxRange);
56 
57 private:
58  void CR_RC_Shaper(CbmTrdDigi* digi, TH1D* spadicPulse);
59  void ADC(TH1D* spadicPulse);
60  void ADC(CbmTrdDigi* digi);
63  Int_t fShaperOrder;
64  Double_t fShapingTime;
65  Int_t fPeakBin;
67  static const Int_t fnBins = 45;
68  Double_t fmaxdEdx;
69  Double_t fAdcBit;
70  Bool_t fPulseShape;
72 
73  //Bool_t CbmDigiSorter(std::pair< Int_t, Int_t> a, std::pair< Int_t, Int_t> b);
74 
75  TClonesArray* fDigis;
79 
81 
82  Double_t fMinimumChargeTH;
83 
86 
88 };
89 #endif
CbmTrdSPADIC::fSpadicResponse
TH1D * fSpadicResponse
Definition: CbmTrdSPADIC.h:62
CbmTrdSPADIC::fShapingTime
Double_t fShapingTime
Definition: CbmTrdSPADIC.h:64
CbmTrdSPADIC::SetBitResolution
void SetBitResolution(Int_t bit)
Definition: CbmTrdSPADIC.cxx:69
CbmTrdSPADIC::fDigis
TClonesArray * fDigis
Definition: CbmTrdSPADIC.h:75
CbmTrdSPADIC::CR_RC_Shaper
void CR_RC_Shaper(CbmTrdDigi *digi, TH1D *spadicPulse)
Definition: CbmTrdSPADIC.cxx:135
CbmTrdSPADIC::SetSelectionMask
void SetSelectionMask(Bool_t mask[45])
Definition: CbmTrdSPADIC.cxx:111
CbmTrdSPADIC::fPeakBin
Int_t fPeakBin
Definition: CbmTrdSPADIC.h:65
CbmTrdSPADIC::fAdcBit
Double_t fAdcBit
Definition: CbmTrdSPADIC.h:69
CbmTrdSPADIC::SetPulseShapeSim
void SetPulseShapeSim(Bool_t pulseShape)
Definition: CbmTrdSPADIC.cxx:76
CbmTrdSPADIC::Exec
virtual void Exec(Option_t *option)
Definition: CbmTrdSPADIC.cxx:178
CbmTrdSPADIC::Init
virtual InitStatus Init()
Inherited from FairTask.
Definition: CbmTrdSPADIC.cxx:53
CbmTrdSPADIC::~CbmTrdSPADIC
virtual ~CbmTrdSPADIC()
Destructor.
Definition: CbmTrdSPADIC.cxx:43
CbmTrdSPADIC::CbmTrdSPADIC
CbmTrdSPADIC()
Definition: CbmTrdSPADIC.cxx:27
CbmTrdSPADIC::fShaperOrder
Int_t fShaperOrder
Definition: CbmTrdSPADIC.h:63
CbmTrdSPADIC::fPulseShape
Bool_t fPulseShape
Definition: CbmTrdSPADIC.h:70
CbmTrdSPADIC
Definition: CbmTrdSPADIC.h:22
CbmTrdGeoHandler
Definition: CbmTrdGeoHandler.h:29
CbmTrdSPADIC::fDigiPar
CbmTrdParSetDigi * fDigiPar
Definition: CbmTrdSPADIC.h:77
CbmTrdParModDigi
Definition of chamber gain conversion for one TRD module.
Definition: CbmTrdParModDigi.h:14
CbmTrdSPADIC::operator=
CbmTrdSPADIC & operator=(const CbmTrdSPADIC &)
CbmTrdSPADIC::SetMaxRange
void SetMaxRange(Double_t maxRange)
Definition: CbmTrdSPADIC.cxx:71
CbmTrdSPADIC::fGeoHandler
CbmTrdGeoHandler * fGeoHandler
Definition: CbmTrdSPADIC.h:80
CbmTrdSPADIC::fBitResolution
Int_t fBitResolution
Definition: CbmTrdSPADIC.h:66
CbmTrdSPADIC::fmaxdEdx
Double_t fmaxdEdx
Definition: CbmTrdSPADIC.h:68
CbmTrdSPADIC::fMinimumChargeTH
Double_t fMinimumChargeTH
Definition: CbmTrdSPADIC.h:82
CbmTrdSPADIC::fnBins
static const Int_t fnBins
Definition: CbmTrdSPADIC.h:67
CbmTrdSPADIC::ADC
void ADC(TH1D *spadicPulse)
Definition: CbmTrdSPADIC.cxx:117
CbmTrdSPADIC::fSelectionMask
Bool_t fSelectionMask[fnBins]
Definition: CbmTrdSPADIC.h:71
CbmTrdSPADIC::SetTriggerThreshold
void SetTriggerThreshold(Double_t triggerthreshold)
Definition: CbmTrdSPADIC.cxx:80
CbmTrdDigi
Definition: CbmTrdDigi.h:14
CbmTrdParSetDigi
Definition: CbmTrdParSetDigi.h:15
CbmTrdSPADIC::fModuleInfo
CbmTrdParModDigi * fModuleInfo
Definition: CbmTrdSPADIC.h:78
CbmTrdSPADIC::SetParContainers
virtual void SetParContainers()
Definition: CbmTrdSPADIC.cxx:47
CbmTrdSPADIC::InitSpadicResponseFunction
void InitSpadicResponseFunction()
Definition: CbmTrdSPADIC.cxx:89
CbmTrdSPADIC::CbmTrdSPADIC
CbmTrdSPADIC(const CbmTrdSPADIC &)
CbmTrdSPADIC::ClassDef
ClassDef(CbmTrdSPADIC, 2)