A calorimeter trigger region (sum of 4x4 trigger towers) More...
#include <L1CaloRegion.h>
Public Member Functions | |
int16_t | bx () const |
get bunch-crossing index More... | |
unsigned | capBlock () const |
which capture block did this come from More... | |
unsigned | capIndex () const |
what index within capture block More... | |
bool | empty () const |
is there any information in the candidate More... | |
unsigned | et () const |
get Et More... | |
unsigned | etFullScale () const |
get Et for internal GCT use More... | |
bool | fineGrain () const |
get fine grain bit More... | |
unsigned | gctEta () const |
get GCT eta index More... | |
unsigned | gctPhi () const |
get GCT phi index More... | |
L1CaloRegionDetId | id () const |
get global region ID More... | |
bool | isHbHe () const |
bool | isHf () const |
forward or central region More... | |
L1CaloRegion () | |
default constructor More... | |
L1CaloRegion (unsigned et, bool overFlow, bool tauVeto, bool mip, bool quiet, unsigned crate, unsigned card, unsigned rgn) | |
constructor for RCT emulator (HB/HE regions) - to be removed! More... | |
L1CaloRegion (unsigned et, bool fineGrain, unsigned crate, unsigned rgn) | |
constructor for RCT emulator (HF regions) - to be removed! More... | |
L1CaloRegion (unsigned et, bool overFlow, bool fineGrain, bool mip, bool quiet, unsigned ieta, unsigned iphi) | |
construct with GCT eta,phi indices, for testing GCT emulator - note argument ordering! - to be removed! More... | |
L1CaloRegion (uint16_t data, unsigned ieta, unsigned iphi, int16_t bx) | |
constructor from raw data and GCT indices for unpacking - to be removed! More... | |
bool | mip () const |
get MIP bit More... | |
int | operator!= (const L1CaloRegion &c) const |
inequality operator More... | |
int | operator== (const L1CaloRegion &c) const |
equality operator, including rank, feature bits, and position More... | |
bool | overFlow () const |
get overflow More... | |
bool | quiet () const |
get quiet bit More... | |
uint16_t | raw () const |
get raw data More... | |
unsigned | rctCard () const |
get RCT reciever card ID (valid output for HB/HE) More... | |
unsigned | rctCrate () const |
get RCT crate ID More... | |
unsigned | rctEta () const |
get local eta index (within RCT crate) More... | |
unsigned | rctPhi () const |
get local phi index (within RCT crate) More... | |
unsigned | rctRegionIndex () const |
get RCT region index More... | |
void | reset () |
reset the data content (not position id!) More... | |
void | setBx (int16_t bx) |
set bx More... | |
void | setCaptureBlock (uint16_t capBlock) |
set cap block More... | |
void | setCaptureIndex (uint16_t capIndex) |
set cap index More... | |
void | setMip (bool mip) |
set MIP bit (required for GCT emulator standalone operation) More... | |
void | setQuiet (bool quiet) |
set quiet bit (required for GCT emulator standalone operation) More... | |
void | setRawData (uint32_t data) |
set data More... | |
bool | tauVeto () const |
get tau veto bit More... | |
~L1CaloRegion () | |
destructor More... | |
Static Public Member Functions | |
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 More... | |
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 More... | |
static L1CaloRegion | makeHFRegion (const unsigned et, const bool fineGrain, const unsigned crate, const unsigned rgn) |
construct HF region from components More... | |
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 More... | |
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 More... | |
Private Member Functions | |
void | pack (unsigned et, bool overFlow, bool fineGrain, bool mip, bool quiet) |
pack the raw data from arguments (used in constructors) More... | |
void | pack12BitsEt (unsigned et, bool overFlow, bool fineGrain, bool mip, bool quiet) |
pack the raw data from arguments (used in constructors) More... | |
void | setRegionId (L1CaloRegionDetId id) |
set region ID More... | |
Private Attributes | |
int16_t | m_bx |
uint16_t | m_captureBlock |
uint8_t | m_captureIndex |
uint16_t | m_data |
region data : et, overflow, fine grain/tau veto, mip and quiet bits More... | |
L1CaloRegionDetId | m_id |
region id More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const L1CaloRegion ®) |
print to stream More... | |
A calorimeter trigger region (sum of 4x4 trigger towers)
Definition at line 22 of file L1CaloRegion.h.
L1CaloRegion::L1CaloRegion | ( | ) |
default constructor
Definition at line 11 of file L1CaloRegion.cc.
L1CaloRegion::L1CaloRegion | ( | unsigned | et, |
bool | overFlow, | ||
bool | tauVeto, | ||
bool | mip, | ||
bool | quiet, | ||
unsigned | crate, | ||
unsigned | card, | ||
unsigned | rgn | ||
) |
constructor for RCT emulator (HB/HE regions) - to be removed!
Definition at line 15 of file L1CaloRegion.cc.
References pack().
L1CaloRegion::L1CaloRegion | ( | unsigned | et, |
bool | fineGrain, | ||
unsigned | crate, | ||
unsigned | rgn | ||
) |
constructor for RCT emulator (HF regions) - to be removed!
Definition at line 24 of file L1CaloRegion.cc.
References pack().
L1CaloRegion::L1CaloRegion | ( | unsigned | et, |
bool | overFlow, | ||
bool | fineGrain, | ||
bool | mip, | ||
bool | quiet, | ||
unsigned | ieta, | ||
unsigned | iphi | ||
) |
construct with GCT eta,phi indices, for testing GCT emulator - note argument ordering! - to be removed!
Definition at line 33 of file L1CaloRegion.cc.
References pack().
L1CaloRegion::L1CaloRegion | ( | uint16_t | data, |
unsigned | ieta, | ||
unsigned | iphi, | ||
int16_t | bx | ||
) |
constructor from raw data and GCT indices for unpacking - to be removed!
Definition at line 48 of file L1CaloRegion.cc.
L1CaloRegion::~L1CaloRegion | ( | ) |
|
inline |
get bunch-crossing index
Definition at line 192 of file L1CaloRegion.h.
References m_bx.
Referenced by L1GctRegion::clrFeatureBit1(), L1GctRegion::makeJfInputRegion(), L1GctHardwareJetFinder::makeProtoJet(), operator<<(), setBx(), and GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock().
|
inline |
which capture block did this come from
Definition at line 186 of file L1CaloRegion.h.
References m_captureBlock.
Referenced by operator<<(), and setCaptureBlock().
|
inline |
what index within capture block
Definition at line 189 of file L1CaloRegion.h.
References m_captureIndex.
Referenced by operator<<(), and setCaptureIndex().
|
inline |
is there any information in the candidate
Definition at line 201 of file L1CaloRegion.h.
References m_data, and operator<<.
Referenced by operator==(), L1GctRegion::rctEta(), Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().
|
inline |
get Et
Definition at line 116 of file L1CaloRegion.h.
References isHf(), and m_data.
Referenced by L1GctRegion::makeJfInputRegion(), operator<<(), and GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock().
|
inline |
get Et for internal GCT use
Definition at line 119 of file L1CaloRegion.h.
References m_data.
|
inline |
get fine grain bit
Definition at line 128 of file L1CaloRegion.h.
References m_data, and globals_cff::x1.
Referenced by L1GctRegion::clrFeatureBit1(), L1GctRegion::makeJfInputRegion(), operator<<(), tauVeto(), and GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock().
|
inline |
get GCT eta index
Definition at line 180 of file L1CaloRegion.h.
References L1CaloRegionDetId::ieta(), and m_id.
Referenced by L1GctRegion::makeJfInputRegion(), L1GctHardwareJetFinder::makeProtoJet(), operator<<(), and L1GlobalCaloTrigger::setRegion().
|
inline |
get GCT phi index
Definition at line 183 of file L1CaloRegion.h.
References L1CaloRegionDetId::iphi(), and m_id.
Referenced by L1GctRegion::makeJfInputRegion(), L1GctHardwareJetFinder::makeProtoJet(), operator<<(), and L1GlobalCaloTrigger::setRegion().
|
inline |
get global region ID
Definition at line 158 of file L1CaloRegion.h.
References m_id.
Referenced by operator==(), and setRegionId().
|
inline |
Definition at line 162 of file L1CaloRegion.h.
References L1CaloRegionDetId::isHf(), and m_id.
Referenced by GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock().
|
inline |
forward or central region
Definition at line 161 of file L1CaloRegion.h.
References L1CaloRegionDetId::isHf(), and m_id.
Referenced by et(), L1GctRegion::makeJfInputRegion(), and tauVeto().
|
static |
construct region for use in GCT internal jet-finding
Definition at line 121 of file L1CaloRegion.cc.
References pack12BitsEt(), alignCSCRings::r, setBx(), and setRegionId().
|
static |
constructor HB/HE region from components
Definition at line 62 of file L1CaloRegion.cc.
References pack(), alignCSCRings::r, setBx(), and setRegionId().
Referenced by SourceCardTextToRctDigi::produce().
|
static |
construct HF region from components
Definition at line 78 of file L1CaloRegion.cc.
References pack(), alignCSCRings::r, setBx(), and setRegionId().
Referenced by SourceCardTextToRctDigi::produce().
|
static |
construct region from GCT indices
Definition at line 90 of file L1CaloRegion.cc.
References pack(), alignCSCRings::r, setBx(), and setRegionId().
|
static |
constructor from raw data and GCT indices for unpacking
Definition at line 105 of file L1CaloRegion.cc.
References alignCSCRings::r, setBx(), setCaptureBlock(), setCaptureIndex(), setRawData(), and setRegionId().
Referenced by GctFormatTranslateV35::blockToRctCaloRegions(), and GctFormatTranslateV38::blockToRctCaloRegions().
|
inline |
get MIP bit
Definition at line 131 of file L1CaloRegion.h.
References m_data, and globals_cff::x1.
Referenced by L1GctRegion::setMip(), and GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock().
|
inline |
|
inline |
equality operator, including rank, feature bits, and position
Definition at line 195 of file L1CaloRegion.h.
References empty(), id(), m_data, m_id, and raw().
|
inline |
get overflow
Definition at line 122 of file L1CaloRegion.h.
References m_data, and globals_cff::x1.
Referenced by L1GctRegion::clrFeatureBit1(), L1GctRegion::et(), L1GctRegion::makeJfInputRegion(), operator<<(), and GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock().
|
private |
pack the raw data from arguments (used in constructors)
Definition at line 152 of file L1CaloRegion.cc.
References m_data.
Referenced by pyrootRender.interactiveRender::draw(), L1CaloRegion(), makeHBHERegion(), makeHFRegion(), makeRegionFromGctIndices(), and setRegionId().
|
private |
pack the raw data from arguments (used in constructors)
Definition at line 162 of file L1CaloRegion.cc.
References m_data.
Referenced by makeGctJetRegion(), and setRegionId().
|
inline |
get quiet bit
Definition at line 134 of file L1CaloRegion.h.
References m_data, and globals_cff::x1.
Referenced by L1GctRegion::setQuiet(), and GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock().
|
inline |
get raw data
Definition at line 113 of file L1CaloRegion.h.
References m_data.
Referenced by L1GctRegion::et(), L1GctRegion::featureBit0(), L1GctRegion::featureBit1(), operator==(), and L1GctRegion::setBit().
|
inline |
get RCT reciever card ID (valid output for HB/HE)
Definition at line 168 of file L1CaloRegion.h.
References m_id, and L1CaloRegionDetId::rctCard().
Referenced by operator<<(), and GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock().
|
inline |
get RCT crate ID
Definition at line 165 of file L1CaloRegion.h.
References m_id, and L1CaloRegionDetId::rctCrate().
Referenced by operator<<(), L1GctJetFinderBase::setInputRegion(), L1GlobalCaloTrigger::setRegion(), and GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock().
|
inline |
get local eta index (within RCT crate)
Definition at line 174 of file L1CaloRegion.h.
References m_id, and L1CaloRegionDetId::rctEta().
Referenced by operator<<(), and L1GctJetFinderBase::setInputRegion().
|
inline |
get local phi index (within RCT crate)
Definition at line 177 of file L1CaloRegion.h.
References m_id, and L1CaloRegionDetId::rctPhi().
Referenced by L1GctHardwareJetFinder::makeProtoJet(), operator<<(), and L1GctJetFinderBase::setInputRegion().
|
inline |
get RCT region index
Definition at line 171 of file L1CaloRegion.h.
References m_id, and L1CaloRegionDetId::rctRegion().
Referenced by operator<<(), and GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock().
|
inline |
reset the data content (not position id!)
Definition at line 110 of file L1CaloRegion.h.
References m_data.
void L1CaloRegion::setBx | ( | int16_t | bx | ) |
set bx
Definition at line 136 of file L1CaloRegion.cc.
Referenced by makeGctJetRegion(), makeHBHERegion(), makeHFRegion(), makeRegionFromGctIndices(), makeRegionFromUnpacker(), setCaptureIndex(), L1GctJetFinderBase::setupObjects(), l1t::stage1::unpack_region(), and RctRawToDigi::unpackCTP7().
|
inline |
set cap block
Definition at line 137 of file L1CaloRegion.h.
References capBlock(), and m_captureBlock.
Referenced by makeRegionFromUnpacker().
|
inline |
set cap index
Definition at line 140 of file L1CaloRegion.h.
References capIndex(), m_captureIndex, and setBx().
Referenced by makeRegionFromUnpacker().
void L1CaloRegion::setMip | ( | bool | mip | ) |
set MIP bit (required for GCT emulator standalone operation)
Definition at line 141 of file L1CaloRegion.cc.
References m_data.
Referenced by setRawData().
void L1CaloRegion::setQuiet | ( | bool | quiet | ) |
set quiet bit (required for GCT emulator standalone operation)
Definition at line 147 of file L1CaloRegion.cc.
References m_data.
Referenced by setRawData().
|
inline |
set data
Definition at line 146 of file L1CaloRegion.h.
References data, m_data, setMip(), and setQuiet().
Referenced by makeRegionFromUnpacker(), and L1GctRegion::setBit().
|
inlineprivate |
set region ID
Definition at line 209 of file L1CaloRegion.h.
References id(), m_id, pack(), and pack12BitsEt().
Referenced by makeGctJetRegion(), makeHBHERegion(), makeHFRegion(), makeRegionFromGctIndices(), and makeRegionFromUnpacker().
|
inline |
get tau veto bit
Definition at line 125 of file L1CaloRegion.h.
References fineGrain(), and isHf().
Referenced by operator<<().
|
friend |
print to stream
Referenced by empty().
|
private |
Definition at line 224 of file L1CaloRegion.h.
|
private |
Definition at line 222 of file L1CaloRegion.h.
Referenced by capBlock(), and setCaptureBlock().
|
private |
Definition at line 223 of file L1CaloRegion.h.
Referenced by capIndex(), and setCaptureIndex().
|
private |
region data : et, overflow, fine grain/tau veto, mip and quiet bits
Definition at line 221 of file L1CaloRegion.h.
Referenced by empty(), et(), etFullScale(), fineGrain(), mip(), operator==(), overFlow(), pack(), pack12BitsEt(), quiet(), raw(), reset(), setMip(), setQuiet(), and setRawData().
|
private |
region id
Definition at line 218 of file L1CaloRegion.h.
Referenced by gctEta(), gctPhi(), id(), isHbHe(), isHf(), operator==(), rctCard(), rctCrate(), rctEta(), rctPhi(), rctRegionIndex(), and setRegionId().