Last change
on this file since 17269 was 17067, checked in by tbretz, 11 years ago |
Added the possibility to setup a custom made G-APD.
|
File size:
1.7 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 |
|
---|
18 | class MSimAPD : public MTask
|
---|
19 | {
|
---|
20 | private:
|
---|
21 | MGeomCam *fGeom; //! APD geometry (used to know how many pixels we have)
|
---|
22 | MPhotonEvent *fEvt; //! Event storing the photon information
|
---|
23 | MPhotonStatistics *fStat; //! Storing event statistics (needed for the start-time)
|
---|
24 | MPedestalCam *fRates; //! Accidental Photon Rates for all pixels
|
---|
25 |
|
---|
26 | TObjArray fAPDs; //! Array keeping the necessary number of APDs
|
---|
27 |
|
---|
28 | TString fNameGeomCam; // Name of the geometry container storing the APD gemeotry
|
---|
29 |
|
---|
30 | Double_t fFreq; // Frequency of random phtons which hit the APDs
|
---|
31 |
|
---|
32 | Int_t fType;
|
---|
33 |
|
---|
34 | Int_t fNumCells; // Number of cells along one side
|
---|
35 | Float_t fCrosstalkCoeff; // Crosstalk coefficient (P form the formula)
|
---|
36 | Float_t fDeadTime; // Single cell dead time in nano-seconds
|
---|
37 | Float_t fRecoveryTime; // Single cell recovery time in nano-seconds
|
---|
38 | Float_t fAfterpulseProb1; // Early afterpulse probability
|
---|
39 | Float_t fAfterpulseProb2; // Late afterpulse probability
|
---|
40 |
|
---|
41 | // MParContainer
|
---|
42 | Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
|
---|
43 |
|
---|
44 | // MTask
|
---|
45 | Int_t PreProcess(MParList *pList);
|
---|
46 | Bool_t ReInit(MParList *pList);
|
---|
47 | Int_t Process();
|
---|
48 |
|
---|
49 | public:
|
---|
50 | MSimAPD(const char *name=NULL, const char *title=NULL);
|
---|
51 |
|
---|
52 | void SetNameGeomCam(const char *name="MGeomCam") { fNameGeomCam = name; }
|
---|
53 | void SetFreq(Float_t f) { fFreq=f; }
|
---|
54 |
|
---|
55 | ClassDef(MSimAPD, 0) // Task to simulate the detection behaviour of APDs
|
---|
56 | };
|
---|
57 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.