source: trunk/MagicSoft/Mars/msignal/MExtractedSignalBlindPixel.h@ 4318

Last change on this file since 4318 was 4311, checked in by gaug, 21 years ago
*** empty log message ***
File size: 3.4 KB
Line 
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
16class MExtractedSignalBlindPixel : public MParContainer
17{
18private:
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
35public:
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 GetNumSaturated ( const Int_t i=0 ) const { return fNumSaturated.At(i) ; }
46 Byte_t GetNumFADCSamples () const { return fNumFADCSamples ; }
47
48 Bool_t IsValid ( const Int_t i=0 ) const;
49
50 Float_t GetPed ( const Int_t i=0 ) const { return fPed.At(i); }
51 Float_t GetPedErr ( const Int_t i=0 ) const { return fPedErr.At(i); }
52 Float_t GetPedRms ( const Int_t i=0 ) const { return fPedRms.At(i); }
53 Float_t GetPedRmsErr ( const Int_t i=0 ) const { return fPedRmsErr.At(i); }
54
55 // Setter
56 void SetUsedFADCSlices( const Byte_t first, const Byte_t num);
57 void SetNumFADCSamples( const Byte_t num ) { fNumFADCSamples = num; }
58
59 void SetBlindPixelIdx ( const Int_t i, const Int_t nr=0) {
60 if (nr>fBlindPixelIdx.GetSize()-1)
61 fBlindPixelIdx.Set(nr+1);
62 fBlindPixelIdx.AddAt(i,nr); }
63 void SetExtractedSignal( const Float_t f, const Int_t nr=0 ) {
64 if (nr>fExtractedSignal.GetSize()-1)
65 fExtractedSignal.Set(nr+1);
66 fExtractedSignal.AddAt(f,nr); }
67 void SetNumSaturated ( const Int_t i, const Int_t nr=0 ) {
68 if (nr>fNumSaturated.GetSize()-1)
69 fNumSaturated.Set(nr+1);
70 fNumSaturated.AddAt(i,nr); }
71 void SetPed ( const Float_t f, const Int_t nr=0 ) {
72 if (nr>fPed.GetSize()-1)
73 fPed.Set(nr+1);
74 fPed.AddAt(f,nr); }
75 void SetPedErr ( const Float_t f, const Int_t nr=0 ) {
76 if (nr>fPedErr.GetSize()-1)
77 fPedErr.Set(nr+1);
78 fPedErr.AddAt(f,nr); }
79 void SetPedRms ( const Float_t f, const Int_t nr=0 ) {
80 if (nr>fPedRms.GetSize()-1)
81 fPedRms.Set(nr+1);
82 fPedRms.AddAt(f,nr); }
83 void SetPedRmsErr ( const Float_t f, const Int_t nr=0 ) {
84 if (nr>fPedRmsErr.GetSize()-1)
85 fPedRmsErr.Set(nr+1);
86 fPedRmsErr.AddAt(f,nr); }
87
88 ClassDef(MExtractedSignalBlindPixel, 2) // Storage Container for extracted signal of Blind Pixel
89};
90
91#endif
92
93
94
95
Note: See TracBrowser for help on using the repository browser.