source: trunk/MagicSoft/Mars/manalysis/MMcCalibrationUpdate.h@ 8923

Last change on this file since 8923 was 8354, checked in by tbretz, 18 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
19class MMcCalibrationUpdate : public MTask
20{
21private:
22 Bool_t CheckRunType(MParList *pList) const;
23 Int_t PreProcess(MParList *pList);
24 Int_t Process();
25 Bool_t ReInit(MParList *pList);
26
27 MCalibrationChargeCam *fCalCam;
28 MCalibrationQECam *fQECam;
29 MPedPhotCam *fPedPhotCam;
30 MGeomCam *fGeom;
31 MMcFadcHeader *fHeaderFadc;
32 MExtractedSignalCam *fSignalCam;
33
34 Float_t fADC2PhElInner; // Conversion factor from ADC counts to photo-electrons
35 Float_t fADC2PhElOuter; // for inner and outer pixels.
36
37 Bool_t fFillCalibrationCam;
38 Bool_t fOuterPixelsGainScaling;
39
40 Float_t fAmplitude; // FADC parameters from camera simulation (see camera manual)
41 Float_t fAmplitudeOuter; // to be read from the MMcFadcHeader.
42 Float_t fConversionHiLo; // Ratio of high to low gain to be used for low gain signal calibration.
43
44 Float_t fHeaderLow2HiGainFactor; // Ratio of high to low gain, as read from the MMcFadcHeader
45 Float_t fUserLow2HiGainFactor; // Ratio of high to low gain, as set manually by the user
46
47
48 Float_t fOuterPixelsLightCollection;
49 // Photon collection efficiency of outer pixels w.r.t. inner ones.
50
51 MCalibrateData::SignalType_t fSignalType;
52 // Type defined in MCalibrateData.h. Indicates whether calibration is
53 // made in photons or in photoelectrons! Default: MCalibrateData::kPhe
54
55
56public:
57 MMcCalibrationUpdate(const char *name=NULL, const char *title=NULL);
58
59 void SetOuterPixelsGainScaling(Bool_t tf)
60 { fOuterPixelsGainScaling = tf; }
61
62 void SetUserLow2HiGainFactor(Float_t x) { fUserLow2HiGainFactor = x; }
63
64 void SetSignalType (MCalibrateData::SignalType_t x) { fSignalType = x; }
65 MCalibrateData::SignalType_t GetSignalType () const { return fSignalType; }
66
67 ClassDef(MMcCalibrationUpdate, 0) // Task which obtains, for MC files, the pedestal mean and rms, and the calibration factor from ADC counts to photons.
68};
69
70#endif
Note: See TracBrowser for help on using the repository browser.