1 | #ifndef MARS_MSimCamera
|
---|
2 | #define MARS_MSimCamera
|
---|
3 |
|
---|
4 | #ifndef MARS_MTask
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #include "MArrayF.h"
|
---|
9 |
|
---|
10 | class MMcEvt;
|
---|
11 | class MParList;
|
---|
12 | class MPhotonEvent;
|
---|
13 | class MPhotonStatistics;
|
---|
14 | class MRawRunHeader;
|
---|
15 | class MAnalogChannels;
|
---|
16 | class MPedestalCam;
|
---|
17 | class MArrayF;
|
---|
18 | class MTruePhotonsPerPixelCont;
|
---|
19 |
|
---|
20 | class MSpline3;
|
---|
21 | class MParameterD;
|
---|
22 |
|
---|
23 | class MSimCamera : public MTask
|
---|
24 | {
|
---|
25 | private:
|
---|
26 | MPhotonEvent *fEvt; //! Event stroing the photons
|
---|
27 | MPhotonStatistics *fStat; //! Valid time range of the phootn event
|
---|
28 | MRawRunHeader *fRunHeader; //! Sampling frequency
|
---|
29 | MPedestalCam *fElectronicNoise; //! Electronic noise (baseline and rms)
|
---|
30 | MPedestalCam *fGain; //! Electronic noise (baseline and rms)
|
---|
31 | MPedestalCam *fAccidentalPhotons;//! Accidental photon rates
|
---|
32 |
|
---|
33 | MAnalogChannels *fCamera; //! Output of the analog signals
|
---|
34 | MMcEvt *fMcEvt; //! For information stored in MMcEvt
|
---|
35 |
|
---|
36 | MParameterD *fCrosstalkCoeffParam;
|
---|
37 | MTruePhotonsPerPixelCont *fTruePhotons; //! Container to store the number of photons per pixel
|
---|
38 |
|
---|
39 | const MSpline3 *fSpline; // Pulse Shape
|
---|
40 |
|
---|
41 | Bool_t fBaselineGain; // Should the gain be applied to baseline and electronic noise?
|
---|
42 |
|
---|
43 | Double_t fDefaultOffset; // Default offset added to all channels
|
---|
44 | Double_t fDefaultNoise; // Default noise (RMS) added to all samples
|
---|
45 | Double_t fDefaultGain; // Default gain (multiplication factor to the given/used pulse shape)
|
---|
46 |
|
---|
47 | Double_t fACFudgeFactor;
|
---|
48 |
|
---|
49 | Double_t fACTimeConstant;
|
---|
50 |
|
---|
51 | // MParContainer
|
---|
52 | Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
|
---|
53 |
|
---|
54 | // MTask
|
---|
55 | Int_t PreProcess(MParList *pList);
|
---|
56 | Bool_t ReInit(MParList *pList);
|
---|
57 | Int_t Process();
|
---|
58 |
|
---|
59 | public:
|
---|
60 | MSimCamera(const char *name=NULL, const char *title=NULL);
|
---|
61 |
|
---|
62 | ClassDef(MSimCamera, 0) // Task to simulate the electronic noise and to convert photons into pulses
|
---|
63 | };
|
---|
64 |
|
---|
65 | #endif
|
---|