source: branches/removing_cpp11_features/mhcalib/MHCalibrationRelTimeCam.h@ 19128

Last change on this file since 19128 was 8452, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 3.0 KB
Line 
1#ifndef MARS_MHCalibrationRelTimeCam
2#define MARS_MHCalibrationRelTimeCam
3
4#ifndef MARS_MHCalibrationCam
5#include "MHCalibrationCam.h"
6#endif
7
8#ifndef MARS_MArrayI
9#include "MArrayI.h"
10#endif
11
12#ifndef MARS_MArrayD
13#include "MArrayD.h"
14#endif
15
16class TH1F;
17class MGeomCam;
18class MHCalibrationRelTimeCam : public MHCalibrationCam
19{
20
21private:
22
23 static const Float_t fgNumHiGainSaturationLimit; //! The default for fNumHiGainSaturationLimit (now at: 0.25)
24 static const Int_t fgNbins; //! Default number of bins (now set to: 900 )
25 static const Axis_t fgFirst; //! Default lower histogram limit (now set to: -13.5 )
26 static const Axis_t fgLast; //! Default upper histogram limit (now set to: 13.5 )
27 static const Float_t fgProbLimit; //! The default for fProbLimit (now set to: 0.0)
28
29 static const TString gsHistName; //! Default Histogram names
30 static const TString gsHistTitle; //! Default Histogram titles
31 static const TString gsHistXTitle; //! Default Histogram x-axis titles
32 static const TString gsHistYTitle; //! Default Histogram y-axis titles
33
34 static const TString fgReferenceFile; //! default for fReferenceFile ("mjobs/calibrationref.rc")
35
36 Float_t fInnerRefTime; // The reference mean arrival time inner pixels
37 Float_t fOuterRefTime; // The reference mean arrival time outer pixels
38
39 TString fReferenceFile; // File name containing the reference values
40
41 MArrayD fSumareahi ; //
42 MArrayD fSumarealo ; //
43 MArrayD fSumsectorhi; //
44 MArrayD fSumsectorlo; //
45 MArrayI fNumareahi ; //
46 MArrayI fNumarealo ; //
47 MArrayI fNumsectorhi; //
48 MArrayI fNumsectorlo; //
49
50 Bool_t ReInitHists(MParList *pList);
51 Bool_t FillHists(const MParContainer *par, const Stat_t w=1);
52 Bool_t FinalizeHists();
53 void FinalizeBadPixels();
54
55 void CheckOverflow(MHCalibrationPix &pix) const;
56 void DrawDataCheckPixel(MHCalibrationPix &pix, const Float_t refline);
57 void DisplayRefLines( const TH1F *hist, const Float_t refline) const;
58
59 Int_t ReadEnv ( const TEnv &env, TString prefix, Bool_t print );
60
61public:
62
63 MHCalibrationRelTimeCam(const char *name=NULL, const char *title=NULL);
64 ~MHCalibrationRelTimeCam() {}
65
66 // Clone
67 TObject *Clone(const char *name="") const;
68
69 // Setters
70 void SetReferenceFile ( const TString ref=fgReferenceFile ) { fReferenceFile = ref; }
71
72 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
73 void DrawPixelContent(Int_t idx) const;
74
75 // Draw
76 void Draw(const Option_t *opt);
77
78 ClassDef(MHCalibrationRelTimeCam, 1) // Histogram class for Relative Time Camera Calibration
79};
80
81#endif
Note: See TracBrowser for help on using the repository browser.