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

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