Gct version of a calorimeter region, used within GCT emulation. More...
#include <L1GctRegion.h>
Public Types | |
enum | numberOfBits { kGctRegionNBits = 10, kGctRegionOFlowBit = 1 << kGctRegionNBits, kGctRegionMaxValue = kGctRegionOFlowBit - 1 } |
Public Member Functions | |
void | clrFeatureBit0 () |
void | clrFeatureBit1 () |
unsigned | et () const |
get Et | |
bool | featureBit0 () |
bool | featureBit1 () |
ULong | getEt () const |
bool | getMip () const |
bool | getQuiet () const |
L1GctRegion (ULong et=0, bool mip=false, bool quiet=false) | |
L1GctRegion () | |
ostream & | operator<< (ostream &os, const L1GctRegion &s) |
unsigned | rctEta () const |
get local eta index (within RCT crate) | |
void | setEt (ULong et) |
void | setFeatureBit0 () |
void | setFeatureBit1 () |
void | setMip (bool mip) |
set MIP bit (required for GCT emulator standalone operation) | |
void | setQuiet (bool quiet) |
set quiet bit (required for GCT emulator standalone operation) | |
~L1GctRegion () | |
~L1GctRegion () | |
Static Public Member Functions | |
static L1GctRegion | makeFinalJetRegion (const unsigned et, const bool overFlow, const bool fineGrain, const unsigned ieta, const unsigned iphi, const int16_t bx) |
static L1GctRegion | makeJfInputRegion (const L1CaloRegion &) |
static L1GctRegion | makeProtoJetRegion (const unsigned et, const bool overFlow, const bool fineGrain, const bool tauIsolationVeto, const unsigned ieta, const unsigned iphi, const int16_t bx) |
Private Member Functions | |
L1GctRegion (const unsigned et, const bool overFlow, const bool fineGrain, const unsigned ieta, const unsigned iphi, const int16_t bx) | |
void | setBit (const unsigned bitNum, const bool onOff) |
Private Attributes | |
std::bitset< 10 > | myEt |
bool | myMip |
bool | myQuiet |
Gct version of a calorimeter region, used within GCT emulation.
Only differs from L1CaloRegion by the treatment of overflows
Definition at line 17 of file L1GctRegion.h.
Definition at line 21 of file L1GctRegion.h.
{ kGctRegionNBits = 10, kGctRegionOFlowBit = 1 << kGctRegionNBits, kGctRegionMaxValue = kGctRegionOFlowBit - 1 };
L1GctRegion::L1GctRegion | ( | ) |
Definition at line 3 of file L1GctRegion.cc.
: L1CaloRegion() {}
L1GctRegion::~L1GctRegion | ( | ) |
Definition at line 5 of file L1GctRegion.cc.
{}
L1GctRegion::L1GctRegion | ( | const unsigned | et, |
const bool | overFlow, | ||
const bool | fineGrain, | ||
const unsigned | ieta, | ||
const unsigned | iphi, | ||
const int16_t | bx | ||
) | [private] |
Definition at line 34 of file L1GctRegion.cc.
: L1CaloRegion( L1CaloRegion::makeGctJetRegion( ((overFlow || et>kGctRegionMaxValue) ? kGctRegionMaxValue : (et & kGctRegionMaxValue) ), (overFlow || et>kGctRegionMaxValue), fineGrain, ieta, iphi, bx) ) { }
L1GctRegion::L1GctRegion | ( | ULong | et = 0 , |
bool | mip = false , |
||
bool | quiet = false |
||
) |
L1GctRegion::~L1GctRegion | ( | ) |
void L1GctRegion::clrFeatureBit0 | ( | ) | [inline] |
Definition at line 50 of file L1GctRegion.h.
References setBit().
Referenced by makeProtoJetRegion().
{ setBit(14, false); }
void L1GctRegion::clrFeatureBit1 | ( | ) | [inline] |
unsigned L1GctRegion::et | ( | ) | const [inline] |
get Et
Reimplemented from L1CaloRegion.
Definition at line 40 of file L1GctRegion.h.
References kGctRegionMaxValue, L1CaloRegion::overFlow(), and L1CaloRegion::raw().
Referenced by setEt().
{ return overFlow() ? kGctRegionMaxValue : raw()&kGctRegionMaxValue; }
bool L1GctRegion::featureBit0 | ( | ) | [inline] |
Definition at line 46 of file L1GctRegion.h.
References L1CaloRegion::raw().
{ return ((raw() >> 14) & 0x1) != 0; }
bool L1GctRegion::featureBit1 | ( | ) | [inline] |
Definition at line 47 of file L1GctRegion.h.
References L1CaloRegion::raw().
{ return ((raw() >> 15) & 0x1) != 0; }
ULong L1GctRegion::getEt | ( | ) | const [inline] |
bool L1GctRegion::getMip | ( | ) | const [inline] |
bool L1GctRegion::getQuiet | ( | ) | const [inline] |
L1GctRegion L1GctRegion::makeFinalJetRegion | ( | const unsigned | et, |
const bool | overFlow, | ||
const bool | fineGrain, | ||
const unsigned | ieta, | ||
const unsigned | iphi, | ||
const int16_t | bx | ||
) | [static] |
Definition at line 26 of file L1GctRegion.cc.
References csvReporter::r.
Referenced by L1GctHardwareJetFinder::findFinalClusters().
L1GctRegion L1GctRegion::makeJfInputRegion | ( | const L1CaloRegion & | r_in | ) | [static] |
Definition at line 7 of file L1GctRegion.cc.
References L1CaloRegion::bx(), L1CaloRegion::et(), L1CaloRegion::fineGrain(), L1CaloRegion::gctEta(), L1CaloRegion::gctPhi(), L1CaloRegion::isHf(), L1CaloRegion::overFlow(), and csvReporter::r.
Referenced by L1GctJetFinderBase::setInputRegion().
L1GctRegion L1GctRegion::makeProtoJetRegion | ( | const unsigned | et, |
const bool | overFlow, | ||
const bool | fineGrain, | ||
const bool | tauIsolationVeto, | ||
const unsigned | ieta, | ||
const unsigned | iphi, | ||
const int16_t | bx | ||
) | [static] |
Definition at line 14 of file L1GctRegion.cc.
References clrFeatureBit0(), csvReporter::r, and setFeatureBit0().
Referenced by L1GctHardwareJetFinder::makeProtoJet().
ostream& L1GctRegion::operator<< | ( | ostream & | os, |
const L1GctRegion & | s | ||
) |
unsigned L1GctRegion::rctEta | ( | ) | const [inline] |
get local eta index (within RCT crate)
Reimplemented from L1CaloRegion.
Definition at line 43 of file L1GctRegion.h.
References L1CaloRegion::empty(), and rctEta().
Referenced by L1GctHardwareJetFinder::makeProtoJet(), and rctEta().
void L1GctRegion::setBit | ( | const unsigned | bitNum, |
const bool | onOff | ||
) | [private] |
Definition at line 43 of file L1GctRegion.cc.
References AlCaHLTBitMon_QueryRunRegistry::data, L1CaloRegion::raw(), and L1CaloRegion::setRawData().
Referenced by clrFeatureBit0(), clrFeatureBit1(), setFeatureBit0(), and setFeatureBit1().
{ if ((bitNum==14) || (bitNum==15)) { uint16_t data = raw(); uint16_t mask = 1 << bitNum; data &= ~mask; if (onOff) data |= mask; setRawData(data); } }
void L1GctRegion::setEt | ( | ULong | et | ) | [inline] |
void L1GctRegion::setFeatureBit0 | ( | ) | [inline] |
Definition at line 49 of file L1GctRegion.h.
References setBit().
Referenced by makeProtoJetRegion().
{ setBit(14, true ); }
void L1GctRegion::setFeatureBit1 | ( | ) | [inline] |
void L1GctRegion::setMip | ( | bool | mip | ) | [inline] |
set MIP bit (required for GCT emulator standalone operation)
Reimplemented from L1CaloRegion.
Definition at line 31 of file L1GctRegion.h.
References L1CaloRegion::mip(), and myMip.
void L1GctRegion::setQuiet | ( | bool | quiet | ) | [inline] |
set quiet bit (required for GCT emulator standalone operation)
Reimplemented from L1CaloRegion.
Definition at line 32 of file L1GctRegion.h.
References myQuiet, and L1CaloRegion::quiet().
std::bitset<10> L1GctRegion::myEt [private] |
Definition at line 38 of file L1GctRegion.h.
bool L1GctRegion::myMip [private] |
Definition at line 39 of file L1GctRegion.h.
bool L1GctRegion::myQuiet [private] |
Definition at line 40 of file L1GctRegion.h.
Referenced by getQuiet(), and setQuiet().