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 21 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 14 of file L1CaloRegion.cc.
References et(), mip(), overFlow(), pack(), quiet(), and tauVeto().
L1CaloRegion::L1CaloRegion | ( | unsigned | et, |
bool | fineGrain, | ||
unsigned | crate, | ||
unsigned | rgn | ||
) |
constructor for RCT emulator (HF regions) - to be removed!
Definition at line 23 of file L1CaloRegion.cc.
References et(), fineGrain(), and 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 31 of file L1CaloRegion.cc.
References et(), fineGrain(), mip(), overFlow(), pack(), and quiet().
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 40 of file L1CaloRegion.cc.
L1CaloRegion::~L1CaloRegion | ( | ) |
|
inline |
get bunch-crossing index
Definition at line 165 of file L1CaloRegion.h.
References m_bx.
Referenced by L1GctRegion::makeFinalJetRegion(), makeGctJetRegion(), L1GctRegion::makeJfInputRegion(), L1GctHardwareJetFinder::makeProtoJet(), L1GctRegion::makeProtoJetRegion(), makeRegionFromUnpacker(), operator<<(), setBx(), and GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock().
|
inline |
which capture block did this come from
Definition at line 159 of file L1CaloRegion.h.
References m_captureBlock.
Referenced by operator<<(), and setCaptureBlock().
|
inline |
what index within capture block
Definition at line 162 of file L1CaloRegion.h.
References m_captureIndex.
Referenced by operator<<(), and setCaptureIndex().
|
inline |
is there any information in the candidate
Definition at line 176 of file L1CaloRegion.h.
References m_data.
Referenced by operator==(), and L1GctRegion::rctEta().
|
inline |
get Et
Definition at line 90 of file L1CaloRegion.h.
References isHf(), and m_data.
Referenced by L1CaloRegion(), makeGctJetRegion(), makeHBHERegion(), makeHFRegion(), L1GctRegion::makeJfInputRegion(), makeRegionFromGctIndices(), operator<<(), pack(), pack12BitsEt(), and GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock().
|
inline |
get Et for internal GCT use
Definition at line 93 of file L1CaloRegion.h.
References m_data.
|
inline |
get fine grain bit
Definition at line 102 of file L1CaloRegion.h.
References m_data, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by L1CaloRegion(), L1GctRegion::makeFinalJetRegion(), makeGctJetRegion(), makeHFRegion(), L1GctRegion::makeJfInputRegion(), L1GctRegion::makeProtoJetRegion(), makeRegionFromGctIndices(), operator<<(), pack(), pack12BitsEt(), tauVeto(), and GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock().
|
inline |
get GCT eta index
Definition at line 153 of file L1CaloRegion.h.
References L1CaloRegionDetId::ieta(), and m_id.
Referenced by L1GctRegion::makeJfInputRegion(), L1GctHardwareJetFinder::makeProtoJet(), and operator<<().
|
inline |
get GCT phi index
Definition at line 156 of file L1CaloRegion.h.
References L1CaloRegionDetId::iphi(), and m_id.
Referenced by L1GctRegion::makeJfInputRegion(), L1GctHardwareJetFinder::makeProtoJet(), and operator<<().
|
inline |
get global region ID
Definition at line 131 of file L1CaloRegion.h.
References m_id.
Referenced by setRegionId().
|
inline |
Definition at line 135 of file L1CaloRegion.h.
References L1CaloRegionDetId::isHf(), and m_id.
Referenced by GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock().
|
inline |
forward or central region
Definition at line 134 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 89 of file L1CaloRegion.cc.
References bx(), et(), fineGrain(), LEDCalibrationChannels::ieta, LEDCalibrationChannels::iphi, overFlow(), and alignCSCRings::r.
|
static |
constructor HB/HE region from components
Definition at line 49 of file L1CaloRegion.cc.
References et(), mip(), overFlow(), quiet(), alignCSCRings::r, and tauVeto().
Referenced by SourceCardTextToRctDigi::produce().
|
static |
construct HF region from components
Definition at line 59 of file L1CaloRegion.cc.
References et(), fineGrain(), and alignCSCRings::r.
Referenced by SourceCardTextToRctDigi::produce().
|
static |
construct region from GCT indices
Definition at line 68 of file L1CaloRegion.cc.
References et(), fineGrain(), LEDCalibrationChannels::ieta, LEDCalibrationChannels::iphi, mip(), overFlow(), quiet(), and alignCSCRings::r.
|
static |
constructor from raw data and GCT indices for unpacking
Definition at line 78 of file L1CaloRegion.cc.
References groupFilesInBlocks::block, bx(), data, LEDCalibrationChannels::ieta, LEDCalibrationChannels::iphi, and alignCSCRings::r.
Referenced by GctFormatTranslateV35::blockToRctCaloRegions(), and GctFormatTranslateV38::blockToRctCaloRegions().
|
inline |
get MIP bit
Definition at line 105 of file L1CaloRegion.h.
References m_data, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by L1CaloRegion(), makeHBHERegion(), makeRegionFromGctIndices(), pack(), pack12BitsEt(), setMip(), and GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock().
|
inline |
inequality operator
Definition at line 173 of file L1CaloRegion.h.
References HltBtagPostValidation_cff::c.
|
inline |
equality operator, including rank, feature bits, and position
Definition at line 168 of file L1CaloRegion.h.
References HltBtagPostValidation_cff::c, empty(), m_data, and m_id.
|
inline |
get overflow
Definition at line 96 of file L1CaloRegion.h.
References m_data, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by L1GctRegion::et(), L1CaloRegion(), L1GctRegion::makeFinalJetRegion(), makeGctJetRegion(), makeHBHERegion(), L1GctRegion::makeJfInputRegion(), L1GctRegion::makeProtoJetRegion(), makeRegionFromGctIndices(), operator<<(), pack(), pack12BitsEt(), and GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock().
|
private |
pack the raw data from arguments (used in constructors)
Definition at line 123 of file L1CaloRegion.cc.
References et(), fineGrain(), m_data, mip(), overFlow(), and quiet().
Referenced by L1CaloRegion().
|
private |
pack the raw data from arguments (used in constructors)
Definition at line 129 of file L1CaloRegion.cc.
References et(), fineGrain(), m_data, mip(), overFlow(), and quiet().
|
inline |
get quiet bit
Definition at line 108 of file L1CaloRegion.h.
References m_data, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by L1CaloRegion(), makeHBHERegion(), makeRegionFromGctIndices(), pack(), pack12BitsEt(), setQuiet(), and GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock().
|
inline |
get raw data
Definition at line 87 of file L1CaloRegion.h.
References m_data.
Referenced by L1GctRegion::et(), L1GctRegion::featureBit0(), L1GctRegion::featureBit1(), and L1GctRegion::setBit().
|
inline |
get RCT reciever card ID (valid output for HB/HE)
Definition at line 141 of file L1CaloRegion.h.
References m_id, and L1CaloRegionDetId::rctCard().
Referenced by operator<<(), and GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock().
|
inline |
get RCT crate ID
Definition at line 138 of file L1CaloRegion.h.
References m_id, and L1CaloRegionDetId::rctCrate().
Referenced by operator<<(), and GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock().
|
inline |
get local eta index (within RCT crate)
Definition at line 147 of file L1CaloRegion.h.
References m_id, and L1CaloRegionDetId::rctEta().
Referenced by operator<<().
|
inline |
get local phi index (within RCT crate)
Definition at line 150 of file L1CaloRegion.h.
References m_id, and L1CaloRegionDetId::rctPhi().
Referenced by L1GctHardwareJetFinder::makeProtoJet(), and operator<<().
|
inline |
get RCT region index
Definition at line 144 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 84 of file L1CaloRegion.h.
References m_data.
void L1CaloRegion::setBx | ( | int16_t | bx | ) |
set bx
Definition at line 103 of file L1CaloRegion.cc.
Referenced by L1GctJetFinderBase::setupObjects(), l1t::stage1::unpack_region(), and RctRawToDigi::unpackCTP7().
|
inline |
set cap block
Definition at line 111 of file L1CaloRegion.h.
References capBlock(), and m_captureBlock.
|
inline |
set cap index
Definition at line 114 of file L1CaloRegion.h.
References capIndex(), and m_captureIndex.
void L1CaloRegion::setMip | ( | bool | mip | ) |
set MIP bit (required for GCT emulator standalone operation)
Definition at line 106 of file L1CaloRegion.cc.
void L1CaloRegion::setQuiet | ( | bool | quiet | ) |
set quiet bit (required for GCT emulator standalone operation)
Definition at line 115 of file L1CaloRegion.cc.
References m_data, and quiet().
|
inline |
set data
Definition at line 120 of file L1CaloRegion.h.
Referenced by L1GctRegion::setBit().
|
inlineprivate |
|
inline |
get tau veto bit
Definition at line 99 of file L1CaloRegion.h.
References fineGrain(), and isHf().
Referenced by L1CaloRegion(), makeHBHERegion(), and operator<<().
|
friend |
print to stream
|
private |
Definition at line 198 of file L1CaloRegion.h.
|
private |
Definition at line 196 of file L1CaloRegion.h.
Referenced by capBlock(), and setCaptureBlock().
|
private |
Definition at line 197 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 195 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 192 of file L1CaloRegion.h.
Referenced by gctEta(), gctPhi(), id(), isHbHe(), isHf(), operator==(), rctCard(), rctCrate(), rctEta(), rctPhi(), rctRegionIndex(), and setRegionId().