source: trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeBlindCam.h@ 5098

Last change on this file since 5098 was 5098, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 2.1 KB
Line 
1#ifndef MARS_MHCalibrationChargeBlindCam
2#define MARS_MHCalibrationChargeBlindCam
3
4#ifndef MARS_MHCalibrationCam
5#include "MHCalibrationCam.h"
6#endif
7
8#ifndef MARS_MHCalibrationChargeBlindPix
9#include "MHCalibrationChargeBlindPix.h"
10#endif
11
12class MRawEvtData;
13class MCalibrationBlindPix;
14class MHCalibrationChargeBlindPix;
15class MHCalibrationChargeBlindCam : public MHCalibrationCam
16{
17private:
18
19 static const Int_t fgNbins; //! Default for fNBins new style blind pixel (now set to: 128 )
20 static const Axis_t fgFirst; //! Default for fFirst new style blind pixel (now set to: - 0.5 )
21 static const Axis_t fgLast; //! Default for fLast new style blind pixel (now set to: 511.5 )
22
23 static const Axis_t fgSPheCut; //! Default for fSinglePheCut new style blind pixel (now set to: 20)
24
25 static const TString gsHistName; //! Default Histogram names
26 static const TString gsHistTitle; //! Default Histogram titles
27 static const TString gsHistXTitle; //! Default Histogram x-axis titles
28 static const TString gsHistYTitle; //! Default Histogram y-axis titles
29
30 Axis_t fSPheCut; // Signal value upon which event considered as single-phe
31
32 MRawEvtData *fRawEvt; //! Raw event data
33
34 MHCalibrationChargeBlindPix::FitFunc_t fFitFunc; // The actual fit function type
35
36 Bool_t SetupHists (const MParList *pList );
37 Bool_t ReInitHists ( MParList *pList );
38 Bool_t FillHists (const MParContainer *par, const Stat_t w=1 );
39 Bool_t FinalizeHists();
40
41 void FitBlindPixel( MHCalibrationChargeBlindPix &hist, MCalibrationBlindPix &pix);
42
43 Int_t ReadEnv ( const TEnv &env, TString prefix, Bool_t print);
44
45public:
46
47 MHCalibrationChargeBlindCam(const char *name=NULL, const char *title=NULL);
48
49 // Draw
50 void Draw(Option_t *opt="");
51 void SetFitFunc( const MHCalibrationChargeBlindPix::FitFunc_t func ) { fFitFunc = func; }
52 void SetSPheCut( const Axis_t a =fgSPheCut ) { fSPheCut = a; }
53
54 ClassDef(MHCalibrationChargeBlindCam, 1) // Histogram class for Blind Pixel Calibration
55};
56
57#endif
58
59
60
61
62
63
64
65
66
Note: See TracBrowser for help on using the repository browser.