source: trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.h@ 6723

Last change on this file since 6723 was 6688, checked in by gaug, 20 years ago
*** empty log message ***
File size: 3.0 KB
Line 
1#ifndef MARS_MHCalibrationPulseTimeCam
2#define MARS_MHCalibrationPulseTimeCam
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 MRawEvtData;
18class MHCalibrationChargePix;
19class MHCalibrationPulseTimeCam : public MHCalibrationCam
20{
21private:
22
23 static const Byte_t fgLowerSignalLimit; //! Default for fLowerSignalLimit
24
25 static const Int_t fgHiGainNbins; //! Nr. bins of HiGain Histograms (now set to: 550 )
26 static const Axis_t fgHiGainFirst; //! First Bin of HiGain Histograms (now set to: -100.5)
27 static const Axis_t fgHiGainLast; //! Last Bin of HiGain Histograms (now set to: 999.5)
28 static const Float_t fgProbLimit; //! The default for fProbLimit (now set to: 0.00001)
29
30 static const TString fgReferenceFile; //! default for fReferenceFile ("mjobs/calibrationref.rc")
31
32 static const TString gsHistName; //! Default Histogram names
33 static const TString gsHistTitle; //! Default Histogram titles
34 static const TString gsHistXTitle; //! Default Histogram x-axis titles
35 static const TString gsHistYTitle; //! Default Histogram y-axis titles
36
37 Byte_t fLowerSignalLimit; // Lower signal limit for pulse time extraction
38
39 TString fReferenceFile; // File name containing the reference values
40
41 Float_t fInnerRefTime; // The reference mean arrival time inner pixels
42 Float_t fOuterRefTime; // The reference mean arrival time outer pixels
43
44 MArrayD fSumhiarea ; //!
45 MArrayD fSumhisector; //!
46
47 MRawEvtData *fRawEvt; //! Raw event data
48
49 Bool_t SetupHists(const MParList *pList);
50 Bool_t ReInitHists(MParList *pList);
51 Bool_t FillHists(const MParContainer *par, const Stat_t w=1);
52
53 Bool_t FinalizeHists();
54
55 void DrawDataCheckPixel(MHCalibrationPix &pix, const Float_t refline);
56 void DisplayRefLines ( const TH1F *hist, const Float_t refline) const;
57 void CalcHists (MHCalibrationPix &hist, MCalibrationPix &pix);
58
59 Int_t ReadEnv ( const TEnv &env, TString prefix, Bool_t print);
60
61public:
62
63 MHCalibrationPulseTimeCam(const char *name=NULL, const char *title=NULL);
64 ~MHCalibrationPulseTimeCam() {}
65
66 // Clone
67 TObject *Clone(const char *name="") const;
68
69 // Draw
70 void Draw(const Option_t *opt);
71
72 void SetReferenceFile ( const TString ref=fgReferenceFile ) { fReferenceFile = ref; }
73 void SetLowerSignalLimit( const Byte_t lim=fgLowerSignalLimit ) { fLowerSignalLimit = lim; }
74
75 Bool_t GetPixelContent ( Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const { return kTRUE; }
76 void DrawPixelContent( Int_t num ) const;
77
78 ClassDef(MHCalibrationPulseTimeCam, 1) // Histogram class for Pulse Time Checks
79};
80
81#endif
Note: See TracBrowser for help on using the repository browser.