source: trunk/MagicSoft/Mars/mcalib/MHCalibrationPINDiode.h@ 2931

Last change on this file since 2931 was 2931, checked in by gaug, 21 years ago
*** empty log message ***
File size: 1.2 KB
Line 
1#ifndef MARS_MHCalibrationPINDiode
2#define MARS_MHCalibrationPINDiode
3
4#ifndef MARS_MHCalibrationPixel
5#include "MHCalibrationPixel.h"
6#endif
7
8class TH1I;
9class TH1F;
10class TF1;
11class TPaveText;
12
13class MHCalibrationPINDiode : public MHCalibrationPixel
14{
15private:
16
17 TH1F* fHPINDiodeCharge; // Histogram containing the summed 32 PINDiode slices
18 TH1F* fHPINDiodeErrCharge; // Variance of summed FADC slices
19 TH1F* fHPINDiodeTime; // Histogram with time evolution of summed charges
20
21 TH1I* fHPINDiodeChargevsN; // Summed Charge vs. Event Nr.
22
23 const Int_t fChargeNbins;
24 const Int_t fTimeNbins;
25 const Int_t fChargevsNbins;
26
27 const Axis_t fTimeFirst;
28 const Axis_t fTimeLast;
29
30public:
31
32 MHCalibrationPINDiode(const char *name=NULL, const char *title=NULL);
33 ~MHCalibrationPINDiode();
34
35 void Clear(Option_t *o="");
36 void Reset();
37
38 // Fill histos
39 Bool_t FillCharge(Float_t q);
40 Bool_t FillTime(Float_t t);
41 Bool_t FillChargevsN(Float_t q, Int_t n);
42
43 // Fits -- not yet implemented
44 Bool_t FitCharge(Option_t *option="RQ0") { return kTRUE; }
45 Bool_t FitTime(Option_t *option="RQ0") { return kTRUE; }
46
47 // Others
48 void CutAllEdges();
49
50 ClassDef(MHCalibrationPINDiode, 0) // Histograms from the Calibration PIN Diode
51};
52
53#endif
54
Note: See TracBrowser for help on using the repository browser.