Changeset 3631 for trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.h
- Timestamp:
- 04/01/04 23:05:48 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.h
r3626 r3631 2 2 #define MARS_MHCalibrationChargeCam 3 3 4 #ifndef ROOT_TObjArray5 #include <TObjArray.h>4 #ifndef MARS_MHCalibrationCam 5 #include "MHCalibrationCam.h" 6 6 #endif 7 7 8 #ifndef ROOT_TArrayI9 #include <TArrayI.h>10 #endif11 12 #ifndef ROOT_TArrayF13 #include <TArrayF.h>14 #endif15 16 #ifndef MARS_MH17 #include "MH.h"18 #endif19 #ifndef MARS_MCamEvent20 #include "MCamEvent.h"21 #endif22 23 class TText;24 class TArrayI;25 class TArrayF;26 8 class MRawEvtData; 27 9 class MGeomCam; … … 30 12 class MCalibrationChargeCam; 31 13 class MCalibrationChargePix; 32 class MHCalibrationChargeHiGainPix; 33 class MHCalibrationChargeLoGainPix; 34 class MHCalibrationChargeCam : public MH, public MCamEvent 14 class MHCalibrationChargePix; 15 class MHCalibrationChargeCam : public MHCalibrationCam 35 16 { 36 17 private: … … 39 20 static const Float_t fgNumHiGainSaturationLimit; // The default for fNumHiGainSaturationLimit 40 21 static const Float_t fgNumLoGainSaturationLimit; // The default for fNumLoGainSaturationLimit 41 static const Int_t fgPulserFrequency; // The default for fPulserFrequency42 22 43 23 Int_t fAverageNbins; // Number of bins for the average histograms 44 24 Float_t fNumHiGainSaturationLimit; // Rel. amount sat. higain FADC slices until pixel is called saturated 45 25 Float_t fNumLoGainSaturationLimit; // Rel. amount sat. logain FADC slices until pixel is called saturated 46 Int_t fPulserFrequency; // Light pulser frequency47 26 48 TObjArray *fHiGainArray; //-> Array of MHCalibrationChargeHiGainPix, one per pixel49 TObjArray *fLoGainArray; //-> Array of MHCalibrationChargeLoGainPix, one per pixel50 TObjArray *fAverageHiGainAreas; //-> Array of MHCalibrationChargeHiGainPix, one per pixel area51 TObjArray *fAverageLoGainAreas; //-> Array of MHCalibrationChargeLoGainPix, one per pixel area52 TObjArray *fAverageHiGainSectors; //-> Array of MHCalibrationChargeHiGainPix, one per camera sector53 TObjArray *fAverageLoGainSectors; //-> Array of MHCalibrationChargeLoGainPix, one per camera sector54 55 27 MCalibrationChargeCam *fCam; //! Calibration Cam with the results 56 28 MRawEvtData *fRawEvt; //! Raw event data … … 58 30 MBadPixelsCam *fBadPixels; //! Bad Pixels storage container 59 31 60 TArrayI fAverageAreaNum; // Number of pixels in average pixels per area 61 TArrayI fAverageAreaSat; // Number of saturated slices in average pixels per area 62 TArrayF fAverageAreaSigma; // Re-normalized sigmas in average pixels per area 63 TArrayF fAverageAreaSigmaErr; // Errors of Re-normalized sigmas in average pixels per area 64 TArrayF fAverageAreaRelSigma; // Re-normalized relative sigmas in average pixels per area 65 TArrayF fAverageAreaRelSigmaErr; // Errors of Re-normalized relative sigmas in average pixels per area 32 void InitializeHiGainHists(MHCalibrationChargePix &hist, MBadPixelsPix &bad, const Int_t i); 33 void InitializeLoGainHists(MHCalibrationChargePix &hist, MBadPixelsPix &bad, const Int_t i); 34 35 void FinalizeHiGainHists(MHCalibrationChargePix &hist, MCalibrationChargePix &pix, MBadPixelsPix &bad); 36 void FinalizeLoGainHists(MHCalibrationChargePix &hist, MCalibrationChargePix &pix, MBadPixelsPix &bad); 66 37 67 TArrayI fAverageSectorNum; // Number of pixels in average pixels per sector 68 69 void InitializeHiGainHists(MHCalibrationChargeHiGainPix &hist, MBadPixelsPix &bad, const Int_t i); 70 void InitializeLoGainHists(MHCalibrationChargeLoGainPix &hist, MBadPixelsPix &bad, const Int_t i); 71 72 void FinalizeHiGainHists(MHCalibrationChargeHiGainPix &hist, MCalibrationChargePix &pix, MBadPixelsPix &bad); 73 void FinalizeLoGainHists(MHCalibrationChargeLoGainPix &hist, MCalibrationChargePix &pix, MBadPixelsPix &bad); 74 void DrawAverageSigma(Bool_t sat, Bool_t inner, 75 Float_t sigma, Float_t sigmaerr, 76 Float_t relsigma, Float_t relsigmaerr) const; 77 78 public: 38 public: 79 39 80 40 MHCalibrationChargeCam(const char *name=NULL, const char *title=NULL); 81 ~MHCalibrationChargeCam(); 41 ~MHCalibrationChargeCam() {} 42 82 43 83 44 void SetAverageNbins( const Int_t bins=fgAverageNbins ) { fAverageNbins = bins; } 84 45 void SetNumLoGainSaturationLimit( const Float_t lim=fgNumLoGainSaturationLimit) { fNumLoGainSaturationLimit = lim; } 85 46 void SetNumHiGainSaturationLimit( const Float_t lim=fgNumHiGainSaturationLimit) { fNumHiGainSaturationLimit = lim; } 86 void SetPulserFrequency ( const Int_t f=fgPulserFrequency) { fPulserFrequency = f; }87 47 88 Float_t GetNumHiGainSaturationLimit() const { return fNumHiGainSaturationLimit; } 89 Float_t GetNumLoGainSaturationLimit() const { return fNumLoGainSaturationLimit; } 90 91 MHCalibrationChargeHiGainPix &operator[](UInt_t i); 92 const MHCalibrationChargeHiGainPix &operator[](UInt_t i) const; 93 94 MHCalibrationChargeLoGainPix &operator()(UInt_t i); 95 const MHCalibrationChargeLoGainPix &operator()(UInt_t i) const; 96 97 MHCalibrationChargeHiGainPix &GetAverageHiGainArea(UInt_t i); 98 const MHCalibrationChargeHiGainPix &GetAverageHiGainArea(UInt_t i) const; 99 100 MHCalibrationChargeLoGainPix &GetAverageLoGainArea(UInt_t i); 101 const MHCalibrationChargeLoGainPix &GetAverageLoGainArea(UInt_t i) const; 102 103 MHCalibrationChargeHiGainPix &GetAverageHiGainSector(UInt_t i); 104 const MHCalibrationChargeHiGainPix &GetAverageHiGainSector(UInt_t i) const; 105 106 MHCalibrationChargeLoGainPix &GetAverageLoGainSector(UInt_t i); 107 const MHCalibrationChargeLoGainPix &GetAverageLoGainSector(UInt_t i) const; 48 Float_t GetNumHiGainSaturationLimit() const { return fNumHiGainSaturationLimit; } 49 Float_t GetNumLoGainSaturationLimit() const { return fNumLoGainSaturationLimit; } 108 50 109 51 Bool_t SetupFill(const MParList *pList); … … 111 53 Bool_t Fill (const MParContainer *par, const Stat_t w=1); 112 54 Bool_t Finalize ( ); 113 114 // Clone115 TObject *Clone(const char *) const;116 117 // Draw118 void Draw(const Option_t *opt);119 55 120 56 Bool_t GetPixelContent ( Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
Note:
See TracChangeset
for help on using the changeset viewer.