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

Last change on this file since 4619 was 4568, checked in by gaug, 20 years ago
*** empty log message ***
File size: 2.5 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 MBadPixelsCam;
23class MGeomCam;
24class MCalibrationTestCalc : public MTask
25{
26private:
27
28 static const Float_t fgPhotErrLimit; //! Default for fPhotErrLimit (now set to: 4.)
29
30 // Variables
31 Float_t fPhotErrLimit; // Limit acceptance nr. cal. phots w.r.t. area idx mean (in sigmas)
32 Int_t fMaxNumBadPixelsCluster; // Number of not interpolateable pixels in biggest cluster
33
34 TArrayI fNumUninterpolateable; // Number uninterpolated Pixels per area index
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 MGeomCam *fGeom; //! Camera geometry
43
44 // functions
45 const char* GetOutputFile();
46
47 void FinalizeNotInterpolated();
48 void FinalizeCalibratedPhotons() const;
49 void CalcMaxNumBadPixelsCluster();
50 void LoopNeighbours( const TArrayI &arr, TArrayI &known, Int_t &clustersize, const Int_t idx );
51
52 Int_t PreProcess (MParList *pList);
53 Bool_t ReInit (MParList *pList);
54 Int_t Process ();
55 Int_t PostProcess();
56
57public:
58
59 MCalibrationTestCalc(const char *name=NULL, const char *title=NULL);
60
61 const Int_t GetMaxNumBadPixelsCluster () const { return fMaxNumBadPixelsCluster; }
62 const Int_t GetNumUninterpolateable ( const Int_t aidx ) const;
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
Note: See TracBrowser for help on using the repository browser.