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

Last change on this file since 5138 was 4067, checked in by gaug, 21 years ago
*** empty log message ***
File size: 2.0 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 MCalibrationQECam;
20class MExtractedSignalCam;
21class MCerPhotEvt;
22
23class MCalibrate : public MTask
24{
25private:
26 MGeomCam *fGeomCam; // Camera geometry container
27 MCalibrationChargeCam *fCalibrations; // Calibration constants
28 MCalibrationQECam *fQEs; // Quantum efficiencies
29 MBadPixelsCam *fBadPixels; // Bad Pixels information
30 MExtractedSignalCam *fSignals; // Integrated charge in FADCs counts
31 MCerPhotEvt *fCerPhotEvt; // Cerenkov Photon Event used for calculation
32
33 Float_t fConversionHiLo;
34 UShort_t fCalibrationMode;
35
36 Int_t PreProcess(MParList *pList);
37 Bool_t ReInit(MParList *pList);
38 Int_t Process();
39
40public:
41
42 enum CalibrationMode_t{kNone=0,kFlatCharge=1,kBlindPixel,kFfactor,kPinDiode,kCombined, kDummy};
43 static const CalibrationMode_t kDefault = kFfactor;
44
45 MCalibrate(CalibrationMode_t calmode = kDefault,const char *name=NULL, const char *title=NULL);
46
47 void SetConversionHiLo(Float_t conv) { fConversionHiLo = conv; };
48 void SetCalibrationMode(CalibrationMode_t calmode=kDefault){ fCalibrationMode=calmode;};
49
50 ClassDef(MCalibrate, 0) // Task to calculate cerenkov photons using calibration constants
51};
52
53
54#endif
Note: See TracBrowser for help on using the repository browser.