1 #ifndef HEMCTRB3LOOKUP_H
2 #define HEMCTRB3LOOKUP_H
8 #include "htrbnetdef.h"
14 #define EMC_CHANNEL_FASTBIT (0x1 << 0)
15 #define EMC_CHANNEL_SLOWBIT (0x1 << 1)
16 #define EMC_CHANNEL_BROKENBIT (0x1 << 7)
37 void getAddress(Int_t& s, Int_t& c)
const { s = sector; c = cell; }
38 void fill(Int_t s, Int_t c, UChar_t f) { sector = s; cell = c; flag = f; }
43 void clear(
void) {sector = cell = -1; flag=0;}
55 Int_t
getSize() {
return array ? array->GetLast() + 1 : 0; }
69 const Char_t* title =
"Lookup table for the TRB3 unpacker of the EMC detector",
70 const Char_t* context =
"EmcTrb3LookupProduction",
71 Int_t minTrbnetAddress = Trbnet::kEmcTrb3MinTrbnetAddress,
72 Int_t maxTrbnetAddress = Trbnet::kEmcTrb3MaxTrbnetAddress);
75 if ((arrayOffset <= trbnetAddress) && (trbnetAddress <= (array->GetSize() + arrayOffset)))
80 Int_t
getSize(
void) {
return array->GetLast() + 1; }
85 void printParam(
void);
86 Bool_t fill(Int_t, Int_t, Int_t, Int_t, Int_t);
87 Bool_t readline(
const Char_t*);
88 void putAsciiHeader(TString&);
void setFastChannel(Bool_t on)
void setFlag(const UChar_t f)
HEmcTrb3LookupBoard * getBoard(Int_t trbnetAddress)
#define EMC_CHANNEL_SLOWBIT
void setCell(const Int_t c)
HEmcTrb3LookupBoard * operator[](Int_t i)
virtual ~HEmcTrb3LookupChan(void)
HEmcTrb3LookupChan & operator[](Int_t i)
void fill(Int_t s, Int_t c, UChar_t f)
void fill(HEmcTrb3LookupChan &r)
void setSlowChannel(Bool_t on)
Int_t getArrayOffset(void)
#define EMC_CHANNEL_FASTBIT
HEmcTrb3LookupChan * getChannel(Int_t c)
void setSector(const Int_t s)
Bool_t isDefinedChannel()
#define EMC_CHANNEL_BROKENBIT
void setBrokenChannel(Bool_t on)
void getAddress(Int_t &s, Int_t &c) const