| Line |  | 
|---|
| 1 | #ifndef MARS_MMcCalibrationCalc | 
|---|
| 2 | #define MARS_MMcCalibrationCalc | 
|---|
| 3 |  | 
|---|
| 4 | #ifndef MARS_MTask | 
|---|
| 5 | #include "MTask.h" | 
|---|
| 6 | #endif | 
|---|
| 7 |  | 
|---|
| 8 | class MCalibrationChargeCam; | 
|---|
| 9 | class MCalibrationQECam; | 
|---|
| 10 | class MGeomCam; | 
|---|
| 11 | class MHillas; | 
|---|
| 12 | class MImagePar; | 
|---|
| 13 | class MNewImagePar; | 
|---|
| 14 | class MMcEvt; | 
|---|
| 15 | class MMcFadcHeader; | 
|---|
| 16 |  | 
|---|
| 17 | class TH1F; | 
|---|
| 18 |  | 
|---|
| 19 | class MMcCalibrationCalc : public MTask | 
|---|
| 20 | { | 
|---|
| 21 | private: | 
|---|
| 22 | MCalibrationChargeCam     *fCalCam; | 
|---|
| 23 | MCalibrationQECam         *fQECam; | 
|---|
| 24 | MGeomCam                  *fGeom; | 
|---|
| 25 | MHillas                   *fHillas; | 
|---|
| 26 | MNewImagePar              *fNew; | 
|---|
| 27 | MImagePar                 *fPar; | 
|---|
| 28 | MMcEvt                    *fMcEvt; | 
|---|
| 29 | MMcFadcHeader             *fHeaderFadc; | 
|---|
| 30 |  | 
|---|
| 31 | Float_t fADC2PhotEl;   // Conversion factor (photel / ADC count). FOR INER PIXELS | 
|---|
| 32 | Float_t fPhot2PhotEl;  // Conversion factor (photons / photoelectron) = average QE. FOR INER PIXELS | 
|---|
| 33 | Long_t  fEvents; | 
|---|
| 34 | Float_t fOuterPixelsLightCollection; // Light collection efficiency (plexiglas, light guide) of | 
|---|
| 35 | // outer pixels w.r.t inner ones | 
|---|
| 36 |  | 
|---|
| 37 | Float_t fMinSize; | 
|---|
| 38 | // Minimum SIZE (before calibration, ADC counts) an event must have to be considered in the | 
|---|
| 39 | // calculation of the calibration constants. | 
|---|
| 40 |  | 
|---|
| 41 | TH1F*   fHistADC2PhotEl; | 
|---|
| 42 | TH1F*   fHistPhot2PhotEl; // Histograms for monitoring the calibration. | 
|---|
| 43 |  | 
|---|
| 44 | Bool_t CheckRunType(MParList *pList) const; | 
|---|
| 45 | Int_t  PreProcess(MParList *pList); | 
|---|
| 46 | Bool_t ReInit(MParList *pList); | 
|---|
| 47 | Int_t  Process(); | 
|---|
| 48 | Int_t  PostProcess(); | 
|---|
| 49 |  | 
|---|
| 50 | public: | 
|---|
| 51 | MMcCalibrationCalc(const char *name=NULL, const char *title=NULL); | 
|---|
| 52 |  | 
|---|
| 53 | TH1F*   GetHistADC2PhotEl() { return fHistADC2PhotEl; } | 
|---|
| 54 | TH1F*   GetHistPhot2PhotEl() { return fHistPhot2PhotEl; } | 
|---|
| 55 |  | 
|---|
| 56 | void SetMinSize(Float_t x) { fMinSize = x; } | 
|---|
| 57 |  | 
|---|
| 58 | ClassDef(MMcCalibrationCalc, 0)   // Task which obtains, for MC files, the calibration factor from ADC counts to photons. | 
|---|
| 59 | }; | 
|---|
| 60 |  | 
|---|
| 61 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.