source: trunk/MagicSoft/Mars/msignal/MArrivalTimeCam.h@ 5359

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