#include <FastTimeDetId.h>
Public Types | |
enum | { Subdet = FastTime } |
enum | { FastTimeUnknown = 0, FastTimeBarrel = 1, FastTimeEndcap = 2 } |
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 | |
FastTimeDetId () | |
FastTimeDetId (uint32_t rawid) | |
FastTimeDetId (int type, int module_izeta, int module_iphi, int iz) | |
FastTimeDetId (const DetId &id) | |
FastTimeDetId | geometryCell () const |
int | ieta () const |
get the absolute value of the cell #'s along x-axis (EC) | z-axis (Barel) More... | |
int | iphi () const |
get the absolute value of the cell #'s along y-axis (EC) | phi (Barrel) More... | |
bool | isFastTime () const |
consistency check : no bits left => no overhead More... | |
bool | isForward () const |
int | iz () const |
FastTimeDetId & | operator= (const DetId &id) |
ForwardSubdetector | subdet () const |
get the subdetector More... | |
int | type () const |
get the type (barrel vs endcap) More... | |
int | zside () const |
get the z-side of the cell (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 | kFastTimeCellPhiMask = 0x3FF |
static const int | kFastTimeCellPhiOffset = 0 |
static const int | kFastTimeCellZMask = 0x3FF |
static const int | kFastTimeCellZOffset = 10 |
static const int | kFastTimeTypeMask = 0x3 |
static const int | kFastTimeTypeOffset = 21 |
static const int | kFastTimeZsideMask = 0x1 |
static const int | kFastTimeZsideOffset = 20 |
static const FastTimeDetId | 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 8 of file FastTimeDetId.h.
anonymous enum |
Enumerator | |
---|---|
Subdet |
Definition at line 18 of file FastTimeDetId.h.
anonymous enum |
Enumerator | |
---|---|
FastTimeUnknown | |
FastTimeBarrel | |
FastTimeEndcap |
Definition at line 19 of file FastTimeDetId.h.
FastTimeDetId::FastTimeDetId | ( | ) |
Create a null cellid
Definition at line 8 of file FastTimeDetId.cc.
Referenced by geometryCell().
FastTimeDetId::FastTimeDetId | ( | uint32_t | rawid | ) |
Create cellid from raw id (0=invalid tower id)
Definition at line 10 of file FastTimeDetId.cc.
FastTimeDetId::FastTimeDetId | ( | int | type, |
int | module_izeta, | ||
int | module_iphi, | ||
int | iz | ||
) |
Constructor from subdetector, zplus, cell numbers along x and y axes
Definition at line 12 of file FastTimeDetId.cc.
References DetId::id_, kFastTimeCellPhiMask, kFastTimeCellPhiOffset, kFastTimeCellZMask, kFastTimeCellZOffset, kFastTimeTypeMask, kFastTimeTypeOffset, kFastTimeZsideMask, and kFastTimeZsideOffset.
FastTimeDetId::FastTimeDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 20 of file FastTimeDetId.cc.
References TauDecayModes::dec, Exception, FastTime, DetId::Forward, DetId::id_, and subdet().
|
inline |
Converter for a geometry cell id
Definition at line 32 of file FastTimeDetId.h.
References FastTimeDetId(), type(), and zside().
|
inline |
get the absolute value of the cell #'s along x-axis (EC) | z-axis (Barel)
Definition at line 41 of file FastTimeDetId.h.
References DetId::id_, kFastTimeCellZMask, and kFastTimeCellZOffset.
|
inline |
get the absolute value of the cell #'s along y-axis (EC) | phi (Barrel)
Definition at line 45 of file FastTimeDetId.h.
References DetId::id_, kFastTimeCellPhiMask, and kFastTimeCellPhiOffset.
|
inline |
consistency check : no bits left => no overhead
Definition at line 51 of file FastTimeDetId.h.
|
inline |
Definition at line 52 of file FastTimeDetId.h.
|
inline |
Definition at line 42 of file FastTimeDetId.h.
References DetId::id_, kFastTimeCellZMask, and kFastTimeCellZOffset.
FastTimeDetId & FastTimeDetId::operator= | ( | const DetId & | id | ) |
Assignment from a generic cell id
Definition at line 31 of file FastTimeDetId.cc.
References TauDecayModes::dec, Exception, FastTime, DetId::Forward, DetId::id_, and subdet().
|
inline |
get the subdetector
Definition at line 35 of file FastTimeDetId.h.
References FastTime.
Referenced by FastTimeDetId(), and operator=().
|
inline |
get the type (barrel vs endcap)
Definition at line 38 of file FastTimeDetId.h.
References DetId::id_, kFastTimeTypeMask, and kFastTimeTypeOffset.
Referenced by geometryCell().
|
inline |
get the z-side of the cell (1/-1)
Definition at line 48 of file FastTimeDetId.h.
References DetId::id_, kFastTimeZsideMask, and kFastTimeZsideOffset.
Referenced by geometryCell().
|
static |
Definition at line 13 of file FastTimeDetId.h.
Referenced by FastTimeDetId(), and iphi().
|
static |
Definition at line 12 of file FastTimeDetId.h.
Referenced by FastTimeDetId(), and iphi().
|
static |
Definition at line 11 of file FastTimeDetId.h.
Referenced by FastTimeDetId(), ieta(), and iz().
|
static |
Definition at line 10 of file FastTimeDetId.h.
Referenced by FastTimeDetId(), ieta(), and iz().
|
static |
Definition at line 17 of file FastTimeDetId.h.
Referenced by FastTimeDetId(), and type().
|
static |
Definition at line 16 of file FastTimeDetId.h.
Referenced by FastTimeDetId(), and type().
|
static |
Definition at line 15 of file FastTimeDetId.h.
Referenced by FastTimeDetId(), and zside().
|
static |
Definition at line 14 of file FastTimeDetId.h.
Referenced by FastTimeDetId(), and zside().
|
static |
Definition at line 54 of file FastTimeDetId.h.