source: trunk/MagicSoft/Mars/mcalib/MCalibrateData.h@ 3249

Last change on this file since 3249 was 3249, checked in by gaug, 21 years ago
*** empty log message ***
File size: 2.5 KB
Line 
1#ifndef MARS_MCalibrateData
2#define MARS_MCalibrateData
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MCalibrateData
7// //
8// Integrates the desired ADC time slices of one pixel and apply //
9// calibration constants //
10// //
11// Differences between MCalibrateData and MCalibrate :
12// in MCalibrateData
13// - in ReInit the MPedPhot container is filled using
14// - the pedstals/slice from MPedestalCam
15// - the number of used FADC slices from MExtractedSignalCam
16// - the photon/ADC conversion factor from MCalibrationCam
17// //
18// //
19/////////////////////////////////////////////////////////////////////////////
20#ifndef MARS_MTask
21#include "MTask.h"
22#endif
23
24class MGeomCam;
25class MPedestalCam;
26class MCalibrationChargeCam;
27class MExtractedSignalCam;
28
29class MPedPhotCam;
30class MCerPhotEvt;
31
32class MCalibrateData : public MTask
33{
34private:
35 MPedestalCam *fPedestal; // Pedestals/slice [ADC counts]
36 MCalibrationChargeCam *fCalibrations; // Calibration constants
37 MExtractedSignalCam *fSignals; // Integrated charge in FADCs counts
38
39 MPedPhotCam *fPedPhot; // Pedestals/(used slices) [photons]
40 MCerPhotEvt *fCerPhotEvt; // Cerenkov Photon Event used for calculation
41
42 Float_t fNumUsedHiGainFADCSlices;
43 Float_t fNumUsedLoGainFADCSlices;
44
45 Float_t fConversionHiLo;
46 UShort_t fCalibrationMode;
47
48 Bool_t GetConversionFactor(UInt_t,
49 Float_t &, Float_t &, Float_t &, Float_t &);
50
51 Int_t PreProcess(MParList *pList);
52 Bool_t ReInit(MParList *pList);
53 Int_t Process();
54
55public:
56
57 enum CalibrationMode_t{kNone=0,kBlindPixel,kFfactor,kPinDiode,kCombined};
58 static const CalibrationMode_t kDefault = kBlindPixel;
59
60 MCalibrateData(CalibrationMode_t calmode = kDefault,const char *name=NULL, const char *title=NULL);
61
62 void SetConversionHiLo(Float_t conv) { fConversionHiLo = conv; };
63 void SetCalibrationMode(CalibrationMode_t calmode=kDefault){ fCalibrationMode=calmode;};
64
65 ClassDef(MCalibrateData, 0) // Task to calculate cerenkov photons using calibration constants
66};
67
68
69#endif
Note: See TracBrowser for help on using the repository browser.