Last change
on this file since 9825 was 9625, checked in by tbretz, 14 years ago |
Made baseline, baseline noise and gain accessible from the resources.
|
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 |
|
---|
8 | class MMcEvt;
|
---|
9 | class MParList;
|
---|
10 | class MPhotonEvent;
|
---|
11 | class MPhotonStatistics;
|
---|
12 | class MRawRunHeader;
|
---|
13 | class MAnalogChannels;
|
---|
14 | class MPedestalCam;
|
---|
15 |
|
---|
16 | class MSpline3;
|
---|
17 |
|
---|
18 | class MSimCamera : public MTask
|
---|
19 | {
|
---|
20 | private:
|
---|
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 |
|
---|
27 | MAnalogChannels *fCamera; //! Output of the analog signals
|
---|
28 | MMcEvt *fMcEvt; //! For information stored in MMcEvt
|
---|
29 |
|
---|
30 | const MSpline3 *fSpline; // Pulse Shape
|
---|
31 |
|
---|
32 | Bool_t fBaselineGain; // Should the gain be applied to baseline and electronic noise?
|
---|
33 |
|
---|
34 | Double_t fDefaultOffset; // Default offset added to all channels
|
---|
35 | Double_t fDefaultNoise; // Default noise (RMS) added to all samples
|
---|
36 | Double_t fDefaultGain; // Default gain (multiplication factor to the given/used pulse shape)
|
---|
37 |
|
---|
38 | // MParContainer
|
---|
39 | Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
|
---|
40 |
|
---|
41 | // MTask
|
---|
42 | Int_t PreProcess(MParList *pList);
|
---|
43 | Bool_t ReInit(MParList *pList);
|
---|
44 | Int_t Process();
|
---|
45 |
|
---|
46 | public:
|
---|
47 | MSimCamera(const char *name=NULL, const char *title=NULL);
|
---|
48 |
|
---|
49 | ClassDef(MSimCamera, 0) // Task to simulate the electronic noise and to convert photons into pulses
|
---|
50 | };
|
---|
51 |
|
---|
52 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.