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

Last change on this file since 3416 was 3351, checked in by gaug, 21 years ago
*** empty log message ***
File size: 2.9 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
17#include "TString.h"
18
19class MRawEvtData;
20class MRawRunHeader;
21class MPedestalCam;
22class MCalibrationChargePINDiode;
23class MCalibrationChargeBlindPix;
24class MCalibrationChargeCam;
25class MGeomCam;
26class MExtractedSignalCam;
27class MTime;
28class MCalibrationChargeCalc : public MTask
29{
30private:
31
32 MPedestalCam *fPedestals; //! Pedestals of all pixels in the camera
33 MCalibrationChargeCam *fCam; // Calibration events of all pixels in the camera
34 MRawEvtData *fRawEvt; //! raw event data (time slices)
35 MRawRunHeader *fRunHeader; //! RunHeader information
36 MGeomCam *fGeom; //! Geometry 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
45 Byte_t fNumHiGainSamples;
46 Byte_t fNumLoGainSamples;
47 Float_t fSqrtHiGainSamples;
48
49 Float_t fConversionHiLo;
50 Int_t fFlags; // Flag for the fits used
51
52 TString fExcludedPixelsFile;
53 UInt_t fNumExcludedPixels;
54
55 enum { kUseQualityChecks,
56 kHiLoGainCalibration };
57
58 Int_t PreProcess(MParList *pList);
59 Bool_t ReInit(MParList *pList);
60 Int_t Process();
61 Int_t PostProcess();
62
63public:
64
65 MCalibrationChargeCalc(const char *name=NULL, const char *title=NULL);
66
67 void Clear(const Option_t *o="");
68
69 void SkipQualityChecks(Bool_t b=kTRUE)
70 {b ? CLRBIT(fFlags, kUseQualityChecks) : SETBIT(fFlags, kUseQualityChecks);}
71 void SkipHiLoGainCalibration(Bool_t b=kTRUE)
72 {b ? CLRBIT(fFlags, kHiLoGainCalibration) : SETBIT(fFlags, kHiLoGainCalibration);}
73
74
75 // Exclude pixels from configuration file
76 void ExcludePixelsFromAsciiFile(const char *file) { fExcludedPixelsFile = file; }
77
78 ClassDef(MCalibrationChargeCalc, 1) // Task to fill the Calibration Containers from raw data
79};
80
81#endif
Note: See TracBrowser for help on using the repository browser.