#include <HGCalTriggerBackendDetId.h>
Public Types | |
enum | BackendType { LpGBT, Stage1FPGA, Stage1Link, Stage2FPGA } |
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 } |
Public Member Functions | |
int | classId () const |
get the class More... | |
HGCalTriggerBackendDetId () | |
HGCalTriggerBackendDetId (uint32_t rawid) | |
HGCalTriggerBackendDetId (int zp, int type, int sector, int label) | |
HGCalTriggerBackendDetId (const DetId &id) | |
bool | isForward () const |
bool | isHGCalBackendDetId () const |
bool | isHGCalModuleDetId () const |
bool | isLpGBT () const |
bool | isStage1FPGA () const |
bool | isStage1Link () const |
bool | isStage2FPGA () const |
int | label () const |
get the value More... | |
HGCalTriggerBackendDetId & | operator= (const DetId &id) |
int | sector () const |
get the sector # More... | |
int | type () const |
get the type More... | |
int | zside () const |
get the z-side of the backend object (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 | kHGCalLabelMask = 0x7FF |
static const int | kHGCalLabelOffset = 0 |
static const int | kHGCalSectorMask = 0x3 |
static const int | kHGCalSectorOffset = 11 |
static const int | kHGCalTriggerClassIdentifierMask = 0x1 |
static const int | kHGCalTriggerClassIdentifierOffset = 24 |
static const int | kHGCalTypeMask = 0x7 |
static const int | kHGCalTypeOffset = 13 |
static const int | kHGCalZsideMask = 0x1 |
static const int | kHGCalZsideOffset = 16 |
static const HGCalTriggerBackendDetId | 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 | |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Definition at line 22 of file HGCalTriggerBackendDetId.h.
Enumerator | |
---|---|
LpGBT | |
Stage1FPGA | |
Stage1Link | |
Stage2FPGA |
Definition at line 71 of file HGCalTriggerBackendDetId.h.
HGCalTriggerBackendDetId::HGCalTriggerBackendDetId | ( | ) |
Create a null backend id
Definition at line 5 of file HGCalTriggerBackendDetId.cc.
HGCalTriggerBackendDetId::HGCalTriggerBackendDetId | ( | uint32_t | rawid | ) |
Create backend id from raw id (0=invalid id)
Definition at line 7 of file HGCalTriggerBackendDetId.cc.
HGCalTriggerBackendDetId::HGCalTriggerBackendDetId | ( | int | zp, |
int | type, | ||
int | sector, | ||
int | label | ||
) |
Constructor from zplus, type, sector, label
Definition at line 9 of file HGCalTriggerBackendDetId.cc.
References BackendDetId, Forward, DetId::id_, kHGCalLabelMask, kHGCalLabelOffset, kHGCalSectorMask, kHGCalSectorOffset, kHGCalTriggerClassIdentifierMask, kHGCalTriggerClassIdentifierOffset, kHGCalTypeMask, kHGCalTypeOffset, kHGCalZsideMask, kHGCalZsideOffset, label(), sector(), and zside().
HGCalTriggerBackendDetId::HGCalTriggerBackendDetId | ( | const DetId & | id | ) |
Constructor from a generic det id
Definition at line 18 of file HGCalTriggerBackendDetId.cc.
References TauDecayModes::dec, Exception, DetId::Forward, and DetId::id_.
|
inline |
get the class
Definition at line 36 of file HGCalTriggerBackendDetId.h.
References DetId::id_, kHGCalTriggerClassIdentifierMask, and kHGCalTriggerClassIdentifierOffset.
Referenced by isHGCalBackendDetId(), and isHGCalModuleDetId().
|
inline |
Definition at line 54 of file HGCalTriggerBackendDetId.h.
|
inline |
Definition at line 56 of file HGCalTriggerBackendDetId.h.
References BackendDetId, and classId().
|
inline |
Definition at line 55 of file HGCalTriggerBackendDetId.h.
References classId(), and ModuleDetId.
|
inline |
Definition at line 50 of file HGCalTriggerBackendDetId.h.
References type().
|
inline |
Definition at line 51 of file HGCalTriggerBackendDetId.h.
References type().
|
inline |
Definition at line 52 of file HGCalTriggerBackendDetId.h.
References type().
|
inline |
Definition at line 53 of file HGCalTriggerBackendDetId.h.
References type().
|
inline |
get the value
Definition at line 48 of file HGCalTriggerBackendDetId.h.
References DetId::id_, kHGCalLabelMask, and kHGCalLabelOffset.
Referenced by HGCalTriggerBackendDetId().
HGCalTriggerBackendDetId & HGCalTriggerBackendDetId::operator= | ( | const DetId & | id | ) |
Assignment from a generic det id
Definition at line 28 of file HGCalTriggerBackendDetId.cc.
References TauDecayModes::dec, Exception, DetId::Forward, and DetId::id_.
|
inline |
get the sector #
Definition at line 45 of file HGCalTriggerBackendDetId.h.
References DetId::id_, kHGCalSectorMask, and kHGCalSectorOffset.
Referenced by HGCalStage2ClusterDistribution::getStage2FPGAs(), HGCalTriggerBackendDetId(), geometryXMLparser.DTAlignable::index(), HGCalStage1TruncationImpl::run(), and HGCalBackendStage1Processor::run().
|
inline |
get the type
Definition at line 39 of file HGCalTriggerBackendDetId.h.
References DetId::id_, kHGCalTypeMask, and kHGCalTypeOffset.
Referenced by isLpGBT(), isStage1FPGA(), isStage1Link(), and isStage2FPGA().
|
inline |
get the z-side of the backend object (1/-1)
Definition at line 42 of file HGCalTriggerBackendDetId.h.
References DetId::id_, kHGCalZsideMask, and kHGCalZsideOffset.
Referenced by HGCalTriggerBackendDetId().
|
static |
Definition at line 61 of file HGCalTriggerBackendDetId.h.
Referenced by HGCalTriggerBackendDetId(), and label().
|
static |
Definition at line 60 of file HGCalTriggerBackendDetId.h.
Referenced by HGCalTriggerBackendDetId(), and label().
|
static |
Definition at line 63 of file HGCalTriggerBackendDetId.h.
Referenced by HGCalTriggerBackendDetId(), and sector().
|
static |
Definition at line 62 of file HGCalTriggerBackendDetId.h.
Referenced by HGCalTriggerBackendDetId(), and sector().
|
static |
Definition at line 69 of file HGCalTriggerBackendDetId.h.
Referenced by classId(), and HGCalTriggerBackendDetId().
|
static |
Definition at line 68 of file HGCalTriggerBackendDetId.h.
Referenced by classId(), and HGCalTriggerBackendDetId().
|
static |
Definition at line 65 of file HGCalTriggerBackendDetId.h.
Referenced by HGCalTriggerBackendDetId(), and type().
|
static |
Definition at line 64 of file HGCalTriggerBackendDetId.h.
Referenced by HGCalTriggerBackendDetId(), and type().
|
static |
Definition at line 67 of file HGCalTriggerBackendDetId.h.
Referenced by HGCalTriggerBackendDetId(), and zside().
|
static |
Definition at line 66 of file HGCalTriggerBackendDetId.h.
Referenced by HGCalTriggerBackendDetId(), and zside().
|
static |
Definition at line 58 of file HGCalTriggerBackendDetId.h.