source: trunk/Mars/msignal/MArrivalTimeCam.h@ 13142

Last change on this file since 13142 was 8144, checked in by tbretz, 18 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 void Reset() { Clear(); }
35
36 void InitSize(const UInt_t i);
37 Int_t GetSize() const;
38
39// Byte_t GetNumUsedFADCSlices() const { return fLastUsedSliceHiGain-fFirstUsedSliceHiGain+1; }
40// Byte_t GetNumUsedHiGainFADCSlices() const { return fLastUsedSliceHiGain-fFirstUsedSliceHiGain+1; }
41// Byte_t GetNumUsedLoGainFADCSlices() const { return fLastUsedSliceLoGain-fFirstUsedSliceLoGain+1; }
42
43// Byte_t GetFirstUsedSliceHiGain() const { return fFirstUsedSliceHiGain; }
44// Byte_t GetLastUsedSliceHiGain() const { return fLastUsedSliceHiGain; }
45
46// Byte_t GetFirstUsedSliceLoGain() const { return fFirstUsedSliceLoGain; }
47// Byte_t GetLastUsedSliceLoGain() const { return fLastUsedSliceLoGain; }
48/*
49 void SetUsedFADCSlices(Byte_t firsth, Byte_t lasth,
50 Byte_t firstl, Byte_t lastl)
51 {
52 fFirstUsedSliceHiGain = firsth;
53 fLastUsedSliceHiGain = lasth;
54 fFirstUsedSliceLoGain = firstl;
55 fLastUsedSliceLoGain = lastl;
56 }
57 */
58 MArrivalTimePix &operator[](Int_t i);
59 const MArrivalTimePix &operator[](Int_t i) const;
60
61 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
62 void DrawPixelContent(Int_t num) const;
63
64 ClassDef(MArrivalTimeCam, 2) // Storage Container for the ArrivalTime in the camera
65};
66
67#endif
68
Note: See TracBrowser for help on using the repository browser.