source: trunk/MagicSoft/Mars/mhcalib/MHCalibrationPix.h@ 4994

Last change on this file since 4994 was 4994, checked in by gaug, 20 years ago
*** empty log message ***
File size: 2.0 KB
Line 
1#ifndef MARS_MHCalibrationPix
2#define MARS_MHCalibrationPix
3
4#ifndef MARS_MHGausEvents
5#include "MHGausEvents.h"
6#endif
7
8class MHCalibrationPix : public MHGausEvents
9{
10private:
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
15protected:
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 Int_t fPixId; // Pixel ID
21
22public:
23
24 MHCalibrationPix(const char* name=NULL, const char* title=NULL);
25 ~MHCalibrationPix() {}
26
27 void Clear(Option_t *o="");
28
29 // TObject *Clone(const char* name="") const;
30
31 // Getters
32 const Double_t GetBlackout () const;
33 const Double_t GetPickup () const;
34 const Int_t GetPixId () const { return fPixId; }
35 const Float_t GetSaturated () const { return fSaturated; }
36
37 // Fits
38 Bool_t RepeatFit(const Option_t *option="RQ0"); // Repeat fit within limits defined by fPickupLimit
39 void BypassFit(); // Take mean and RMS from the histogram
40
41 // Setters
42 void AddSaturated ( const Int_t i ) { fSaturated += i; }
43 void SetBlackoutLimit ( const Float_t lim=fgBlackoutLimit ) { fBlackoutLimit = lim; }
44 void SetPickupLimit ( const Float_t lim=fgPickupLimit ) { fPickupLimit = lim; }
45 void SetPixId ( const Int_t i ) { fPixId = i; }
46
47 // Miscelleaneous
48 virtual void ChangeHistId(const Int_t id); // Changes names and titles of the histogram
49 virtual void Renorm(); // Re-normalize the results
50
51 ClassDef(MHCalibrationPix, 1) // Base class for calibration events
52};
53
54#endif
Note: See TracBrowser for help on using the repository browser.