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

Last change on this file since 4780 was 4649, checked in by gaug, 20 years ago
*** empty log message ***
File size: 2.3 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;
25class MCalibrationTestCalc : public MTask
26{
27private:
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
56public:
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
Note: See TracBrowser for help on using the repository browser.