source: trunk/MagicSoft/Mars/manalysis/MCalibrationCalc.h@ 2535

Last change on this file since 2535 was 2525, checked in by gaug, 22 years ago
*** empty log message ***
File size: 2.3 KB
Line 
1#ifndef MARS_MCalibrationCalc
2#define MARS_MCalibrationCalc
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MCalibrationCalc //
7// //
8// Integrates the time slices of the all pixels of a calibration event //
9// and substract the pedestal value //
10// //
11/////////////////////////////////////////////////////////////////////////////
12
13#ifndef MARS_MTask
14#include "MTask.h"
15#endif
16
17class MRawEvtData;
18class MRawRunHeader;
19
20class MPedestalCam;
21class MCalibrationCam;
22
23class MTime;
24
25class MCalibrationCalc : public MTask
26{
27private:
28
29 MPedestalCam *fPedestals; // Pedestals of all pixels in the camera
30 MCalibrationCam *fCalibrations; // Calibration events of all pixels in the camera
31
32 MRawEvtData *fRawEvt; // raw event data (time slices)
33 MRawRunHeader *fRunHeader; // RunHeader information
34
35 MTime *fEvtTime; // Time of the event
36
37 Int_t fNrEvents; // Number of events
38 Int_t fOverFlow; // Number of events with saturated Low Gain
39
40 Byte_t fFlags; // Flag for the fits used
41
42 enum
43 {
44 kUseTFits = 1,
45 kUseBPFit = 2,
46 kUsePDFit = 3
47 };
48
49public:
50
51 enum PulserColor_t { kEGreen, kEBlue, kEUV };
52
53private:
54
55 PulserColor_t fColor;
56
57 Int_t PreProcess(MParList *pList);
58 Int_t Process();
59 Int_t PostProcess();
60
61public:
62
63 MCalibrationCalc(const char *name=NULL, const char *title=NULL);
64
65 void SetSkipTFits(Bool_t b=kTRUE)
66 {b ? CLRBIT(fFlags, kUseTFits) : SETBIT(fFlags, kUseTFits);}
67 void SetSkipBPFit(Bool_t b=kTRUE)
68 {b ? CLRBIT(fFlags, kUseBPFit) : SETBIT(fFlags, kUseBPFit);}
69 void SetSkipPDFit(Bool_t b=kTRUE)
70 {b ? CLRBIT(fFlags, kUsePDFit) : SETBIT(fFlags, kUsePDFit);}
71
72 void SetPulserColor(PulserColor_t color) { fColor = color; }
73
74 ClassDef(MCalibrationCalc, 1) // Task to fill the Calibration Containers from raw data
75};
76
77#endif
Note: See TracBrowser for help on using the repository browser.