bool fineGrain() const
get fine grain bit
void setCaptureIndex(uint16_t capIndex)
set cap index
unsigned capIndex() const
what index within capture block
L1CaloRegionDetId id() const
get global region ID
void reset()
reset the data content (not position id!)
void setBx(int16_t bx)
set bx
unsigned rctRegion() const
return RCT region index (0-1 for barrel, 0-7 for HF)
A calorimeter trigger region (sum of 4x4 trigger towers)
unsigned gctEta() const
get GCT eta index
unsigned rctEta() const
return local RCT eta index (0-10)
int16_t bx() const
get bunch-crossing index
friend std::ostream & operator<<(std::ostream &os, const L1CaloRegion ®)
print to stream
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)
unsigned ieta() const
global eta index (0-21)
void setRawData(uint32_t data)
set data
bool isHf() const
return central or forward type
L1CaloRegionDetId m_id
region id
int operator!=(const L1CaloRegion &c) const
inequality operator
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 empty() const
is there any information in the candidate
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 iphi() const
global phi index (0-17)
unsigned rctPhi() const
return local RCT phi index (0-1)
uint16_t raw() const
get raw data
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 isHf() const
forward or central region
unsigned rctCard() const
return RCT card number (0-6)
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]
int operator==(const L1CaloRegion &c) const
equality operator, including rank, feature bits, and position
unsigned etFullScale() const
get Et for internal GCT use
unsigned rctPhi() const
get local phi index (within RCT crate)
void setCaptureBlock(uint16_t capBlock)
set cap block
void setRegionId(L1CaloRegionDetId id)
set region ID
unsigned rctRegionIndex() const
get RCT region index
unsigned gctPhi() const
get GCT phi index
unsigned rctCrate() const
return RCT crate number (0-17)