|
|
Go to the documentation of this file.
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();
bool fineGrain() const
get fine grain bit
unsigned capIndex() const
what index within capture block
void setBx(int16_t bx)
set bx
A calorimeter trigger region (sum of 4x4 trigger towers)
unsigned gctEta() const
get GCT eta index
int16_t bx() const
get bunch-crossing index
ostream & operator<<(ostream &os, const L1CaloRegion ®)
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)
static L1CaloRegion makeHFRegion(const unsigned et, const bool fineGrain, const unsigned crate, const unsigned rgn)
construct HF region from components
void setQuiet(bool quiet)
set quiet bit (required for GCT emulator standalone operation)
void setMip(bool mip)
set MIP bit (required for GCT emulator standalone operation)
L1CaloRegion()
default constructor
void pack12BitsEt(unsigned et, bool overFlow, bool fineGrain, bool mip, bool quiet)
pack the raw data from arguments (used in constructors)
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 mip() const
get MIP bit
bool overFlow() const
get overflow
unsigned rctCrate() const
get RCT crate ID
unsigned et() const
get Et
unsigned rctCard() const
get RCT reciever card ID (valid output for HB/HE)
~L1CaloRegion()
destructor
uint16_t m_data
region data : et, overflow, fine grain/tau veto, mip and quiet bits
unsigned capBlock() const
which capture block did this come from
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
void pack(unsigned et, bool overFlow, bool fineGrain, bool mip, bool quiet)
pack the raw data from arguments (used in constructors)
bool tauVeto() const
get tau veto bit
bool quiet() const
get quiet bit
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
char data[epos_bytes_allocation]
unsigned rctPhi() const
get local phi index (within RCT crate)
unsigned rctRegionIndex() const
get RCT region index
unsigned gctPhi() const
get GCT phi index