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

Last change on this file since 2798 was 2728, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 2.3 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 // FIXME: Is it necessary to store this information for each event?
17 Byte_t fNumUsedHiGainFADCSlices;
18 Byte_t fNumUsedLoGainFADCSlices;
19
20 Byte_t fFirstUsedSliceHiGain;
21 Byte_t fFirstUsedSliceLoGain;
22
23 Byte_t fLastUsedSliceHiGain;
24 Byte_t fLastUsedSliceLoGain;
25
26public:
27
28 MExtractedSignalCam(const char *name=NULL, const char *title=NULL);
29 ~MExtractedSignalCam();
30
31 void Clear(Option_t *o="");
32
33 void InitSize(const UInt_t i);
34 Int_t GetSize() const;
35
36 Byte_t GetNumUsedFADCSlices() { return fNumUsedHiGainFADCSlices; }
37 Byte_t GetNumUsedHiGainFADCSlices() { return fNumUsedHiGainFADCSlices; }
38 Byte_t GetNumUsedLoGainFADCSlices() { return fNumUsedLoGainFADCSlices; }
39
40 Byte_t GetFirstUsedSliceHiGain() { return fFirstUsedSliceHiGain; }
41 Byte_t GetLastUsedSliceHiGain() { return fLastUsedSliceHiGain; }
42
43 Byte_t GetFirstUsedSliceLoGain() { return fFirstUsedSliceLoGain; }
44 Byte_t GetLastUsedSliceLoGain() { return fLastUsedSliceLoGain; }
45
46 void SetNumUsedFADCSlices(Byte_t numh, Byte_t firsth, Byte_t lasth,
47 Byte_t numl, Byte_t firstl, Byte_t lastl)
48 {
49 // FIXME: Calculate the number of used slices from first/last
50 // to make sure, that the stored values are always
51 // consistent!
52 fNumUsedHiGainFADCSlices = numh;
53 fFirstUsedSliceHiGain = firsth;
54 fLastUsedSliceHiGain = lasth;
55 fNumUsedLoGainFADCSlices = numl;
56 fFirstUsedSliceLoGain = firstl;
57 fLastUsedSliceLoGain = lastl;
58 }
59
60 MExtractedSignalPix &operator[](Int_t i);
61 MExtractedSignalPix &operator[](Int_t i) const;
62
63 void Print(Option_t *o="") const;
64
65 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
66 void DrawPixelContent(Int_t num) const;
67
68 ClassDef(MExtractedSignalCam, 0) // Storage Container for extracted signals in the camera
69};
70
71#endif
72
Note: See TracBrowser for help on using the repository browser.