source: trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargePix.h@ 7884

Last change on this file since 7884 was 7188, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MARS_MHCalibrationChargePix
2#define MARS_MHCalibrationChargePix
3
4#ifndef MARS_MHCalibrationPix
5#include "MHCalibrationPix.h"
6#endif
7
8class MHCalibrationChargePix : public MHCalibrationPix
9{
10
11protected:
12
13 TH1F fHAbsTime; // Histogram containing the absolute arrival times
14
15 Int_t fAbsTimeNbins; // Number of bins used for the fHAbsTime
16 Axis_t fAbsTimeFirst; // Lower bound bin used for the fHAbsTime
17 Axis_t fAbsTimeLast; // Upper bound bin used for the fHAbsTime
18
19public:
20
21 MHCalibrationChargePix(const char *name=NULL, const char *title=NULL);
22 ~MHCalibrationChargePix() {}
23
24 void Reset();
25 void InitBins();
26
27 // Setters
28 virtual void SetAbsTimeNbins(const Int_t bins ) { fAbsTimeNbins = bins; }
29 virtual void SetAbsTimeFirst(const Axis_t first) { fAbsTimeFirst = first; }
30 virtual void SetAbsTimeLast( const Axis_t last ) { fAbsTimeLast = last; }
31
32 // Getters
33 TH1F *GetHAbsTime() { return &fHAbsTime; }
34 const TH1F *GetHAbsTime() const { return &fHAbsTime; }
35
36 const Float_t GetAbsTimeMean( ) const;
37 const Float_t GetAbsTimeRms() const;
38 const Float_t GetIntegral() const;
39
40 // Fill histos
41 Bool_t FillAbsTime(const Float_t t);
42
43 // Draws
44 void Draw(Option_t *opt="");
45
46 ClassDef(MHCalibrationChargePix, 1) // Base Histogram class for Charge Pixel Calibration
47};
48
49#endif /* MARS_MHCalibrationChargePix */
Note: See TracBrowser for help on using the repository browser.