#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 | |
Detector | det () const |
get the detector field from this detid More... | |
DetId () | |
Create an empty or null id (also for persistence) More... | |
DetId (uint32_t id) | |
Create an id from a raw number. More... | |
DetId (Detector det, int subdet) | |
Create an id, filling the detector and subdetector fields as specified. More... | |
bool | null () const |
is this a null id ? More... | |
operator uint32_t () const | |
bool | operator!= (DetId id) const |
inequality More... | |
uint32_t | operator() () const |
bool | operator< (DetId id) const |
comparison More... | |
bool | operator== (DetId id) const |
equality More... | |
uint32_t | rawId () const |
get the raw id More... | |
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 | kDetOffset = 28 |
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 } |
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 | ( | ) |
L1CaloRegionDetId::L1CaloRegionDetId | ( | uint32_t | rawid | ) |
L1CaloRegionDetId::L1CaloRegionDetId | ( | unsigned | ieta, |
unsigned | iphi | ||
) |
create id from global eta, phi indices (eta=0-21, phi=0-17)
Definition at line 15 of file L1CaloRegionDetId.cc.
References DetId::id_.
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 23 of file L1CaloRegionDetId.cc.
References DetId::id_, ieta(), and iphi().
|
inline |
global eta index (0-21)
Definition at line 39 of file L1CaloRegionDetId.h.
References DetId::id_.
Referenced by L1CaloGeometry::etaBinCenter(), L1CaloGeometry::etaBinHighEdge(), L1CaloGeometry::etaBinLowEdge(), L1CaloMipQuietRegion::gctEta(), L1CaloRegion::gctEta(), L1GctJet::globalEta(), L1GctJet::hwEta(), isHf(), L1CaloRegionDetId(), L1GctEmCand::L1GctEmCand(), rctCard(), rctCrate(), rctEta(), and rctRegion().
|
inline |
global phi index (0-17)
Definition at line 42 of file L1CaloRegionDetId.h.
References DetId::id_.
Referenced by L1CaloGeometry::emJetPhiBinCenter(), L1CaloGeometry::emJetPhiBinHighEdge(), L1CaloGeometry::emJetPhiBinLowEdge(), L1CaloMipQuietRegion::gctPhi(), L1CaloRegion::gctPhi(), L1GctJet::globalPhi(), L1GctJet::hwPhi(), L1CaloRegionDetId(), L1GctEmCand::L1GctEmCand(), rctCard(), rctCrate(), rctPhi(), and rctRegion().
|
inline |
return central or forward type
Definition at line 45 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 69 of file L1CaloRegionDetId.cc.
References ieta(), cmsHarvester::index, and iphi().
Referenced by L1CaloMipQuietRegion::rctCard(), and L1CaloRegion::rctCard().
unsigned L1CaloRegionDetId::rctCrate | ( | ) | const |
return RCT crate number (0-17)
Definition at line 63 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 57 of file L1CaloRegionDetId.h.
References ieta().
Referenced by L1GctJet::hwEta(), L1GctEmCand::L1GctEmCand(), L1CaloMipQuietRegion::rctEta(), L1GctJet::rctEta(), and L1CaloRegion::rctEta().
|
inline |
return local RCT phi index (0-1)
Definition at line 60 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 87 of file L1CaloRegionDetId.cc.
References ieta(), and iphi().
Referenced by L1CaloMipQuietRegion::rctRegionIndex(), and L1CaloRegion::rctRegionIndex().
|
static |
Definition at line 23 of file L1CaloRegionDetId.h.
Referenced by l1t::HICaloRingSubtraction(), L1GctHardwareJetFinder::makeProtoJet(), and rctCrate().
|
static |
Definition at line 22 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::Stage1Layer2TauAlgorithmImpPP::processEvent(), l1t::Stage1Layer2EtSumAlgorithmImpPP::processEvent(), l1t::Stage1Layer2TauAlgorithmImpHW::processEvent(), L1TPhysicalEtAdder::produce(), rctCrate(), L1GctJetFinderBase::setInputRegion(), L1GlobalCaloTrigger::setRegion(), l1t::Stage1Layer2EtSumAlgorithmImpPP::Stage1Layer2EtSumAlgorithmImpPP(), and l1t::Stage1Layer2FlowAlgorithm::Stage1Layer2FlowAlgorithm().