#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 | |
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 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 | 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_ |
Cell id for an Calo Trigger tower
Definition at line 14 of file HcalTrigTowerDetId.h.
HcalTrigTowerDetId::HcalTrigTowerDetId | ( | ) |
HcalTrigTowerDetId::HcalTrigTowerDetId | ( | uint32_t | rawid | ) |
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_, kHcalDepthMask, and kHcalDepthOffset.
Referenced by HcalText2DetIdConverter::init().
|
inline |
get the tower ieta
Definition at line 53 of file HcalTrigTowerDetId.h.
References ietaAbs(), and zside().
Referenced by TPTask::_process(), HcalTrigTowerGeometry::detIds(), hcaldqm::axis::CoordinateAxis::get(), hcaldqm::utilities::getTPSubDetPM(), hcaldqm::mapper::Mapper::index(), HcalText2DetIdConverter::init(), and HTLogicalMapEntry::printLMapLine().
|
inline |
get the absolute value of the tower ieta
Definition at line 51 of file HcalTrigTowerDetId.h.
References DetId::id_, kHcalEtaMask, and kHcalEtaOffset.
Referenced by HcalTopology::detId2denseIdHT(), hcaldqm::axis::CoordinateAxis::get(), hcaldqm::utilities::getTPSubDet(), ieta(), and hcaldqm::mapper::Mapper::index().
|
inline |
get the tower iphi
Definition at line 55 of file HcalTrigTowerDetId.h.
References DetId::id_, and kHcalPhiMask.
Referenced by TPTask::_process(), HcalTopology::detId2denseIdHT(), HcalTrigTowerGeometry::detIds(), hcaldqm::axis::CoordinateAxis::get(), hcaldqm::mapper::Mapper::index(), HcalText2DetIdConverter::init(), 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_, kHcalVersMask, and kHcalVersOffset.
Referenced by TPTask::_process(), HcalTriggerPrimitiveAlgo::addSignal(), validation.Sample::datasetpattern(), HcalTopology::detId2denseIdHT(), HcalTrigTowerGeometry::detIds(), 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_, and kHcalZsideMask.
Referenced by HcalTopology::detId2denseIdHT(), 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 depth(), and 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(), and ietaAbs().
|
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(), setVersion(), and version().
|
static |
Definition at line 19 of file HcalTrigTowerDetId.h.
Referenced by HcalTrigTowerDetId(), and zside().
|
static |
Definition at line 61 of file HcalTrigTowerDetId.h.
Referenced by HcalText2DetIdConverter::init(), HcalUnpacker::unpackUTCA(), and HcalUnpacker::unpackVME().