Line | |
---|
1 | #ifndef MARS_MHCalibrationPix
|
---|
2 | #define MARS_MHCalibrationPix
|
---|
3 |
|
---|
4 | #ifndef MARS_MHGausEvents
|
---|
5 | #include "MHGausEvents.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MHCalibrationPix : public MHGausEvents
|
---|
9 | {
|
---|
10 | private:
|
---|
11 |
|
---|
12 | const static Float_t fgBlackoutLimit; //! Default for fBlackoutLimit (now set to: 5. )
|
---|
13 | const static Float_t fgPickupLimit; //! Default for fPickupLimit (now set to: 5. )
|
---|
14 |
|
---|
15 | protected:
|
---|
16 |
|
---|
17 | Float_t fBlackoutLimit; // Lower nr sigmas from mean until event is considered blackout
|
---|
18 | Int_t fSaturated; // Number of events classified as saturated
|
---|
19 | Float_t fPickupLimit; // Upper nr sigmas from mean until event is considered pickup
|
---|
20 |
|
---|
21 | public:
|
---|
22 |
|
---|
23 | MHCalibrationPix(const char* name=NULL, const char* title=NULL);
|
---|
24 |
|
---|
25 | void Clear(Option_t *o="");
|
---|
26 |
|
---|
27 | // Getters
|
---|
28 | const Double_t GetBlackout () const;
|
---|
29 | const Double_t GetPickup () const;
|
---|
30 | const Float_t GetSaturated () const { return fSaturated; }
|
---|
31 |
|
---|
32 | // Fits
|
---|
33 | Bool_t RepeatFit(const Option_t *option="RQ0"); // Repeat fit within limits defined by fPickupLimit
|
---|
34 | void BypassFit(); // Take mean and RMS from the histogram
|
---|
35 |
|
---|
36 | // Setters
|
---|
37 | void AddSaturated ( const Int_t i ) { fSaturated += i; }
|
---|
38 | void SetBlackoutLimit ( const Float_t lim=fgBlackoutLimit ) { fBlackoutLimit = lim; }
|
---|
39 | void SetPickupLimit ( const Float_t lim=fgPickupLimit ) { fPickupLimit = lim; }
|
---|
40 |
|
---|
41 | ClassDef(MHCalibrationPix, 1) // Base class for calibration events
|
---|
42 | };
|
---|
43 |
|
---|
44 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.