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

Last change on this file since 2603 was 2603, checked in by gaug, 21 years ago
*** empty log message ***
File size: 2.5 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 fEvents; // Number of events
38 Int_t fHistOverFlow; // Number of events with saturated Low Gain
39 Int_t fCosmics; // Number of events due to supposed cosmics
40
41 Byte_t fNumHiGainSamples;
42 Byte_t fNumLoGainSamples;
43
44 Byte_t fFlags; // Flag for the fits used
45
46
47 enum
48 {
49 kUseTimeFits = 1,
50 kUseBlindPixelFit = 2,
51 kUsePinDiodeFit = 3
52 };
53
54public:
55
56 enum PulserColor_t { kEGreen, kEBlue, kEUV };
57
58private:
59
60 PulserColor_t fColor;
61
62 Bool_t ReInit(MParList *pList);
63 Int_t PreProcess(MParList *pList);
64 Int_t Process();
65 Int_t PostProcess();
66
67public:
68
69 MCalibrationCalc(const char *name=NULL, const char *title=NULL);
70
71 void SetSkipTimeFits(Bool_t b=kTRUE)
72 {b ? CLRBIT(fFlags, kUseTimeFits) : SETBIT(fFlags, kUseTimeFits);}
73 void SetSkipBlindPixelFit(Bool_t b=kTRUE)
74 {b ? CLRBIT(fFlags, kUseBlindPixelFit) : SETBIT(fFlags, kUseBlindPixelFit);}
75 void SetSkipPinDiodeFit(Bool_t b=kTRUE)
76 {b ? CLRBIT(fFlags, kUsePinDiodeFit) : SETBIT(fFlags, kUsePinDiodeFit);}
77
78 void SetPulserColor(PulserColor_t color) { fColor = color; }
79
80 ClassDef(MCalibrationCalc, 1) // Task to fill the Calibration Containers from raw data
81};
82
83#endif
Note: See TracBrowser for help on using the repository browser.