source: JEM-EUSO/esaf_cc_at_lal/packages/simulation/detector/electronics/include/EusoDetector.hh @ 114

Last change on this file since 114 was 114, checked in by moretto, 11 years ago

actual version of ESAF at CCin2p3

File size: 2.8 KB
Line 
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
21class VirtualDetectorTransportManager;
22class EEvent;
23class Photomultiplier;
24class 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
38class EusoDetector : public Detector, public EsafConfigurable, public EsafMsgSource {
39public:
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
66private:
67
68    EusoElectronics *fElectronics;
69//     VirtualDetectorTransportManager *fDetectorTransporter;
70
71    ClassDef(EusoDetector,0)
72};
73
74// global pointer set by SimuApplication
75extern EusoDetector* gEusoDetector;
76
77#define GetEusoDetector() gEusoDetector
78#endif
Note: See TracBrowser for help on using the repository browser.