source: trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.h@ 3434

Last change on this file since 3434 was 3417, checked in by gaug, 22 years ago
*** empty log message ***
File size: 2.8 KB
Line 
1#ifndef MARS_MCalibrationChargeCalc
2#define MARS_MCalibrationChargeCalc
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MCalibrationChargeCalc //
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;
19class MPedestalCam;
20class MCalibrationChargePINDiode;
21class MCalibrationChargeBlindPix;
22class MCalibrationChargeCam;
23class MGeomCam;
24class MExtractedSignalCam;
25class MBadPixelsCam;
26class MTime;
27class MCalibrationChargeCalc : public MTask
28{
29private:
30
31 MPedestalCam *fPedestals; //! Pedestals of all pixels in the camera
32 MCalibrationChargeCam *fCam; // Calibration events of all pixels in the camera
33 MRawEvtData *fRawEvt; //! raw event data (time slices)
34 MRawRunHeader *fRunHeader; //! RunHeader information
35 MGeomCam *fGeom; //! Geometry information
36 MBadPixelsCam *fBadPixels; //! Bad Pixels information
37
38 MTime *fEvtTime; //! Time of the event
39
40 MExtractedSignalCam *fSignals; // Extracted signal of all pixels in the camera
41 MCalibrationChargePINDiode *fPINDiode; // Calibration results of the PIN Diode
42 MCalibrationChargeBlindPix *fBlindPixel; // Calibration results of the Blind Pixel
43
44 Byte_t fNumHiGainSamples;
45 Byte_t fNumLoGainSamples;
46 Float_t fSqrtHiGainSamples;
47
48 Float_t fConversionHiLo;
49 Int_t fFlags; // Flag for the fits used
50
51 enum { kUseQualityChecks,
52 kHiLoGainCalibration };
53
54 Int_t PreProcess(MParList *pList);
55 Bool_t ReInit(MParList *pList);
56 Int_t Process();
57 Int_t PostProcess();
58
59public:
60
61 MCalibrationChargeCalc(const char *name=NULL, const char *title=NULL);
62
63 void Clear(const Option_t *o="");
64
65 void SkipQualityChecks(Bool_t b=kTRUE)
66 {b ? CLRBIT(fFlags, kUseQualityChecks) : SETBIT(fFlags, kUseQualityChecks);}
67 void SkipHiLoGainCalibration(Bool_t b=kTRUE)
68 {b ? CLRBIT(fFlags, kHiLoGainCalibration) : SETBIT(fFlags, kHiLoGainCalibration);}
69
70 ClassDef(MCalibrationChargeCalc, 1) // Task to fill the Calibration Containers from raw data
71};
72
73#endif
Note: See TracBrowser for help on using the repository browser.