source: trunk/MagicSoft/Mars/mcalib/MMcCalibrationCalc.h@ 3819

Last change on this file since 3819 was 3768, checked in by moralejo, 21 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1#ifndef MARS_MMcCalibrationCalc
2#define MARS_MMcCalibrationCalc
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8class MCalibrationChargeCam;
9class MCalibrationQECam;
10class MGeomCam;
11class MHillas;
12class MNewImagePar;
13class MMcEvt;
14class MMcFadcHeader;
15
16class TH1F;
17
18class MMcCalibrationCalc : public MTask
19{
20private:
21 MCalibrationChargeCam *fCalCam;
22 MCalibrationQECam *fQECam;
23 MGeomCam *fGeom;
24 MHillas *fHillas;
25 MNewImagePar *fNew;
26 MMcEvt *fMcEvt;
27 MMcFadcHeader *fHeaderFadc;
28
29 Float_t fADC2PhotEl; // Conversion factor (photel / ADC count)
30 Float_t fPhot2PhotEl; // Conversion factor (photons / photoelectron) = average QE
31 Long_t fEvents;
32
33 TH1F* fHistRatio; // Histogram for monitoring the calibration.
34
35 Bool_t CheckRunType(MParList *pList) const;
36 Int_t PreProcess(MParList *pList);
37 Bool_t ReInit(MParList *pList);
38 Int_t Process();
39 Int_t PostProcess();
40
41public:
42 MMcCalibrationCalc(const char *name=NULL, const char *title=NULL);
43
44 TH1F* GetHist() { return fHistRatio; }
45
46 ClassDef(MMcCalibrationCalc, 0) // Task which obtains, for MC files, the calibration factor from ADC counts to photons.
47};
48
49#endif
Note: See TracBrowser for help on using the repository browser.