source: trunk/MagicSoft/Mars/msimcamera/MSimAPD.h@ 9433

Last change on this file since 9433 was 9427, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 1.3 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
12class MGeomCam;
13class MParList;
14class MPhotonEvent;
15class MPhotonStatistics;
16class MPedestalCam;
17
18class MSimAPD : public MTask
19{
20private:
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 // MParContainer
35 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
36
37 // MTask
38 Int_t PreProcess(MParList *pList);
39 Bool_t ReInit(MParList *pList);
40 Int_t Process();
41
42public:
43 MSimAPD(const char *name=NULL, const char *title=NULL);
44
45 void SetNameGeomCam(const char *name="MGeomCam") { fNameGeomCam = name; }
46 void SetFreq(Float_t f) { fFreq=f; }
47
48 ClassDef(MSimAPD, 0) // Task to simulate the detection behaviour of APDs
49};
50#endif
Note: See TracBrowser for help on using the repository browser.