source: trunk/MagicSoft/Mars/msignal/MExtractedSignalCam.h@ 6014

Last change on this file since 6014 was 5739, checked in by gaug, 20 years ago
*** empty log message ***
File size: 2.7 KB
Line 
1#ifndef MARS_MExtractedSignalCam
2#define MARS_MExtractedSignalCam
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#ifndef MARS_MCamEvent
9#include "MCamEvent.h"
10#endif
11
12class TClonesArray;
13class MExtractedSignalPix;
14
15class MExtractedSignalCam : public MParContainer, public MCamEvent
16{
17private:
18
19 TClonesArray *fArray; //-> FIXME: Change TClonesArray away from a pointer?
20
21 Byte_t fFirstUsedSliceHiGain; // First High Gain FADC used for extraction (incl.)
22 Byte_t fFirstUsedSliceLoGain; // First Low Gain FADC used for extraction (incl.)
23
24 Byte_t fLastUsedSliceHiGain; // Last High Gain FADC used for extraction (incl.)
25 Byte_t fLastUsedSliceLoGain; // Last Low Gain FADC used for extraction (incl.)
26
27 Float_t fUsedWindowHiGain; // High Gain FADC extraction window
28 Float_t fUsedWindowLoGain; // Low Gain FADC extraction window
29
30 Int_t fNdf; // Number of degrees of freedom for a possible fit
31
32public:
33
34 MExtractedSignalCam(const char *name=NULL, const char *title=NULL);
35 ~MExtractedSignalCam();
36
37 void Print(Option_t *o="") const;
38 void Clear(Option_t *o="");
39 void Reset() { Clear(); }
40
41 void InitSize(const UInt_t i);
42 Int_t GetSize () const;
43
44 Byte_t GetFirstUsedSliceHiGain() const { return fFirstUsedSliceHiGain; }
45 Byte_t GetFirstUsedSliceLoGain() const { return fFirstUsedSliceLoGain; }
46
47 Byte_t GetLastUsedSliceHiGain() const { return fLastUsedSliceHiGain; }
48 Byte_t GetLastUsedSliceLoGain() const { return fLastUsedSliceLoGain; }
49
50 Float_t GetNumUsedHiGainFADCSlices() const { return fUsedWindowHiGain; }
51 Float_t GetNumUsedLoGainFADCSlices() const { return fUsedWindowLoGain; }
52
53 Float_t GetNdf() const { return fNdf; }
54 Float_t GetProb( const Int_t pixidx) const;
55
56 void SetLogStream ( MLog *lg );
57 void SetNdf ( Int_t ndf ) { fNdf = ndf; }
58 void SetUsedFADCSlices(Byte_t firsth, Byte_t lasth, Float_t winh,
59 Byte_t firstl, Byte_t lastl, Float_t winl)
60 {
61 fFirstUsedSliceHiGain = firsth;
62 fLastUsedSliceHiGain = lasth;
63 fUsedWindowHiGain = winh;
64 fFirstUsedSliceLoGain = firstl;
65 fLastUsedSliceLoGain = lastl;
66 fUsedWindowLoGain = winl;
67 }
68
69 MExtractedSignalPix &operator[](Int_t i);
70 const MExtractedSignalPix &operator[](Int_t i) const;
71
72 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
73 void DrawPixelContent(Int_t num) const;
74
75 ClassDef(MExtractedSignalCam, 2) // Storage Container for extracted signals in the camera
76};
77
78#endif
79
Note: See TracBrowser for help on using the repository browser.