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

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