1 | // $Id: EusoDetector.hh 2908 2011-05-12 14:33:08Z biktem $ |
---|
2 | // Author: M. Pallavicini 08-02-2002 |
---|
3 | |
---|
4 | /***************************************************************************** |
---|
5 | * ESAF: Euso Simulation and Analysis Framework * |
---|
6 | * * |
---|
7 | * Id: EusoDetector * |
---|
8 | * Package: Electronics * |
---|
9 | * Coordinator: Marco.Pallavicini * |
---|
10 | * * |
---|
11 | *****************************************************************************/ |
---|
12 | |
---|
13 | #ifndef __EUSODETECTOR_H_ |
---|
14 | #define __EUSODETECTOR_H_ |
---|
15 | |
---|
16 | #include "Detector.hh" |
---|
17 | #include <map> |
---|
18 | |
---|
19 | #include "EusoElectronics.hh" |
---|
20 | |
---|
21 | class VirtualDetectorTransportManager; |
---|
22 | class EEvent; |
---|
23 | class Photomultiplier; |
---|
24 | class Photon; |
---|
25 | |
---|
26 | //////////////////////////////////////////////////////////////////////////////// |
---|
27 | // // |
---|
28 | // EusoDetector // |
---|
29 | // // |
---|
30 | // The whole EusoDetector is divided in two main pieces: // |
---|
31 | // DetectorTransportManager, which brings photons from pupil to focal surface // |
---|
32 | // EusoElectronics, which simulates the whole chain from Pmts to Trigger // |
---|
33 | // EusoDetector is just a wrapping to these objects which are the one that do // |
---|
34 | // the job // |
---|
35 | // // |
---|
36 | //////////////////////////////////////////////////////////////////////////////// |
---|
37 | |
---|
38 | class EusoDetector : public Detector, public EsafConfigurable, public EsafMsgSource { |
---|
39 | public: |
---|
40 | EusoDetector(); |
---|
41 | // ctor |
---|
42 | |
---|
43 | virtual ~EusoDetector(); |
---|
44 | // dtor |
---|
45 | |
---|
46 | virtual Telemetry* Get( PhotonsOnPupil* ); |
---|
47 | // do the complete simulation of one event |
---|
48 | |
---|
49 | void Build(); |
---|
50 | // build or rebuild the detector |
---|
51 | |
---|
52 | virtual void Reset(); |
---|
53 | // get ready for next event |
---|
54 | |
---|
55 | //inline EusoElectronics* GetEusoElectronics() { return fElectronics; } |
---|
56 | // access to Electronics |
---|
57 | |
---|
58 | //inline VirtualDetectorTransportManager* GetDetectorTransportManager() { return fDetectorTransporter;} |
---|
59 | // access to DetectorTrasnportManager |
---|
60 | |
---|
61 | virtual Bool_t ClearMemory(); |
---|
62 | // physically release the memory allocated by the arrays of this object |
---|
63 | |
---|
64 | EsafConfigClass(Electronics,EusoDetector) |
---|
65 | |
---|
66 | private: |
---|
67 | |
---|
68 | EusoElectronics *fElectronics; |
---|
69 | // VirtualDetectorTransportManager *fDetectorTransporter; |
---|
70 | |
---|
71 | ClassDef(EusoDetector,0) |
---|
72 | }; |
---|
73 | |
---|
74 | // global pointer set by SimuApplication |
---|
75 | extern EusoDetector* gEusoDetector; |
---|
76 | |
---|
77 | #define GetEusoDetector() gEusoDetector |
---|
78 | #endif |
---|