source: trunk/MagicSoft/Mars/manalysis/MExtractedSignalCam.h@ 2957

Last change on this file since 2957 was 2914, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.9 KB
Line 
1#ifndef MARS_MExtractedSignalCam
2#define MARS_MExtractedSignalCam
3
4#ifndef MARS_MCamEvent
5#include "MCamEvent.h"
6#endif
7
8class TClonesArray;
9class MExtractedSignalPix;
10
11class MExtractedSignalCam : public MCamEvent
12{
13private:
14 TClonesArray *fArray; // FIXME: Change TClonesArray away from a pointer?
15
16 Byte_t fFirstUsedSliceHiGain;
17 Byte_t fFirstUsedSliceLoGain;
18
19 Byte_t fLastUsedSliceHiGain;
20 Byte_t fLastUsedSliceLoGain;
21
22public:
23
24 MExtractedSignalCam(const char *name=NULL, const char *title=NULL);
25 ~MExtractedSignalCam();
26
27 void Print(Option_t *o="") const;
28 void Clear(Option_t *o="");
29 void SetLogStream(MLog *lg);
30
31 void InitSize(const UInt_t i);
32 Int_t GetSize() const;
33
34 Byte_t GetNumUsedFADCSlices() const { return fLastUsedSliceHiGain-fFirstUsedSliceHiGain+1; }
35 Byte_t GetNumUsedHiGainFADCSlices() const { return fLastUsedSliceHiGain-fFirstUsedSliceHiGain+1; }
36 Byte_t GetNumUsedLoGainFADCSlices() const { return fLastUsedSliceLoGain-fFirstUsedSliceLoGain+1; }
37
38 Byte_t GetFirstUsedSliceHiGain() const { return fFirstUsedSliceHiGain; }
39 Byte_t GetLastUsedSliceHiGain() const { return fLastUsedSliceHiGain; }
40
41 Byte_t GetFirstUsedSliceLoGain() const { return fFirstUsedSliceLoGain; }
42 Byte_t GetLastUsedSliceLoGain() const { return fLastUsedSliceLoGain; }
43
44 void SetUsedFADCSlices(Byte_t firsth, Byte_t lasth,
45 Byte_t firstl, Byte_t lastl)
46 {
47 fFirstUsedSliceHiGain = firsth;
48 fLastUsedSliceHiGain = lasth;
49 fFirstUsedSliceLoGain = firstl;
50 fLastUsedSliceLoGain = lastl;
51 }
52
53 MExtractedSignalPix &operator[](Int_t i);
54 const MExtractedSignalPix &operator[](Int_t i) const;
55
56 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
57 void DrawPixelContent(Int_t num) const;
58
59 ClassDef(MExtractedSignalCam, 0) // Storage Container for extracted signals in the camera
60};
61
62#endif
63
Note: See TracBrowser for help on using the repository browser.