#include <HcalTrigTowerDetId.h>
Public Member Functions | |
int | depth () const |
get the depth (zero for LHC Run 1, may be nonzero for later runs) More... | |
HcalTrigTowerDetId () | |
HcalTrigTowerDetId (uint32_t rawid) | |
HcalTrigTowerDetId (int ieta, int iphi) | |
Constructor from signed ieta, iphi. More... | |
HcalTrigTowerDetId (int ieta, int iphi, int depth) | |
Constructor from signed ieta, iphi, depth. More... | |
HcalTrigTowerDetId (int ieta, int iphi, int depth, int version) | |
Constructor from signed ieta, iphi, depth, version. More... | |
HcalTrigTowerDetId (const DetId &id) | |
int | ieta () const |
get the tower ieta More... | |
int | ietaAbs () const |
get the absolute value of the tower ieta More... | |
int | iphi () const |
get the tower iphi More... | |
HcalTrigTowerDetId & | operator= (const DetId &id) |
void | setVersion (int version) |
HcalSubdetector | subdet () const |
get the subdetector More... | |
int | version () const |
get the version code for the trigger tower More... | |
int | zside () const |
get the z-side of the tower (1/-1) 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 int | kHcalDepthMask = 0x7 |
static const int | kHcalDepthOffset = 14 |
static const int | kHcalEtaMask = 0x3F |
static const int | kHcalEtaOffset = 7 |
static const int | kHcalPhiMask = 0x7F |
static const int | kHcalVersMask = 0x7 |
static const int | kHcalVersOffset = 17 |
static const int | kHcalZsideMask = 0x2000 |
static const HcalTrigTowerDetId | Undefined |
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_ |
Cell id for an Calo Trigger tower
Definition at line 14 of file HcalTrigTowerDetId.h.
HcalTrigTowerDetId::HcalTrigTowerDetId | ( | ) |
HcalTrigTowerDetId::HcalTrigTowerDetId | ( | uint32_t | rawid | ) |
Constructor from a raw value
Definition at line 11 of file HcalTrigTowerDetId.cc.
HcalTrigTowerDetId::HcalTrigTowerDetId | ( | int | ieta, |
int | iphi | ||
) |
Constructor from signed ieta, iphi.
Definition at line 14 of file HcalTrigTowerDetId.cc.
References DetId::id_, kHcalEtaOffset, kHcalPhiMask, and kHcalZsideMask.
HcalTrigTowerDetId::HcalTrigTowerDetId | ( | int | ieta, |
int | iphi, | ||
int | depth | ||
) |
Constructor from signed ieta, iphi, depth.
Definition at line 20 of file HcalTrigTowerDetId.cc.
References DetId::id_, kHcalDepthMask, kHcalDepthOffset, kHcalEtaOffset, kHcalPhiMask, kHcalVersMask, kHcalVersOffset, kHcalZsideMask, and version().
HcalTrigTowerDetId::HcalTrigTowerDetId | ( | int | ieta, |
int | iphi, | ||
int | depth, | ||
int | version | ||
) |
Constructor from signed ieta, iphi, depth, version.
Definition at line 38 of file HcalTrigTowerDetId.cc.
References DetId::id_, kHcalDepthMask, kHcalDepthOffset, kHcalEtaOffset, kHcalPhiMask, kHcalVersMask, kHcalVersOffset, and kHcalZsideMask.
HcalTrigTowerDetId::HcalTrigTowerDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 45 of file HcalTrigTowerDetId.cc.
References TauDecayModes::dec, DetId::det(), Exception, DetId::Hcal, HcalTriggerTower, DetId::id_, DetId::null(), DetId::rawId(), and DetId::subdetId().
|
inline |
get the depth (zero for LHC Run 1, may be nonzero for later runs)
Definition at line 57 of file HcalTrigTowerDetId.h.
References DetId::id_, and kHcalDepthMask.
Referenced by hcaldqm::quantity::getValue_TTdepth(), hcaldqm::hashfunctions::hash_TChannel(), hcaldqm::hashfunctions::hash_TTdepth(), HcalText2DetIdConverter::init(), hcaldqm::hashfunctions::name_TTdepth(), and operator<<().
|
inline |
get the tower ieta
Definition at line 53 of file HcalTrigTowerDetId.h.
References ietaAbs(), and zside().
Referenced by TPComparisonTask::_process(), HcalTrigTowerGeometry::detIds(), hcaldqm::quantity::getLabels_TTSubdetPM(), hcaldqm::quantity::getValue_TTieta(), hcaldqm::quantity::getValue_TTieta2x3(), hcaldqm::quantity::getValue_TTSubdetPM(), hcaldqm::hashfunctions::hash_TChannel(), hcaldqm::hashfunctions::hash_TTSubdetPM(), hcaldqm::hashfunctions::hash_TTSubdetPMiphi(), HcalText2DetIdConverter::init(), hcaldqm::hashfunctions::name_TTSubdetPM(), and HTLogicalMapEntry::printLMapLine().
|
inline |
get the absolute value of the tower ieta
Definition at line 51 of file HcalTrigTowerDetId.h.
References DetId::id_, and kHcalEtaMask.
Referenced by TPTask::_process(), HcalTopology::detId2denseIdHT(), hcaldqm::TPRunSummary::endJob(), hcaldqm::quantity::getLabels_TTSubdetPM(), hcaldqm::quantity::getValue_TTSubdet(), hcaldqm::quantity::getValue_TTSubdetPM(), hcaldqm::hashfunctions::hash_TTSubdet(), hcaldqm::hashfunctions::hash_TTSubdetPM(), hcaldqm::hashfunctions::hash_TTSubdetPMiphi(), ieta(), hcaldqm::hashfunctions::name_TTSubdet(), and hcaldqm::hashfunctions::name_TTSubdetPM().
|
inline |
get the tower iphi
Definition at line 55 of file HcalTrigTowerDetId.h.
References DetId::id_, and kHcalPhiMask.
Referenced by TPComparisonTask::_process(), HcalTopology::detId2denseIdHT(), HcalTrigTowerGeometry::detIds(), hcaldqm::quantity::getValue_TTiphi(), hcaldqm::hashfunctions::hash_TChannel(), hcaldqm::hashfunctions::hash_TTSubdetPMiphi(), HcalText2DetIdConverter::init(), hcaldqm::hashfunctions::name_TTSubdetPMiphi(), and HTLogicalMapEntry::printLMapLine().
HcalTrigTowerDetId & HcalTrigTowerDetId::operator= | ( | const DetId & | id | ) |
Assignment from a generic cell id
Definition at line 56 of file HcalTrigTowerDetId.cc.
References TauDecayModes::dec, DetId::det(), Exception, DetId::Hcal, HcalTriggerTower, DetId::id_, DetId::null(), DetId::rawId(), and DetId::subdetId().
void HcalTrigTowerDetId::setVersion | ( | int | version | ) |
Definition at line 52 of file HcalTrigTowerDetId.cc.
References DetId::id_, kHcalVersMask, and kHcalVersOffset.
|
inline |
get the subdetector
Definition at line 47 of file HcalTrigTowerDetId.h.
References DetId::subdetId().
|
inline |
get the version code for the trigger tower
Definition at line 59 of file HcalTrigTowerDetId.h.
References DetId::id_, and kHcalVersMask.
Referenced by TPComparisonTask::_process(), TPTask::_process(), HcalTriggerPrimitiveAlgo::addSignal(), validation.Sample::datasetpattern(), HcalTopology::detId2denseIdHT(), HcalTrigTowerGeometry::detIds(), hcaldqm::TPRunSummary::endJob(), validation.Sample::filename(), HcalTrigTowerDetId(), and HcalText2DetIdConverter::init().
|
inline |
get the z-side of the tower (1/-1)
Definition at line 49 of file HcalTrigTowerDetId.h.
References DetId::id_.
Referenced by HcalTopology::detId2denseIdHT(), HcalTrigTowerGeometry::detIds(), and ieta().
|
static |
Definition at line 21 of file HcalTrigTowerDetId.h.
Referenced by depth(), and HcalTrigTowerDetId().
|
static |
Definition at line 20 of file HcalTrigTowerDetId.h.
Referenced by HcalTrigTowerDetId().
|
static |
Definition at line 18 of file HcalTrigTowerDetId.h.
Referenced by ietaAbs().
|
static |
Definition at line 17 of file HcalTrigTowerDetId.h.
Referenced by HcalTrigTowerDetId().
|
static |
Definition at line 16 of file HcalTrigTowerDetId.h.
Referenced by HcalTrigTowerDetId(), and iphi().
|
static |
Definition at line 23 of file HcalTrigTowerDetId.h.
Referenced by HcalTrigTowerDetId(), setVersion(), and version().
|
static |
Definition at line 22 of file HcalTrigTowerDetId.h.
Referenced by HcalTrigTowerDetId(), and setVersion().
|
static |
Definition at line 19 of file HcalTrigTowerDetId.h.
Referenced by HcalTrigTowerDetId().
|
static |
Definition at line 61 of file HcalTrigTowerDetId.h.
Referenced by HcalDbASCIIIO::createObject< HcalElectronicsMap >(), CastorDbASCIIIO::getObject(), HcalText2DetIdConverter::init(), HcalUnpacker::unpackUTCA(), and HcalUnpacker::unpackVME().