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

Last change on this file since 4941 was 4936, checked in by gaug, 20 years ago
*** empty log message ***
File size: 2.5 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
15 Float_t fEventFrequency; // Event frequency in Hertz (to be set)
16
17 Float_t *CreateEventXaxis(Int_t n); // Create an x-axis for the Event TGraphs
18 Float_t *CreatePSDXaxis(Int_t n); // Create an x-axis for the PSD TGraphs
19 void CreateGraphEvents(); // Create the TGraph fGraphEvents of fEvents
20 void CreateGraphPowerSpectrum(); // Create the TGraph fGraphPowerSpectrum out of fPowerSpectrum
21
22protected:
23
24 Float_t fBlackoutLimit; // Lower nr sigmas from mean until event is considered blackout
25 Int_t fSaturated; // Number of events classified as saturated
26 Float_t fPickupLimit; // Upper nr sigmas from mean until event is considered pickup
27 Int_t fPixId; // Pixel ID
28
29public:
30
31 MHCalibrationPix(const char* name=NULL, const char* title=NULL);
32 ~MHCalibrationPix() {}
33
34 void Clear(Option_t *o="");
35
36 TObject *Clone(const char* name="") const;
37
38 // Getters
39 const Double_t GetBlackout() const;
40 const Double_t GetPickup() const;
41 const Int_t GetPixId() const { return fPixId; }
42 const Float_t GetSaturated() const { return fSaturated; }
43
44 // Fits
45 Bool_t RepeatFit(const Option_t *option="RQ0"); // Repeat fit within limits defined by fPickupLimit
46 void BypassFit(); // Take mean and RMS from the histogram
47
48 // Setters
49 void SetBlackoutLimit ( const Float_t lim=fgBlackoutLimit ) { fBlackoutLimit = lim; }
50 void SetEventFrequency ( const Float_t f ) { fEventFrequency = f; }
51 void SetPickupLimit ( const Float_t lim=fgPickupLimit ) { fPickupLimit = lim; }
52 void SetPixId ( const Int_t i ) { fPixId = i; }
53 void SetSaturated ( const Int_t i ) { fSaturated += i; }
54
55 // Miscelleaneous
56 virtual void ChangeHistId(const Int_t id); // Changes names and titles of the histogram
57 virtual void Renorm(); // Re-normalize the results
58
59 ClassDef(MHCalibrationPix, 1) // Base class for calibration events
60};
61
62#endif
Note: See TracBrowser for help on using the repository browser.