1 | #ifndef MARS_MSimCalibrationSignal
|
---|
2 | #define MARS_MSimCalibrationSignal
|
---|
3 |
|
---|
4 | #ifndef MARS_MRead
|
---|
5 | #include "MRead.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MGeomCam;
|
---|
9 | class MParList;
|
---|
10 | class MParSpline;
|
---|
11 | class MPhotonEvent;
|
---|
12 | class MPhotonStatistics;
|
---|
13 | class MParameterD;
|
---|
14 | class MRawRunHeader;
|
---|
15 | class MRawEvtHeader;
|
---|
16 |
|
---|
17 | class MSimCalibrationSignal : public MRead
|
---|
18 | {
|
---|
19 | private:
|
---|
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);
|
---|
48 | public:
|
---|
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
|
---|