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 |
|
---|
17 | class MSimAPD : public MTask
|
---|
18 | {
|
---|
19 | private:
|
---|
20 | MGeomCam *fGeom; //! APD geometry (used to know how many pixels we have)
|
---|
21 | MPhotonEvent *fEvt; //! Event storing the photon information
|
---|
22 | MPhotonStatistics *fStat; //! Storing event statistics (needed for the start-time)
|
---|
23 |
|
---|
24 | TObjArray fAPDs; //! Array keeping the necessary number of APDs
|
---|
25 |
|
---|
26 | TString fNameGeomCam; // Name of the geometry container storing the APD gemeotry
|
---|
27 |
|
---|
28 | Double_t fFreq; // Frequency of random phtons which hit the APDs
|
---|
29 |
|
---|
30 | Int_t fType;
|
---|
31 |
|
---|
32 | // MParContainer
|
---|
33 | Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
|
---|
34 |
|
---|
35 | // MTask
|
---|
36 | Int_t PreProcess(MParList *pList);
|
---|
37 | Bool_t ReInit(MParList *pList);
|
---|
38 | Int_t Process();
|
---|
39 |
|
---|
40 | public:
|
---|
41 | MSimAPD(const char *name=NULL, const char *title=NULL);
|
---|
42 |
|
---|
43 | void SetNameGeomCam(const char *name="MGeomCam") { fNameGeomCam = name; }
|
---|
44 | void SetFreq(Float_t f) { fFreq=f; }
|
---|
45 |
|
---|
46 | ClassDef(MSimAPD, 0) // Task to simulate the detection behaviour of APDs
|
---|
47 | };
|
---|
48 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.