102 const bool fineGrain,
143 void setBx(int16_t bx);
212 void pack(
unsigned et,
bool overFlow,
bool fineGrain,
bool mip,
bool quiet);
215 void pack12BitsEt(
unsigned et,
bool overFlow,
bool fineGrain,
bool mip,
bool quiet);
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 ieta() const
global eta index (0-21)
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
L1CaloRegionDetId m_id
region id
unsigned rctPhi() const
return local RCT phi index (0-1)
void setBx(int16_t bx)
set bx
unsigned rctEta() const
return local RCT eta index (0-10)
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
L1CaloRegionDetId id() const
get global region ID
bool empty() const
is there any information in the candidate
unsigned rctRegionIndex() const
get RCT region index
unsigned rctRegion() const
return RCT region index (0-1 for barrel, 0-7 for HF)
bool quiet() const
get quiet bit
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
bool mip() const
get MIP bit
unsigned rctPhi() const
get local phi index (within RCT crate)
void setMip(bool mip)
set MIP bit (required for GCT emulator standalone operation)
bool isHf() const
return central or forward type
void pack(unsigned et, bool overFlow, bool fineGrain, bool mip, bool quiet)
pack the raw data from arguments (used in constructors)
uint16_t raw() const
get raw data
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
friend std::ostream & operator<<(std::ostream &os, const L1CaloRegion ®)
print to stream
bool fineGrain() const
get fine grain bit
int operator==(const L1CaloRegion &c) const
equality operator, including rank, feature bits, and position
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 rctCard() const
return RCT card number (0-6)
int operator!=(const L1CaloRegion &c) const
inequality operator
unsigned gctPhi() const
get GCT phi index
char data[epos_bytes_allocation]
unsigned rctCrate() const
return RCT crate number (0-17)
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)
unsigned iphi() const
global phi index (0-17)
unsigned etFullScale() const
get Et for internal GCT use
bool isHf() const
forward or central region
void reset()
reset the data content (not position id!)
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