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

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