Last change
on this file since 19723 was 17643, checked in by ftemme, 11 years ago |
Added a MParameterD for the Crosstalkcoefficient, so that MSimCamera can access the crosstalk coefficient for the calculation of the accoupling.
|
File size:
1.8 KB
|
Line | |
---|
1 | #ifndef MARS_MSimAPD
|
---|
2 | #define MARS_MSimAPD
|
---|
3 |
|
---|
4 | #ifndef MARS_MTask
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef ROOT_TObjArray
|
---|
9 | #include <TObjArray.h>
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | class MGeomCam;
|
---|
13 | class MParList;
|
---|
14 | class MPhotonEvent;
|
---|
15 | class MPhotonStatistics;
|
---|
16 | class MPedestalCam;
|
---|
17 | class MParameterD;
|
---|
18 |
|
---|
19 | class MSimAPD : public MTask
|
---|
20 | {
|
---|
21 | private:
|
---|
22 | MGeomCam *fGeom; //! APD geometry (used to know how many pixels we have)
|
---|
23 | MPhotonEvent *fEvt; //! Event storing the photon information
|
---|
24 | MPhotonStatistics *fStat; //! Storing event statistics (needed for the start-time)
|
---|
25 | MPedestalCam *fRates; //! Accidental Photon Rates for all pixels
|
---|
26 |
|
---|
27 | MParameterD *fCrosstalkCoeffParam;
|
---|
28 |
|
---|
29 | TObjArray fAPDs; //! Array keeping the necessary number of APDs
|
---|
30 |
|
---|
31 | TString fNameGeomCam; // Name of the geometry container storing the APD gemeotry
|
---|
32 |
|
---|
33 | Double_t fFreq; // Frequency of random phtons which hit the APDs
|
---|
34 |
|
---|
35 | Int_t fType;
|
---|
36 |
|
---|
37 | Int_t fNumCells; // Number of cells along one side
|
---|
38 | Float_t fCrosstalkCoeff; // Crosstalk coefficient (P form the formula)
|
---|
39 | Float_t fDeadTime; // Single cell dead time in nano-seconds
|
---|
40 | Float_t fRecoveryTime; // Single cell recovery time in nano-seconds
|
---|
41 | Float_t fAfterpulseProb1; // Early afterpulse probability
|
---|
42 | Float_t fAfterpulseProb2; // Late afterpulse probability
|
---|
43 |
|
---|
44 | // MParContainer
|
---|
45 | Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
|
---|
46 |
|
---|
47 | // MTask
|
---|
48 | Int_t PreProcess(MParList *pList);
|
---|
49 | Bool_t ReInit(MParList *pList);
|
---|
50 | Int_t Process();
|
---|
51 |
|
---|
52 | public:
|
---|
53 | MSimAPD(const char *name=NULL, const char *title=NULL);
|
---|
54 |
|
---|
55 | void SetNameGeomCam(const char *name="MGeomCam") { fNameGeomCam = name; }
|
---|
56 | void SetFreq(Float_t f) { fFreq=f; }
|
---|
57 |
|
---|
58 | ClassDef(MSimAPD, 0) // Task to simulate the detection behaviour of APDs
|
---|
59 | };
|
---|
60 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.