BmnRoot
Loading...
Searching...
No Matches
CbmStsDigitizeTb.h
Go to the documentation of this file.
1
6#ifndef CBMSTSDIGITIZETB_H
7#define CBMSTSDIGITIZETB_H 1
8
9
10
11
12#include <set>
13#include "TStopwatch.h"
14#include "TClonesArray.h"
15#include "FairTask.h"
16
17using std::set;
18using std::map;
19using std::pair;
20
21class CbmGeostsPar;
22class CbmStsDigiPar;
23class CbmStsStation;
24
25class CbmStsPoint;
26
27
36class CbmStsDigitizeTb : public FairTask
37{
38
39 public:
40
43
45 virtual ~CbmStsDigitizeTb();
46
47
49 virtual void Exec(Option_t* opt);
50
51
52 virtual void SetRealisticResponse(Bool_t real=kTRUE) {fRealistic = real;}
53
54 void SetThreshold (Double_t threshold =0.) { fThreshold = threshold; }
55
56 void SetNAdcBits (Int_t nBits) { fNAdcBits = nBits; }
57
58 void SetStripDeadTime (Double_t StripDeadTime=0.) {fStripDeadTime = StripDeadTime;}
59
60
61 private:
62
63 CbmGeoStsPar* fGeoPar;
64 CbmStsDigiPar* fDigiPar;
65 CbmStsDigiScheme* fDigiScheme;
66 TClonesArray* fPoints;
67 TClonesArray* fDigis;
68 TClonesArray* fDigiMatches;
70 // statistics
71 Int_t fNDigis;
72 Int_t fNMulti;
73
74 Double_t fNEvents;
75 Double_t fNPoints;
76 Double_t fNOutside;
77 Double_t fNDigisFront;
78 Double_t fNDigisBack;
79 Double_t fTime;
80
81 // settings
82 Double_t fStepSize;
84 TStopwatch fTimer;
85
86 Bool_t fRealistic;
87 Double_t fPairCreationEnergy;
88
89 Double_t fFNoiseWidth;
90 Double_t fBNoiseWidth;
91
92 Double_t fStripDeadTime;
93
94 // Digitisation properties
95 Double_t fQMax;
96 Double_t fThreshold;
97 Int_t fNAdcBits;
98 Double_t fNAdcChannels;
100// Int_t fFNofBits;
101// Int_t fBNofBits;
102// Double_t fFMinStep;
103// Double_t fBMinStep;
104// Int_t fFNofSteps;
105// Int_t fBNofSteps;
106
107
108 // map of the point indices contributing to a fired strip
109 map<Int_t, set<Int_t> > fFChannelPointsMap;
110 map<Int_t, set<Int_t> > fBChannelPointsMap;
111
112
113
119 void DigitizePoint(const CbmStsPoint* point, Int_t& nFront, Int_t& nBack);
120
121
123 virtual void SetParContainers();
124
125
126
127
131 virtual InitStatus Init();
132
133
134
136 virtual InitStatus ReInit();
137
139 virtual void Finish();
140
141
143 void Reset();
144
146 CbmStsDigitizeTb operator=(const CbmStsDigitizeTb&);
147
148 ClassDef(CbmStsDigitizeTb,1);
149
150};
151
152#endif
153
154
CBM task for STS detector response simulation.
void SetNAdcBits(Int_t nBits)
void SetStripDeadTime(Double_t StripDeadTime=0.)
virtual void Exec(Option_t *opt)
void SetThreshold(Double_t threshold=0.)
virtual void SetRealisticResponse(Bool_t real=kTRUE)