source: tags/Mars-V2.4/mcalib/MCalibrationTestCalc.h

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