source: trunk/Mars/manalysis/MMcCalibrationUpdate.h@ 9969

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