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

Last change on this file since 3492 was 3447, checked in by gaug, 21 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 Float_t fNumHiGainSamples;
45 Float_t fNumLoGainSamples;
46 Float_t fSqrtHiGainSamples;
47 Float_t fSqrtLoGainSamples;
48
49 Float_t fConversionHiLo;
50 Int_t fFlags; // Flag for the fits used
51
52 enum { kUseQualityChecks,
53 kHiLoGainCalibration };
54
55 Int_t PreProcess(MParList *pList);
56 Bool_t ReInit(MParList *pList);
57 Int_t Process();
58 Int_t PostProcess();
59
60public:
61
62 MCalibrationChargeCalc(const char *name=NULL, const char *title=NULL);
63
64 void Clear(const Option_t *o="");
65
66 void SkipQualityChecks(Bool_t b=kTRUE)
67 {b ? CLRBIT(fFlags, kUseQualityChecks) : SETBIT(fFlags, kUseQualityChecks);}
68 void SkipHiLoGainCalibration(Bool_t b=kTRUE)
69 {b ? CLRBIT(fFlags, kHiLoGainCalibration) : SETBIT(fFlags, kHiLoGainCalibration);}
70
71 ClassDef(MCalibrationChargeCalc, 1) // Task to fill the Calibration Containers from raw data
72};
73
74#endif
Note: See TracBrowser for help on using the repository browser.