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

Last change on this file since 6723 was 6342, checked in by moralejo, 20 years ago
*** empty log message ***
File size: 2.0 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.
45
46 Float_t fOuterPixelsLightCollection;
47 // Photon collection efficiency of outer pixels w.r.t. inner ones.
48
49 MCalibrateData::SignalType_t fSignalType;
50 // Type defined in MCalibrateData.h. Indicates whether calibration is
51 // made in photons or in photoelectrons! Default: MCalibrateData::kPhe
52
53
54public:
55 MMcCalibrationUpdate(const char *name=NULL, const char *title=NULL);
56
57 void SetOuterPixelsGainScaling(Bool_t tf)
58 { fOuterPixelsGainScaling = tf; }
59
60 void SetSignalType (MCalibrateData::SignalType_t x) { fSignalType = x; }
61 MCalibrateData::SignalType_t GetSignalType () const { return fSignalType; }
62
63 ClassDef(MMcCalibrationUpdate, 0) // Task which obtains, for MC files, the pedestal mean and rms, and the calibration factor from ADC counts to photons.
64};
65
66#endif
67
68
69
70
71
72
Note: See TracBrowser for help on using the repository browser.