source: branches/Mars_use_drstimefiles/mhcalib/MHCalibrationChargeBlindCam.h@ 18066

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