source: trunk/Mars/msimcamera/MSimCalibrationSignal.h@ 12650

Last change on this file since 12650 was 9608, checked in by tbretz, 14 years ago
*** empty log message ***
File size: 2.0 KB
Line 
1#ifndef MARS_MSimCalibrationSignal
2#define MARS_MSimCalibrationSignal
3
4#ifndef MARS_MRead
5#include "MRead.h"
6#endif
7
8class MGeomCam;
9class MParList;
10class MParSpline;
11class MPhotonEvent;
12class MPhotonStatistics;
13class MParameterD;
14class MRawRunHeader;
15class MRawEvtHeader;
16
17class MSimCalibrationSignal : public MRead
18{
19private:
20 MParList *fParList; //! Store pointer to MParList for initializing ReInit
21 MGeomCam *fGeom; //! Camera geometry to know the number of expected pixels
22 MParSpline *fPulse; //! Pulse Shape to get pulse width from
23 MParameterD *fPulsePos; //! Expected position at which the pulse should be
24 MParameterD *fTrigger; //! Position in analog channels at which the triggersignal is raised
25 MRawRunHeader *fRunHeader; //! Digitization window and frequency
26
27 MRawEvtHeader *fEvtHeader; //! Event header which is filled by the trigger pattern
28 MPhotonEvent *fEvt; //! Photon event into which the new photons are stored
29 MPhotonStatistics *fStat; //! Photon statistic which is filled
30
31 TString fNameGeomCam; // Name of the camera geometry
32
33 UInt_t fNumEvents; // Number of events to produce
34 UInt_t fNumPhotons; // Average number of photons to produce
35 Float_t fTimeJitter; // Time jitter (sigma)
36
37 // MParContainer
38 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE);
39
40 // MTask
41 Int_t PreProcess(MParList *pList);
42 Int_t Process();
43
44 // MSimCalibrationSignal
45 Bool_t CallReInit();
46
47 //Int_t ReadRouting(const char *fname, TObjArray &arr);
48public:
49 MSimCalibrationSignal(const char *name=NULL, const char *title=NULL);
50
51 void SetNameGeomCam(const char *name="MGeomCam") { fNameGeomCam = name; }
52
53 UInt_t GetEntries() { return fNumEvents; }
54 TString GetFullFileName() const { return "cer000001"; }
55 //virtual Bool_t Rewind();
56
57 ClassDef(MSimCalibrationSignal, 0) // Task to create a fake signal (derives from MRead)
58};
59
60#endif
Note: See TracBrowser for help on using the repository browser.