source: branches/Mars_MC/msimcamera/MSimCamera.h@ 17050

Last change on this file since 17050 was 17011, checked in by ftemme, 11 years ago
added the writing of several Header Keys to the fitsoutput of Ceres in MJSimulation.cc, the values of the HeaderKeys are mainly hardcoded; changed the name of the columns in the fitsoutput for MMcEvt.fEvtNumber, MRawEvtData.fStartCells to the corresponding name in real data files; removed the vetoing of several columns in the fitsout in MJSimulation.cc; implemented the substraction of the accoupling in MSimCamera.cc
File size: 1.6 KB
Line 
1#ifndef MARS_MSimCamera
2#define MARS_MSimCamera
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8class MMcEvt;
9class MParList;
10class MPhotonEvent;
11class MPhotonStatistics;
12class MRawRunHeader;
13class MAnalogChannels;
14class MPedestalCam;
15
16class MSpline3;
17
18class MSimCamera : public MTask
19{
20private:
21 MPhotonEvent *fEvt; //! Event stroing the photons
22 MPhotonStatistics *fStat; //! Valid time range of the phootn event
23 MRawRunHeader *fRunHeader; //! Sampling frequency
24 MPedestalCam *fElectronicNoise; //! Electronic noise (baseline and rms)
25 MPedestalCam *fGain; //! Electronic noise (baseline and rms)
26 MPedestalCam *fAccidentalPhotons;//! Accidental photon rates
27
28 MAnalogChannels *fCamera; //! Output of the analog signals
29 MMcEvt *fMcEvt; //! For information stored in MMcEvt
30
31 const MSpline3 *fSpline; // Pulse Shape
32
33 Bool_t fBaselineGain; // Should the gain be applied to baseline and electronic noise?
34
35 Double_t fDefaultOffset; // Default offset added to all channels
36 Double_t fDefaultNoise; // Default noise (RMS) added to all samples
37 Double_t fDefaultGain; // Default gain (multiplication factor to the given/used pulse shape)
38
39 // MParContainer
40 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
41
42 // MTask
43 Int_t PreProcess(MParList *pList);
44 Bool_t ReInit(MParList *pList);
45 Int_t Process();
46
47public:
48 MSimCamera(const char *name=NULL, const char *title=NULL);
49
50 ClassDef(MSimCamera, 0) // Task to simulate the electronic noise and to convert photons into pulses
51};
52
53#endif
Note: See TracBrowser for help on using the repository browser.