source: tags/Mars-V0.9.4/manalysis/MMcCalibrationUpdate.h

Last change on this file was 7005, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 2.3 KB
Line 
1#ifndef MARS_MMcCalibrationUpdate
2#define MARS_MMcCalibrationUpdate
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8#ifndef MARS_MCalibrateData
9#include "MCalibrateData.h"
10#endif
11
12class MCalibrationChargeCam;
13class MCalibrationQECam;
14class MPedPhotCam;
15class MGeomCam;
16class MMcFadcHeader;
17class MExtractedSignalCam;
18
19#include "MCalibrateData.h"
20
21class MMcCalibrationUpdate : public MTask
22{
23private:
24 Bool_t CheckRunType(MParList *pList) const;
25 Int_t PreProcess(MParList *pList);
26 Int_t Process();
27 Bool_t ReInit(MParList *pList);
28
29 MCalibrationChargeCam *fCalCam;
30 MCalibrationQECam *fQECam;
31 MPedPhotCam *fPedPhotCam;
32 MGeomCam *fGeom;
33 MMcFadcHeader *fHeaderFadc;
34 MExtractedSignalCam *fSignalCam;
35
36 Float_t fADC2PhElInner; // Conversion factor from ADC counts to photo-electrons
37 Float_t fADC2PhElOuter; // for inner and outer pixels.
38
39 Bool_t fFillCalibrationCam;
40 Bool_t fOuterPixelsGainScaling;
41
42 Float_t fAmplitude; // FADC parameters from camera simulation (see camera manual)
43 Float_t fAmplitudeOuter; // to be read from the MMcFadcHeader.
44 Float_t fConversionHiLo; // Ratio of high to low gain to be used for low gain signal calibration.
45
46 Float_t fHeaderLow2HiGainFactor; // Ratio of high to low gain, as read from the MMcFadcHeader
47 Float_t fUserLow2HiGainFactor; // Ratio of high to low gain, as set manually by the user
48
49
50 Float_t fOuterPixelsLightCollection;
51 // Photon collection efficiency of outer pixels w.r.t. inner ones.
52
53 MCalibrateData::SignalType_t fSignalType;
54 // Type defined in MCalibrateData.h. Indicates whether calibration is
55 // made in photons or in photoelectrons! Default: MCalibrateData::kPhe
56
57
58public:
59 MMcCalibrationUpdate(const char *name=NULL, const char *title=NULL);
60
61 void SetOuterPixelsGainScaling(Bool_t tf)
62 { fOuterPixelsGainScaling = tf; }
63
64 void SetUserLow2HiGainFactor(Float_t x) { fUserLow2HiGainFactor = x; }
65
66 void SetSignalType (MCalibrateData::SignalType_t x) { fSignalType = x; }
67 MCalibrateData::SignalType_t GetSignalType () const { return fSignalType; }
68
69 ClassDef(MMcCalibrationUpdate, 0) // Task which obtains, for MC files, the pedestal mean and rms, and the calibration factor from ADC counts to photons.
70};
71
72#endif
73
74
75
76
77
78
Note: See TracBrowser for help on using the repository browser.