15 unsigned et,
bool overFlow,
bool tauVeto,
bool mip,
bool quiet,
unsigned crate,
unsigned card,
unsigned rgn)
16 : m_id(
crate, card, rgn),
24 : m_id(
crate, 999, rgn),
32 unsigned et,
bool overFlow,
bool fineGrain,
bool mip,
bool quiet,
unsigned ieta,
unsigned iphi)
50 unsigned et,
bool overFlow,
bool tauVeto,
bool mip,
bool quiet,
unsigned crate,
unsigned card,
unsigned rgn) {
69 unsigned et,
bool overFlow,
bool fineGrain,
bool mip,
bool quiet,
unsigned ieta,
unsigned iphi) {
125 m_data = (
et & 0x3ff) | ((checkOvF) ? 0x400 : 0x0) | ((
fineGrain) ? 0x800 : 0x0) | ((
mip) ? 0x1000 : 0x0) |
126 ((
quiet) ? 0x2000 : 0x0);
131 m_data = (
et & 0xfff) | ((checkOvF) ? 0x400 : 0x0) | ((
fineGrain) ? 0x800 : 0x0) | ((
mip) ? 0x1000 : 0x0) |
132 ((
quiet) ? 0x2000 : 0x0);
137 os <<
"L1CaloRegion:";
138 os <<
" Et=" << reg.
et();
141 os <<
" tau=" << reg.
tauVeto() << endl;
142 os <<
" RCT crate=" << reg.
rctCrate();
143 os <<
" RCT card=" << reg.
rctCard();
145 os <<
" RCT eta=" << reg.
rctEta();
146 os <<
" RCT phi=" << reg.
rctPhi() << endl;
147 os <<
" GCT eta=" << reg.
gctEta();
148 os <<
" GCT phi=" << reg.
gctPhi() << endl;
149 os << hex <<
" cap block=" << reg.
capBlock() <<
dec <<
", index=" << reg.
capIndex() <<
", BX=" << reg.
bx();
~L1CaloRegion()
destructor
bool overFlow() const
get overflow
unsigned rctCrate() const
get RCT crate ID
unsigned rctPhi() const
get local phi index (within RCT crate)
unsigned rctCard() const
get RCT reciever card ID (valid output for HB/HE)
uint16_t m_data
region data : et, overflow, fine grain/tau veto, mip and quiet bits
ostream & operator<<(ostream &os, const L1CaloRegion ®)
unsigned capBlock() const
which capture block did this come from
unsigned capIndex() const
what index within capture block
void setBx(int16_t bx)
set bx
static L1CaloRegion makeHBHERegion(const unsigned et, const bool overFlow, const bool tauVeto, const bool mip, const bool quiet, const unsigned crate, const unsigned card, const unsigned rgn)
constructor HB/HE region from components
unsigned rctRegionIndex() const
get RCT region index
void setMip(bool mip)
set MIP bit (required for GCT emulator standalone operation)
void pack(unsigned et, bool overFlow, bool fineGrain, bool mip, bool quiet)
pack the raw data from arguments (used in constructors)
bool fineGrain() const
get fine grain bit
int16_t bx() const
get bunch-crossing index
void pack12BitsEt(unsigned et, bool overFlow, bool fineGrain, bool mip, bool quiet)
pack the raw data from arguments (used in constructors)
static L1CaloRegion makeGctJetRegion(const unsigned et, const bool overFlow, const bool fineGrain, const unsigned ieta, const unsigned iphi, const int16_t bx)
construct region for use in GCT internal jet-finding
bool mip() const
get MIP bit
unsigned gctEta() const
get GCT eta index
unsigned et() const
get Et
static L1CaloRegion makeRegionFromGctIndices(const unsigned et, const bool overFlow, const bool fineGrain, const bool mip, const bool quiet, const unsigned ieta, const unsigned iphi)
construct region from GCT indices
unsigned rctEta() const
get local eta index (within RCT crate)
char data[epos_bytes_allocation]
void setQuiet(bool quiet)
set quiet bit (required for GCT emulator standalone operation)
unsigned gctPhi() const
get GCT phi index
static L1CaloRegion makeHFRegion(const unsigned et, const bool fineGrain, const unsigned crate, const unsigned rgn)
construct HF region from components
A calorimeter trigger region (sum of 4x4 trigger towers)
static L1CaloRegion makeRegionFromUnpacker(const uint16_t data, const unsigned ieta, const unsigned iphi, const uint16_t block, const uint16_t index, const int16_t bx)
constructor from raw data and GCT indices for unpacking
bool tauVeto() const
get tau veto bit
bool quiet() const
get quiet bit
L1CaloRegion()
default constructor