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 MCalibrationTestCam;
|
---|
23 | class MBadPixelsCam;
|
---|
24 | class MGeomCam;
|
---|
25 | class MCalibrationTestCalc : public MTask
|
---|
26 | {
|
---|
27 | private:
|
---|
28 |
|
---|
29 | static const Float_t fgPhotErrLimit; //! Default for fPhotErrLimit (now set to: 4.)
|
---|
30 |
|
---|
31 | // Variables
|
---|
32 | Float_t fPhotErrLimit; // Limit acceptance nr. cal. phots w.r.t. area idx mean (in sigmas)
|
---|
33 |
|
---|
34 | TString fOutputPath; // Path to the output file
|
---|
35 | TString fOutputFile; // Name of the output file
|
---|
36 |
|
---|
37 | // Pointers
|
---|
38 | MBadPixelsCam *fBadPixels; //! Bad Pixels
|
---|
39 | MHCalibrationTestCam *fTestCam; //! Calibrated Photons in the camera
|
---|
40 | MCalibrationTestCam *fCam; //! Storage Calibrated Photons in the camera
|
---|
41 | MGeomCam *fGeom; //! Camera geometry
|
---|
42 |
|
---|
43 | // functions
|
---|
44 | const char* GetOutputFile();
|
---|
45 |
|
---|
46 | void FinalizeNotInterpolated();
|
---|
47 | void FinalizeCalibratedPhotons() const;
|
---|
48 | Int_t CalcMaxNumBadPixelsCluster();
|
---|
49 | void LoopNeighbours( const TArrayI &arr, TArrayI &known, Int_t &clustersize, const Int_t idx );
|
---|
50 |
|
---|
51 | Int_t PreProcess (MParList *pList);
|
---|
52 | Bool_t ReInit (MParList *pList);
|
---|
53 | Int_t Process ();
|
---|
54 | Int_t PostProcess();
|
---|
55 |
|
---|
56 | public:
|
---|
57 |
|
---|
58 | MCalibrationTestCalc(const char *name=NULL, const char *title=NULL);
|
---|
59 |
|
---|
60 | void SetOutputFile ( TString file="TestCalibStat.txt" );
|
---|
61 | void SetOutputPath ( TString path="." );
|
---|
62 | void SetPhotErrLimit( const Float_t f=fgPhotErrLimit ) { fPhotErrLimit = f; }
|
---|
63 |
|
---|
64 | ClassDef(MCalibrationTestCalc, 1) // Task retrieving the results of MHCalibrationTestCam
|
---|
65 | };
|
---|
66 |
|
---|
67 | #endif
|
---|