source: trunk/MagicSoft/Mars/msignal/MArrivalTimeCalc.h@ 3830

Last change on this file since 3830 was 3628, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.2 KB
Line 
1#ifndef MARS_MArrivalTimeCalc
2#define MARS_MArrivalTimeCalc
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8class MRawEvtData;
9class MRawRunHeader;
10class MArrivalTimeCam;
11class MPedestalCam;
12class MArrivalTimeCalc : public MTask
13{
14
15 static const Byte_t fgSaturationLimit; // Default for fSaturationLimit
16 Byte_t fSaturationLimit; // Maximum FADC counts before being considered as saturated
17
18 MRawEvtData *fRawEvt; // raw event data (time slices)
19 MRawRunHeader *fRunHeader; // RunHeader information
20 MPedestalCam *fPedestals; // pedestal information
21
22 MArrivalTimeCam *fArrTime; // Container with the photons arrival times
23
24 Int_t PreProcess(MParList *pList);
25 Bool_t ReInit(MParList *pList);
26 Int_t Process();
27 Int_t PostProcess() {return kTRUE;}
28
29 Float_t Calc(const Byte_t *fadcSamples, const Short_t nslices, const UInt_t idx);
30
31public:
32 MArrivalTimeCalc(const char *name=NULL, const char *title=NULL);
33 ~MArrivalTimeCalc(){}
34
35 void SetSaturationLimit(const Byte_t lim=fgSaturationLimit) { fSaturationLimit = lim; }
36
37 ClassDef(MArrivalTimeCalc, 0) // Task to calculate Arrival Times from raw data
38};
39
40#endif
41
42
43
Note: See TracBrowser for help on using the repository browser.