int operator==(const L1CaloRegion &c) const
equality operator, including rank, feature bits, and position
unsigned etFullScale() const
get Et for internal GCT use
~L1CaloRegion()
destructor
bool overFlow() const
get overflow
unsigned rctCrate() const
get RCT crate ID
unsigned rctRegion() const
return RCT region index (0-1 for barrel, 0-7 for HF)
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
unsigned rctCrate() const
return RCT crate number (0-17)
void setRawData(uint32_t data)
set data
L1CaloRegionDetId id() const
get global region ID
unsigned capBlock() const
which capture block did this come from
bool isHf() const
forward or central region
L1CaloRegionDetId m_id
region id
void setBx(int16_t bx)
set bx
unsigned capIndex() const
what index within capture block
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 ieta() const
global eta index (0-21)
unsigned rctEta() const
return local RCT eta index (0-10)
bool isHf() const
return central or forward type
int operator!=(const L1CaloRegion &c) const
inequality operator
void setRegionId(L1CaloRegionDetId id)
set region ID
void setCaptureBlock(uint16_t capBlock)
set cap block
unsigned rctRegionIndex() const
get RCT region index
void setCaptureIndex(uint16_t capIndex)
set cap index
void setMip(bool mip)
set MIP bit (required for GCT emulator standalone operation)
uint16_t raw() const
get raw data
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
bool empty() const
is there any information in the candidate
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
friend std::ostream & operator<<(std::ostream &os, const L1CaloRegion ®)
print to stream
unsigned rctPhi() const
return local RCT phi index (0-1)
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 iphi() const
global phi index (0-17)
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)
unsigned rctCard() const
return RCT card number (0-6)
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
bool tauVeto() const
get tau veto bit
bool quiet() const
get quiet bit
L1CaloRegion()
default constructor