source: trunk/MagicSoft/Mars/mcalib/MCalibrate.h@ 3444

Last change on this file since 3444 was 3437, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.9 KB
Line 
1#ifndef MARS_MCalibrate
2#define MARS_MCalibrate
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MCalibrate //
7// //
8// Integrates the desired ADC time slices of one pixel and apply //
9// calibration constants //
10// //
11/////////////////////////////////////////////////////////////////////////////
12#ifndef MARS_MTask
13#include "MTask.h"
14#endif
15
16class MGeomCam;
17class MBadPixelsCam;
18class MCalibrationChargeCam;
19class MExtractedSignalCam;
20class MCerPhotEvt;
21
22class MCalibrate : public MTask
23{
24private:
25 MGeomCam *fGeomCam; // Camera geometry container
26 MCalibrationChargeCam *fCalibrations; // Calibration constants
27 MBadPixelsCam *fBadPixels; // Bad Pixels information
28 MExtractedSignalCam *fSignals; // Integrated charge in FADCs counts
29 MCerPhotEvt *fCerPhotEvt; // Cerenkov Photon Event used for calculation
30
31 Float_t fConversionHiLo;
32 UShort_t fCalibrationMode;
33
34 Int_t PreProcess(MParList *pList);
35 Bool_t ReInit(MParList *pList);
36 Int_t Process();
37
38public:
39
40 enum CalibrationMode_t{kNone=0,kBlindPixel,kFfactor,kPinDiode,kCombined, kDummy};
41 static const CalibrationMode_t kDefault = kBlindPixel;
42
43 MCalibrate(CalibrationMode_t calmode = kDefault,const char *name=NULL, const char *title=NULL);
44
45 void SetConversionHiLo(Float_t conv) { fConversionHiLo = conv; };
46 void SetCalibrationMode(CalibrationMode_t calmode=kDefault){ fCalibrationMode=calmode;};
47
48 ClassDef(MCalibrate, 0) // Task to calculate cerenkov photons using calibration constants
49};
50
51
52#endif
Note: See TracBrowser for help on using the repository browser.