15 unsigned et,
bool overFlow,
bool tauVeto,
bool mip,
bool quiet,
unsigned crate,
unsigned card,
unsigned rgn)
16 :
m_id(crate, card, rgn),
19 pack(et, overFlow, tauVeto, mip, quiet);
24 :
m_id(crate, 999, rgn),
27 pack((et & 0xff), (et >= 0xff), fineGrain,
false,
false);
32 unsigned et,
bool overFlow,
bool fineGrain,
bool mip,
bool quiet,
unsigned ieta,
unsigned iphi)
36 pack(et, overFlow, fineGrain, mip, quiet);
41 :
m_id(ieta, iphi), m_data(data), m_bx(bx) {}
50 unsigned et,
bool overFlow,
bool tauVeto,
bool mip,
bool quiet,
unsigned crate,
unsigned card,
unsigned rgn) {
54 r.
pack(et, overFlow, tauVeto, mip, quiet);
63 r.
pack((et & 0xff), (et >= 0xff), fineGrain,
false,
false);
69 unsigned et,
bool overFlow,
bool fineGrain,
bool mip,
bool quiet,
unsigned ieta,
unsigned iphi) {
73 r.
pack(et, overFlow, fineGrain, mip, quiet);
79 uint16_t
data,
unsigned ieta,
unsigned iphi, uint16_t
block, uint16_t
index, int16_t
bx) {
124 bool checkOvF = overFlow || (et >= 0x400);
125 m_data = (et & 0x3ff) | ((checkOvF) ? 0x400 : 0x0) | ((fineGrain) ? 0x800 : 0x0) | ((mip) ? 0x1000 : 0x0) |
126 ((quiet) ? 0x2000 : 0x0);
130 bool checkOvF = overFlow || (et >= 0x400);
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();
int16_t bx() const
get bunch-crossing index
unsigned capIndex() const
what index within capture block
~L1CaloRegion()
destructor
unsigned et() const
get Et
bool overFlow() const
get overflow
uint16_t m_data
region data : et, overflow, fine grain/tau veto, mip and quiet bits
unsigned rctEta() const
get local eta index (within RCT crate)
unsigned rctCrate() const
get RCT crate ID
unsigned rctCard() const
get RCT reciever card ID (valid output for HB/HE)
void setRawData(uint32_t data)
set data
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
std::ostream & operator<<(std::ostream &out, const ALILine &li)
void setRegionId(L1CaloRegionDetId id)
set region ID
void setCaptureBlock(uint16_t capBlock)
set cap block
bool tauVeto() const
get tau veto bit
void setCaptureIndex(uint16_t capIndex)
set cap index
unsigned rctPhi() const
get local phi index (within RCT crate)
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)
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 fineGrain() const
get fine grain bit
unsigned gctEta() const
get GCT eta index
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 gctPhi() const
get GCT phi index
char data[epos_bytes_allocation]
void setQuiet(bool quiet)
set quiet bit (required for GCT emulator standalone operation)
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
unsigned capBlock() const
which capture block did this come from
L1CaloRegion()
default constructor