source: trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCam.h@ 5001

Last change on this file since 5001 was 4882, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 3.8 KB
Line 
1#ifndef MARS_MCalibrationChargeCam
2#define MARS_MCalibrationChargeCam
3
4#ifndef MARS_MCalibrationCam
5#include "MCalibrationCam.h"
6#endif
7
8#ifndef ROOT_TArrayI
9#include <TArrayI.h>
10#endif
11
12class MCalibrationQECam;
13class MCalibrationChargeCam : public MCalibrationCam
14{
15private:
16
17 Byte_t fFlags; // Bit-field to hold the flags
18
19 Float_t fNumPhotonsBlindPixelMethod; // Average nr. photons from Blind Pixel Method (Inner Pixel)
20 Float_t fNumPhotonsFFactorMethod; // Average nr. photons from F-Factor Method (Inner Pixel)
21 Float_t fNumPhotonsPINDiodeMethod; // Average nr. photons from PIN Diode Method (Inner Pixel)
22 Float_t fNumPhotonsBlindPixelMethodErr; // Error av. nr. photons from Blind Pixel Method
23 Float_t fNumPhotonsFFactorMethodErr; // Error av. nr. photons from F-Factor Method
24 Float_t fNumPhotonsPINDiodeMethodErr; // Error av. nr. photons from PIN Diode Method
25
26 enum { kFFactorMethodValid };
27
28public:
29
30 MCalibrationChargeCam(const char *name=NULL, const char *title=NULL);
31
32 void Clear ( Option_t *o="" );
33
34 // Draws
35 void DrawPixelContent(Int_t num) const;
36
37 // Getters
38 Bool_t GetConversionFactorFFactor( Int_t ipx, Float_t &mean, Float_t &err, Float_t &ffactor );
39 Bool_t GetPixelContent ( Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
40
41 Float_t GetNumPhotonsBlindPixelMethod () const { return fNumPhotonsBlindPixelMethod; }
42 Float_t GetNumPhotonsFFactorMethod () const { return fNumPhotonsFFactorMethod; }
43 Float_t GetNumPhotonsPINDiodeMethod () const { return fNumPhotonsPINDiodeMethod; }
44 Float_t GetNumPhotonsBlindPixelMethodErr() const { return fNumPhotonsBlindPixelMethodErr; }
45 Float_t GetNumPhotonsFFactorMethodErr () const { return fNumPhotonsFFactorMethodErr; }
46 Float_t GetNumPhotonsPINDiodeMethodErr () const { return fNumPhotonsPINDiodeMethodErr; }
47 Bool_t IsFFactorMethodValid () const;
48
49 TArrayF *GetAveragedConvFADC2PhotPerArea ( const MGeomCam &geom, const MCalibrationQECam &qecam,
50 const UInt_t ai=0, MBadPixelsCam *bad=NULL);
51 TArrayF *GetAveragedConvFADC2PhotPerSector ( const MGeomCam &geom, const MCalibrationQECam &qecam,
52 const UInt_t sec=0, MBadPixelsCam *bad=NULL);
53 TArrayF *GetAveragedArrivalTimeMeanPerArea ( const MGeomCam &geom,
54 const UInt_t ai=0, MBadPixelsCam *bad=NULL);
55 TArrayF *GetAveragedArrivalTimeMeanPerSector( const MGeomCam &geom,
56 const UInt_t sec=0, MBadPixelsCam *bad=NULL);
57 TArrayF *GetAveragedArrivalTimeRmsPerArea ( const MGeomCam &geom,
58 const UInt_t ai=0, MBadPixelsCam *bad=NULL);
59 TArrayF *GetAveragedArrivalTimeRmsPerSector ( const MGeomCam &geom,
60 const UInt_t sec=0, MBadPixelsCam *bad=NULL);
61
62 // Prints
63 void Print(Option_t *o="") const;
64
65 // Setters
66 void SetFFactorMethodValid ( const Bool_t b=kTRUE );
67 void SetNumPhotonsBlindPixelMethod ( const Float_t f ) { fNumPhotonsBlindPixelMethod = f; }
68 void SetNumPhotonsFFactorMethod ( const Float_t f ) { fNumPhotonsFFactorMethod = f; }
69 void SetNumPhotonsPINDiodeMethod ( const Float_t f ) { fNumPhotonsPINDiodeMethod = f; }
70 void SetNumPhotonsBlindPixelMethodErr( const Float_t f ) { fNumPhotonsBlindPixelMethodErr = f; }
71 void SetNumPhotonsFFactorMethodErr ( const Float_t f ) { fNumPhotonsFFactorMethodErr = f; }
72 void SetNumPhotonsPINDiodeMethodErr ( const Float_t f ) { fNumPhotonsPINDiodeMethodErr = f; }
73
74 ClassDef(MCalibrationChargeCam, 4) // Container Charge Calibration Results Camera
75};
76
77#endif
Note: See TracBrowser for help on using the repository browser.