#include <L1CaloRegionDetId.h>
Public Member Functions | |
unsigned | ieta () const |
global eta index (0-21) More... | |
unsigned | iphi () const |
global phi index (0-17) More... | |
bool | isHf () const |
return central or forward type More... | |
L1CaloRegionDetId () | |
create null id More... | |
L1CaloRegionDetId (uint32_t rawid) | |
create id from raw data (0=invalid code?) More... | |
L1CaloRegionDetId (unsigned ieta, unsigned iphi) | |
create id from global eta, phi indices (eta=0-21, phi=0-17) More... | |
L1CaloRegionDetId (unsigned icrate, unsigned icard, unsigned irgn) | |
unsigned | rctCard () const |
return RCT card number (0-6) More... | |
unsigned | rctCrate () const |
return RCT crate number (0-17) More... | |
unsigned | rctEta () const |
return local RCT eta index (0-10) More... | |
unsigned | rctPhi () const |
return local RCT phi index (0-1) More... | |
unsigned | rctRegion () const |
return RCT region index (0-1 for barrel, 0-7 for HF) More... | |
Public Member Functions inherited from DetId | |
constexpr Detector | det () const |
get the detector field from this detid More... | |
constexpr | DetId () |
Create an empty or null id (also for persistence) More... | |
constexpr | DetId (uint32_t id) |
Create an id from a raw number. More... | |
constexpr | DetId (Detector det, int subdet) |
Create an id, filling the detector and subdetector fields as specified. More... | |
constexpr bool | null () const |
is this a null id ? More... | |
constexpr | operator uint32_t () const |
constexpr bool | operator!= (DetId id) const |
inequality More... | |
constexpr uint32_t | operator() () const |
constexpr bool | operator< (DetId id) const |
comparison More... | |
constexpr bool | operator== (DetId id) const |
equality More... | |
constexpr uint32_t | rawId () const |
get the raw id More... | |
constexpr int | subdetId () const |
get the contents of the subdetector field (not cast into any detector's numbering enum) More... | |
Static Public Attributes | |
static const unsigned | N_ETA = 22 |
static const unsigned | N_PHI = 18 |
Static Public Attributes inherited from DetId | |
static const int | kDetMask = 0xF |
static const int | kDetOffset = 28 |
static const int | kSubdetMask = 0x7 |
static const int | kSubdetOffset = 25 |
Additional Inherited Members | |
Public Types inherited from DetId | |
enum | Detector { Tracker = 1, Muon = 2, Ecal = 3, Hcal = 4, Calo = 5, Forward = 6, VeryForward = 7, HGCalEE = 8, HGCalHSi = 9, HGCalHSc = 10, HGCalTrigger = 11 } |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Stores eta value in bits 4-0, phi value in bits 9-5
Cell identifier class for L1 Calo Trigger Regions (4x4 trigger tower sums)
Definition at line 18 of file L1CaloRegionDetId.h.
L1CaloRegionDetId::L1CaloRegionDetId | ( | ) |
create null id
Definition at line 6 of file L1CaloRegionDetId.cc.
L1CaloRegionDetId::L1CaloRegionDetId | ( | uint32_t | rawid | ) |
create id from raw data (0=invalid code?)
Definition at line 9 of file L1CaloRegionDetId.cc.
L1CaloRegionDetId::L1CaloRegionDetId | ( | unsigned | ieta, |
unsigned | iphi | ||
) |
create id from global eta, phi indices (eta=0-21, phi=0-17)
Definition at line 13 of file L1CaloRegionDetId.cc.
References DetId::id_, ieta(), and iphi().
L1CaloRegionDetId::L1CaloRegionDetId | ( | unsigned | icrate, |
unsigned | icard, | ||
unsigned | irgn | ||
) |
create id from RCT crate, RCT card, RCT region (within card) icard=999 is used to indicate HF regions
TODO - check calculation of ieta and iphi from RCT crate/card/region #
Definition at line 18 of file L1CaloRegionDetId.cc.
References DetId::id_, ieta(), and iphi().
|
inline |
global eta index (0-21)
Definition at line 37 of file L1CaloRegionDetId.h.
References DetId::id_.
Referenced by L1CaloMipQuietRegion::gctEta(), L1CaloRegion::gctEta(), L1GctJet::globalEta(), L1GctJet::hwEta(), isHf(), L1CaloRegionDetId(), rctCard(), rctCrate(), rctEta(), and rctRegion().
|
inline |
global phi index (0-17)
Definition at line 40 of file L1CaloRegionDetId.h.
References DetId::id_.
Referenced by L1CaloMipQuietRegion::gctPhi(), L1CaloRegion::gctPhi(), L1GctJet::globalPhi(), L1GctJet::hwPhi(), L1CaloRegionDetId(), rctCard(), rctCrate(), rctPhi(), and rctRegion().
|
inline |
return central or forward type
Definition at line 43 of file L1CaloRegionDetId.h.
References ieta().
Referenced by L1CaloRegion::isHbHe(), and L1CaloRegion::isHf().
unsigned L1CaloRegionDetId::rctCard | ( | ) | const |
return RCT card number (0-6)
Definition at line 61 of file L1CaloRegionDetId.cc.
References ieta(), and iphi().
Referenced by L1CaloMipQuietRegion::rctCard(), and L1CaloRegion::rctCard().
unsigned L1CaloRegionDetId::rctCrate | ( | ) | const |
return RCT crate number (0-17)
Definition at line 55 of file L1CaloRegionDetId.cc.
References ieta(), iphi(), N_ETA, and N_PHI.
Referenced by L1CaloMipQuietRegion::rctCrate(), and L1CaloRegion::rctCrate().
|
inline |
return local RCT eta index (0-10)
Definition at line 55 of file L1CaloRegionDetId.h.
References ieta().
Referenced by L1GctJet::hwEta(), L1CaloMipQuietRegion::rctEta(), L1GctJet::rctEta(), and L1CaloRegion::rctEta().
|
inline |
return local RCT phi index (0-1)
Definition at line 58 of file L1CaloRegionDetId.h.
References iphi().
Referenced by L1CaloMipQuietRegion::rctPhi(), L1GctJet::rctPhi(), and L1CaloRegion::rctPhi().
unsigned L1CaloRegionDetId::rctRegion | ( | ) | const |
return RCT region index (0-1 for barrel, 0-7 for HF)
Definition at line 77 of file L1CaloRegionDetId.cc.
References ieta(), and iphi().
Referenced by L1CaloMipQuietRegion::rctRegionIndex(), and L1CaloRegion::rctRegionIndex().
|
static |
Definition at line 21 of file L1CaloRegionDetId.h.
Referenced by l1t::HICaloRingSubtraction(), L1GctHardwareJetFinder::makeProtoJet(), and rctCrate().
|
static |
Definition at line 20 of file L1CaloRegionDetId.h.
Referenced by l1t::deltaGctPhi(), l1t::Stage1Layer2EtSumAlgorithmImpPP::DiJetPhi(), l1t::Stage1Layer2EtSumAlgorithmImpHW::DiJetPhi(), l1t::Stage1Layer2EtSumAlgorithmImpHI::DiJetPhi(), l1t::Stage1Layer2TauAlgorithmImpPP::findNESW(), l1t::Stage1Layer2TauAlgorithmImpHW::findNESW(), l1t::Stage1Layer2EGammaAlgorithmImpPP::Isolation(), L1GctHardwareJetFinder::L1GctHardwareJetFinder(), L1GctJetFinderBase::L1GctJetFinderBase(), L1GctTdrJetFinder::L1GctTdrJetFinder(), l1t::Stage1Layer2EtSumAlgorithmImpPP::processEvent(), l1t::Stage1Layer2TauAlgorithmImpPP::processEvent(), l1t::Stage1Layer2TauAlgorithmImpHW::processEvent(), L1TPhysicalEtAdder::produce(), rctCrate(), L1GctJetFinderBase::setInputRegion(), L1GlobalCaloTrigger::setRegion(), l1t::Stage1Layer2EtSumAlgorithmImpPP::Stage1Layer2EtSumAlgorithmImpPP(), and l1t::Stage1Layer2FlowAlgorithm::Stage1Layer2FlowAlgorithm().