source: branches/Mars_use_drstimefiles/msimcamera/MSimCamera.h@ 18066

Last change on this file since 18066 was 17663, checked in by ftemme, 11 years ago
Added the creation of a MTruePhotonsPerPixelCont in MSimCamera and the filling of the arrays of the container. Also added the container to the fitsoutput
File size: 1.9 KB
Line 
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
10class MMcEvt;
11class MParList;
12class MPhotonEvent;
13class MPhotonStatistics;
14class MRawRunHeader;
15class MAnalogChannels;
16class MPedestalCam;
17class MArrayF;
18class MTruePhotonsPerPixelCont;
19
20class MSpline3;
21class MParameterD;
22
23class MSimCamera : public MTask
24{
25private:
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
59public:
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
Note: See TracBrowser for help on using the repository browser.