#include <L1Trigger/GlobalCaloTrigger/interface/L1GctRegion.h>
Public Types | |
enum | numberOfBits { kGctRegionNBits = 10, kGctRegionOFlowBit = 1 << kGctRegionNBits, kGctRegionMaxValue = kGctRegionOFlowBit - 1 } |
Public Member Functions | |
unsigned | et () const |
get Et | |
ULong | getEt () const |
bool | getMip () const |
bool | getQuiet () const |
L1GctRegion (ULong et=0, bool mip=false, bool quiet=false) | |
L1GctRegion () | |
L1GctRegion (const L1CaloRegion &) | |
L1GctRegion (const unsigned et, const bool overFlow, const bool fineGrain, const unsigned ieta, const unsigned iphi) | |
L1GctRegion (const unsigned et, const bool overFlow, const bool fineGrain, const unsigned ieta, const unsigned iphi, const int16_t bx) | |
ostream & | operator<< (ostream &os, const L1GctRegion &s) |
unsigned | rctEta () const |
get local eta index (within RCT crate) | |
void | setEt (ULong et) |
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 () | |
Private Attributes | |
std::bitset< 10 > | myEt |
bool | myMip |
bool | myQuiet |
Definition at line 17 of file L1GctRegion.h.
Definition at line 21 of file L1GctRegion.h.
00021 { 00022 kGctRegionNBits = 10, 00023 kGctRegionOFlowBit = 1 << kGctRegionNBits, 00024 kGctRegionMaxValue = kGctRegionOFlowBit - 1 00025 };
L1GctRegion::L1GctRegion | ( | const unsigned | et, | |
const bool | overFlow, | |||
const bool | fineGrain, | |||
const unsigned | ieta, | |||
const unsigned | iphi, | |||
const int16_t | bx | |||
) |
Definition at line 3 of file L1GctRegion.cc.
References L1CaloRegion::setBx().
00004 : 00005 // L1CaloRegion( L1CaloRegion::makeGctJetRegion( (((et>kGctRegionMaxValue) || overFlow) ? kGctRegionMaxValue : et), 00006 // ((et>kGctRegionMaxValue) || overFlow), fineGrain, ieta, iphi, bx) ) 00007 // For 21X compatibility, use old-style L1CaloRegion constructor. 00008 // For 30X, the bx argument can be included in the ctor so no need to setBx() explicitly 00009 L1CaloRegion( (((et>kGctRegionMaxValue) || overFlow) ? kGctRegionMaxValue : et), 00010 ((et>kGctRegionMaxValue) || overFlow), fineGrain, false, false, ieta, iphi) 00011 { 00012 this->setBx(bx); 00013 }
L1GctRegion::L1GctRegion | ( | const unsigned | et, | |
const bool | overFlow, | |||
const bool | fineGrain, | |||
const unsigned | ieta, | |||
const unsigned | iphi | |||
) |
Definition at line 15 of file L1GctRegion.cc.
References L1CaloRegion::setBx().
00016 : 00017 // L1CaloRegion( L1CaloRegion::makeGctJetRegion( (((et>kGctRegionMaxValue) || overFlow) ? kGctRegionMaxValue : et), 00018 // ((et>kGctRegionMaxValue) || overFlow), fineGrain, ieta, iphi, 0) ) 00019 L1CaloRegion( (((et>kGctRegionMaxValue) || overFlow) ? kGctRegionMaxValue : et), 00020 ((et>kGctRegionMaxValue) || overFlow), fineGrain, false, false, ieta, iphi) 00021 { 00022 this->setBx(0); 00023 }
L1GctRegion::L1GctRegion | ( | const L1CaloRegion & | r | ) |
Definition at line 25 of file L1GctRegion.cc.
References L1CaloRegion::bx(), and L1CaloRegion::setBx().
00025 : 00026 // L1CaloRegion( L1CaloRegion::makeGctJetRegion( (r.overFlow() ? kGctRegionMaxValue : r.et()), 00027 // r.overFlow(), r.fineGrain(), r.gctEta(), r.gctPhi(), r.bx()) ) 00028 L1CaloRegion( (r.overFlow() ? kGctRegionMaxValue : r.et()), 00029 r.overFlow(), r.fineGrain(), false, false, r.gctEta(), r.gctPhi()) 00030 { 00031 this->setBx(r.bx()); 00032 }
L1GctRegion::L1GctRegion | ( | ) |
Definition at line 34 of file L1GctRegion.cc.
References L1CaloRegion::setBx().
00034 : L1CaloRegion() 00035 { 00036 this->setBx(0); 00037 }
L1GctRegion::~L1GctRegion | ( | ) |
L1GctRegion::~L1GctRegion | ( | ) |
unsigned L1GctRegion::et | ( | ) | const [inline] |
get Et
Reimplemented from L1CaloRegion.
Definition at line 35 of file L1GctRegion.h.
References kGctRegionMaxValue, L1CaloRegion::overFlow(), and L1CaloRegion::raw().
00035 { return overFlow() ? kGctRegionMaxValue : raw()&kGctRegionMaxValue; }
ULong L1GctRegion::getEt | ( | ) | const [inline] |
bool L1GctRegion::getMip | ( | ) | const [inline] |
bool L1GctRegion::getQuiet | ( | ) | const [inline] |
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 38 of file L1GctRegion.h.
References L1CaloRegion::empty().
set MIP bit (required for GCT emulator standalone operation)
Reimplemented from L1CaloRegion.
Definition at line 31 of file L1GctRegion.h.
References myMip.
set quiet bit (required for GCT emulator standalone operation)
Reimplemented from L1CaloRegion.
Definition at line 32 of file L1GctRegion.h.
References myQuiet.
std::bitset<10> L1GctRegion::myEt [private] |
bool L1GctRegion::myMip [private] |
bool L1GctRegion::myQuiet [private] |