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

Last change on this file since 3421 was 3301, checked in by wittek, 21 years ago
*** empty log message ***
File size: 2.6 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 MGeomCam *fCam;
36 MPedestalCam *fPedestal; // Pedestals/slice [ADC counts]
37 MCalibrationChargeCam *fCalibrations; // Calibration constants
38 MExtractedSignalCam *fSignals; // Integrated charge in FADCs counts
39
40 MPedPhotCam *fPedPhot; // Pedestals/(used slices) [photons]
41 MCerPhotEvt *fCerPhotEvt; // Cerenkov Photon Event used for calculation
42
43 Float_t fNumUsedHiGainFADCSlices;
44 Float_t fNumUsedLoGainFADCSlices;
45
46 Float_t fConversionHiLo;
47 UShort_t fCalibrationMode;
48
49 Bool_t GetConversionFactor(UInt_t,
50 Float_t &, Float_t &, Float_t &, Float_t &);
51
52 Int_t PreProcess(MParList *pList);
53 Bool_t ReInit(MParList *pList);
54 Int_t Process();
55
56public:
57
58 enum CalibrationMode_t{kNone=0,kBlindPixel,kFfactor,kPinDiode,kCombined};
59 static const CalibrationMode_t kDefault = kBlindPixel;
60
61 MCalibrateData(CalibrationMode_t calmode = kDefault,const char *name=NULL, const char *title=NULL);
62
63 void SetConversionHiLo(Float_t conv) { fConversionHiLo = conv; };
64 void SetCalibrationMode(CalibrationMode_t calmode=kDefault){ fCalibrationMode=calmode;};
65
66 ClassDef(MCalibrateData, 0) // Task to calculate cerenkov photons using calibration constants
67};
68
69
70#endif
71
72
73
74
75
76
77
78
79
Note: See TracBrowser for help on using the repository browser.