1 | #ifndef MARS_MExtractedSignalBlindPixel
|
---|
2 | #define MARS_MExtractedSignalBlindPixel
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef ROOT_TArrayI
|
---|
9 | #include <TArrayI.h>
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | #ifndef ROOT_TArrayF
|
---|
13 | #include <TArrayF.h>
|
---|
14 | #endif
|
---|
15 |
|
---|
16 | class MExtractedSignalBlindPixel : public MParContainer
|
---|
17 | {
|
---|
18 | private:
|
---|
19 |
|
---|
20 | static const UInt_t gkNumBlindPixels; //! Current Number of blind pixels in the camera
|
---|
21 |
|
---|
22 | TArrayI fBlindPixelIdx; // Array Blind Pixel IDs
|
---|
23 | TArrayF fExtractedSignal; // Array Extracted signals per Blind Pixel ID
|
---|
24 | TArrayI fNumSaturated; // Array Number of saturated slices per Blind Pixel ID
|
---|
25 |
|
---|
26 | TArrayF fPed; // Array Pedestal per Blind Pixel IDs
|
---|
27 | TArrayF fPedErr; // Array Pedestal Error per Blind Pixel ID
|
---|
28 | TArrayF fPedRms; // Array Pedestal RMS per Blind Pixel ID
|
---|
29 | TArrayF fPedRmsErr; // Array Pedestal RMS Error per Blind Pixel ID
|
---|
30 |
|
---|
31 | Byte_t fFirst; // First FADC extraction slice
|
---|
32 | Byte_t fNumFADCSamples; // Number of summed FADC slices
|
---|
33 |
|
---|
34 |
|
---|
35 | public:
|
---|
36 |
|
---|
37 | MExtractedSignalBlindPixel(const char* name=NULL, const char* title=NULL);
|
---|
38 |
|
---|
39 | void Clear(Option_t *o="");
|
---|
40 | void Print(Option_t *o="") const;
|
---|
41 |
|
---|
42 | // Getters
|
---|
43 | Int_t GetBlindPixelIdx ( const Int_t i=0 ) const { return fBlindPixelIdx.At(i) ; }
|
---|
44 | Float_t GetExtractedSignal ( const Int_t i=0 ) const { return fExtractedSignal.At(i) ; }
|
---|
45 | Int_t GetNumBlindPixels () const { return fBlindPixelIdx.GetSize(); }
|
---|
46 | Int_t GetNumSaturated ( const Int_t i=0 ) const { return fNumSaturated.At(i) ; }
|
---|
47 | Byte_t GetNumFADCSamples () const { return fNumFADCSamples ; }
|
---|
48 |
|
---|
49 | Float_t GetPed ( const Int_t i=0 ) const { return fPed.At(i); }
|
---|
50 | Float_t GetPedErr ( const Int_t i=0 ) const { return fPedErr.At(i); }
|
---|
51 | Float_t GetPedRms ( const Int_t i=0 ) const { return fPedRms.At(i); }
|
---|
52 | Float_t GetPedRmsErr ( const Int_t i=0 ) const { return fPedRmsErr.At(i); }
|
---|
53 |
|
---|
54 | Bool_t IsValid ( const Int_t i=0 ) const;
|
---|
55 |
|
---|
56 | // Setter
|
---|
57 | void SetUsedFADCSlices( const Byte_t first, const Byte_t num);
|
---|
58 | void SetNumFADCSamples( const Byte_t num ) { fNumFADCSamples = num; }
|
---|
59 |
|
---|
60 | void SetBlindPixelIdx ( const Int_t i, const Int_t nr=0) {
|
---|
61 | if (nr>fBlindPixelIdx.GetSize()-1)
|
---|
62 | fBlindPixelIdx.Set(nr+1);
|
---|
63 | fBlindPixelIdx.AddAt(i,nr); }
|
---|
64 | void SetExtractedSignal( const Float_t f, const Int_t nr=0 ) {
|
---|
65 | if (nr>fExtractedSignal.GetSize()-1)
|
---|
66 | fExtractedSignal.Set(nr+1);
|
---|
67 | fExtractedSignal.AddAt(f,nr); }
|
---|
68 | void SetNumSaturated ( const Int_t i, const Int_t nr=0 ) {
|
---|
69 | if (nr>fNumSaturated.GetSize()-1)
|
---|
70 | fNumSaturated.Set(nr+1);
|
---|
71 | fNumSaturated.AddAt(i,nr); }
|
---|
72 | void SetPed ( const Float_t f, const Int_t nr=0 ) {
|
---|
73 | if (nr>fPed.GetSize()-1)
|
---|
74 | fPed.Set(nr+1);
|
---|
75 | fPed.AddAt(f,nr); }
|
---|
76 | void SetPedErr ( const Float_t f, const Int_t nr=0 ) {
|
---|
77 | if (nr>fPedErr.GetSize()-1)
|
---|
78 | fPedErr.Set(nr+1);
|
---|
79 | fPedErr.AddAt(f,nr); }
|
---|
80 | void SetPedRms ( const Float_t f, const Int_t nr=0 ) {
|
---|
81 | if (nr>fPedRms.GetSize()-1)
|
---|
82 | fPedRms.Set(nr+1);
|
---|
83 | fPedRms.AddAt(f,nr); }
|
---|
84 | void SetPedRmsErr ( const Float_t f, const Int_t nr=0 ) {
|
---|
85 | if (nr>fPedRmsErr.GetSize()-1)
|
---|
86 | fPedRmsErr.Set(nr+1);
|
---|
87 | fPedRmsErr.AddAt(f,nr); }
|
---|
88 |
|
---|
89 | ClassDef(MExtractedSignalBlindPixel, 2) // Storage Container for extracted signal of Blind Pixel
|
---|
90 | };
|
---|
91 |
|
---|
92 | #endif
|
---|
93 |
|
---|
94 |
|
---|
95 |
|
---|
96 |
|
---|
97 |
|
---|
98 |
|
---|
99 |
|
---|
100 |
|
---|