| 1 | #ifndef MARS_MCalibrationTestCalc
|
|---|
| 2 | #define MARS_MCalibrationTestCalc
|
|---|
| 3 |
|
|---|
| 4 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 5 | // //
|
|---|
| 6 | // MCalibrationTestCalc //
|
|---|
| 7 | // //
|
|---|
| 8 | // Integrates the time slices of the all pixels of a calibration event //
|
|---|
| 9 | // and substract the pedestal value //
|
|---|
| 10 | // //
|
|---|
| 11 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 12 |
|
|---|
| 13 | #ifndef MARS_MTask
|
|---|
| 14 | #include "MTask.h"
|
|---|
| 15 | #endif
|
|---|
| 16 |
|
|---|
| 17 | #ifndef ROOT_TArrayI
|
|---|
| 18 | #include <TArrayI.h>
|
|---|
| 19 | #endif
|
|---|
| 20 |
|
|---|
| 21 | class MHCalibrationTestCam;
|
|---|
| 22 | class MCalibrationIntensityTestCam;
|
|---|
| 23 | class MCalibrationTestCam;
|
|---|
| 24 | class MBadPixelsIntensityCam;
|
|---|
| 25 | class MBadPixelsCam;
|
|---|
| 26 | class MGeomCam;
|
|---|
| 27 |
|
|---|
| 28 | class MCalibrationTestCalc : public MTask
|
|---|
| 29 | {
|
|---|
| 30 | private:
|
|---|
| 31 |
|
|---|
| 32 | static const Float_t fgPhotErrLimit; //! Default for fPhotErrLimit (now set to: 4.)
|
|---|
| 33 |
|
|---|
| 34 | // Variables
|
|---|
| 35 | Float_t fPhotErrLimit; // Limit acceptance nr. cal. phots w.r.t. area idx mean (in sigmas)
|
|---|
| 36 |
|
|---|
| 37 | TString fOutputPath; // Path to the output file
|
|---|
| 38 | TString fOutputFile; // Name of the output file
|
|---|
| 39 |
|
|---|
| 40 | // Pointers
|
|---|
| 41 | MBadPixelsIntensityCam *fIntensBad; //! Bad Pixels
|
|---|
| 42 | MBadPixelsCam *fBadPixels; //! Bad Pixels
|
|---|
| 43 | MHCalibrationTestCam *fTestCam; //! Calibrated Photons in the camera
|
|---|
| 44 | MCalibrationIntensityTestCam *fIntensCam; //! Storage Calibrated Photons in the camera
|
|---|
| 45 | MCalibrationTestCam *fCam; //! Storage Calibrated Photons in the camera
|
|---|
| 46 | MGeomCam *fGeom; //! Camera geometry
|
|---|
| 47 |
|
|---|
| 48 | // functions
|
|---|
| 49 | const char* GetOutputFile();
|
|---|
| 50 |
|
|---|
| 51 | void FinalizeNotInterpolated();
|
|---|
| 52 | void FinalizeCalibratedPhotons() const;
|
|---|
| 53 | Int_t CalcMaxNumBadPixelsCluster();
|
|---|
| 54 | void LoopNeighbours( const TArrayI &arr, TArrayI &known, Int_t &clustersize, const Int_t idx );
|
|---|
| 55 |
|
|---|
| 56 | Bool_t ReInit (MParList *pList);
|
|---|
| 57 | Int_t Process ();
|
|---|
| 58 | Int_t PostProcess();
|
|---|
| 59 |
|
|---|
| 60 | public:
|
|---|
| 61 |
|
|---|
| 62 | MCalibrationTestCalc(const char *name=NULL, const char *title=NULL);
|
|---|
| 63 |
|
|---|
| 64 | void SetOutputFile ( TString file="TestCalibStat.txt" );
|
|---|
| 65 | void SetOutputPath ( TString path="." );
|
|---|
| 66 | void SetPhotErrLimit( const Float_t f=fgPhotErrLimit ) { fPhotErrLimit = f; }
|
|---|
| 67 |
|
|---|
| 68 | ClassDef(MCalibrationTestCalc, 1) // Task retrieving the results of MHCalibrationTestCam
|
|---|
| 69 | };
|
|---|
| 70 |
|
|---|
| 71 | #endif
|
|---|