source: trunk/MagicSoft/Mars/mcalib/MCalibrationTestCalc.h@ 8422

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