#include <HGCalTriggerDetId.h>
Public Member Functions | |
std::vector< int > | cellU () const |
std::vector< std::pair< int, int > > | cellUV () const |
std::vector< int > | cellV () const |
HGCalTriggerDetId () | |
HGCalTriggerDetId (uint32_t rawid) | |
HGCalTriggerDetId (int subdet, int zp, int type, int layer, int waferU, int waferV, int cellU, int cellV) | |
HGCalTriggerDetId (const DetId &id) | |
bool | isEE () const |
consistency check : no bits left => no overhead More... | |
bool | isForward () const |
bool | isHSilicon () const |
int | layer () const |
get the layer # More... | |
HGCalTriggerDetId & | operator= (const DetId &id) |
HGCalTriggerSubdetector | subdet () const |
get the subdetector More... | |
int | triggerCellU () const |
get the cell #'s in u,v or in x,y More... | |
std::pair< int, int > | triggerCellUV () const |
int | triggerCellV () const |
int | triggerCellX () const |
std::pair< int, int > | triggerCellXY () const |
int | triggerCellY () const |
int | type () const |
get the type More... | |
int | waferU () const |
int | waferUAbs () const |
get the wafer #'s in u,v or in x,y More... | |
std::pair< int, int > | waferUV () const |
int | waferV () const |
int | waferVAbs () const |
int | waferX () const |
std::pair< int, int > | waferXY () const |
int | waferY () const |
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 | HGCalTriggerCell =4 |
static const HGCalTriggerDetId | 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 |
Static Private Attributes | |
static const int | kHGCalCellUMask = 0xF |
static const int | kHGCalCellUOffset = 0 |
static const int | kHGCalCellVMask = 0xF |
static const int | kHGCalCellVOffset = 4 |
static const int | kHGCalLayerMask = 0x1F |
static const int | kHGCalLayerOffset = 18 |
static const int | kHGCalSubdetMask = 0x3 |
static const int | kHGCalSubdetOffset = 25 |
static const int | kHGCalTypeMask = 0x1 |
static const int | kHGCalTypeOffset = 23 |
static const int | kHGCalWaferUMask = 0xF |
static const int | kHGCalWaferUOffset = 8 |
static const int | kHGCalWaferUSignMask = 0x1 |
static const int | kHGCalWaferUSignOffset = 12 |
static const int | kHGCalWaferVMask = 0xF |
static const int | kHGCalWaferVOffset = 13 |
static const int | kHGCalWaferVSignMask = 0x1 |
static const int | kHGCalWaferVSignOffset = 17 |
static const int | kHGCalZsideMask = 0x1 |
static const int | kHGCalZsideOffset = 27 |
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_ |
Definition at line 25 of file HGCalTriggerDetId.h.
HGCalTriggerDetId::HGCalTriggerDetId | ( | ) |
Create a null cellid
Definition at line 8 of file HGCalTriggerDetId.cc.
HGCalTriggerDetId::HGCalTriggerDetId | ( | uint32_t | rawid | ) |
Create cellid from raw id (0=invalid tower id)
Definition at line 11 of file HGCalTriggerDetId.cc.
HGCalTriggerDetId::HGCalTriggerDetId | ( | int | subdet, |
int | zp, | ||
int | type, | ||
int | layer, | ||
int | waferU, | ||
int | waferV, | ||
int | cellU, | ||
int | cellV | ||
) |
Constructor from subdetector, zplus, layer, module, cell numbers
Definition at line 14 of file HGCalTriggerDetId.cc.
References funct::abs(), DetId::id_, kHGCalCellUMask, kHGCalCellUOffset, kHGCalCellVMask, kHGCalCellVOffset, kHGCalLayerMask, kHGCalLayerOffset, kHGCalSubdetMask, kHGCalSubdetOffset, kHGCalTypeMask, kHGCalTypeOffset, kHGCalWaferUMask, kHGCalWaferUOffset, kHGCalWaferUSignMask, kHGCalWaferUSignOffset, kHGCalWaferVMask, kHGCalWaferVOffset, kHGCalWaferVSignMask, kHGCalWaferVSignOffset, kHGCalZsideMask, kHGCalZsideOffset, and zside().
HGCalTriggerDetId::HGCalTriggerDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 34 of file HGCalTriggerDetId.cc.
References TauDecayModes::dec, DetId::det(), Exception, HGCalEETrigger, HGCalHSiTrigger, DetId::HGCalTrigger, DetId::id_, kHGCalSubdetMask, DetId::null(), DetId::rawId(), and DetId::subdetId().
std::vector< int > HGCalTriggerDetId::cellU | ( | ) | const |
Definition at line 82 of file HGCalTriggerDetId.cc.
References HGCSiliconDetId::HGCalCoarseTrigger, HGCSiliconDetId::HGCalFine, HGCSiliconDetId::HGCalFineTrigger, HGCalTriggerCell, mps_fire::i, triggerCellU(), triggerCellV(), and type().
Referenced by cellUV(), triggerCellY(), and waferXY().
std::vector< std::pair< int, int > > HGCalTriggerDetId::cellUV | ( | ) | const |
std::vector< int > HGCalTriggerDetId::cellV | ( | ) | const |
Definition at line 114 of file HGCalTriggerDetId.cc.
References HGCSiliconDetId::HGCalCoarseTrigger, HGCSiliconDetId::HGCalFine, HGCSiliconDetId::HGCalFineTrigger, HGCalTriggerCell, mps_fire::i, triggerCellU(), triggerCellV(), and type().
Referenced by cellUV(), triggerCellX(), triggerCellY(), and waferXY().
|
inline |
consistency check : no bits left => no overhead
Definition at line 82 of file HGCalTriggerDetId.h.
References HGCalEETrigger, and subdet().
|
inline |
Definition at line 84 of file HGCalTriggerDetId.h.
|
inline |
Definition at line 83 of file HGCalTriggerDetId.h.
References HGCalHSiTrigger, and subdet().
|
inline |
get the layer #
Definition at line 54 of file HGCalTriggerDetId.h.
References DetId::id_, kHGCalLayerMask, and kHGCalLayerOffset.
Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().
HGCalTriggerDetId & HGCalTriggerDetId::operator= | ( | const DetId & | id | ) |
Assignment from a generic cell id
Definition at line 45 of file HGCalTriggerDetId.cc.
References TauDecayModes::dec, DetId::det(), Exception, HGCalEETrigger, HGCalHSiTrigger, DetId::HGCalTrigger, DetId::id_, kHGCalSubdetMask, DetId::null(), DetId::rawId(), and DetId::subdetId().
|
inline |
get the subdetector
Definition at line 44 of file HGCalTriggerDetId.h.
References DetId::id_, kHGCalSubdetMask, and kHGCalSubdetOffset.
Referenced by isEE(), and isHSilicon().
|
inline |
get the cell #'s in u,v or in x,y
Definition at line 57 of file HGCalTriggerDetId.h.
References DetId::id_, kHGCalCellUMask, and kHGCalCellUOffset.
Referenced by cellU(), cellV(), and triggerCellUV().
|
inline |
Definition at line 59 of file HGCalTriggerDetId.h.
References triggerCellU(), triggerCellV(), triggerCellX(), and triggerCellY().
|
inline |
Definition at line 58 of file HGCalTriggerDetId.h.
References DetId::id_, kHGCalCellVMask, and kHGCalCellVOffset.
Referenced by cellU(), cellV(), and triggerCellUV().
int HGCalTriggerDetId::triggerCellX | ( | ) | const |
Definition at line 57 of file HGCalTriggerDetId.cc.
References cellV(), HGCSiliconDetId::HGCalCoarseTrigger, HGCSiliconDetId::HGCalFine, HGCSiliconDetId::HGCalFineTrigger, HGCalTriggerCell, N, type(), findQualityFiles::v, and x.
Referenced by triggerCellUV(), and triggerCellXY().
|
inline |
int HGCalTriggerDetId::triggerCellY | ( | ) | const |
Definition at line 69 of file HGCalTriggerDetId.cc.
References cellU(), cellV(), HGCSiliconDetId::HGCalCoarseTrigger, HGCSiliconDetId::HGCalFine, HGCSiliconDetId::HGCalFineTrigger, HGCalTriggerCell, gen::k, N, type(), and y.
Referenced by triggerCellUV(), and triggerCellXY().
|
inline |
get the type
Definition at line 48 of file HGCalTriggerDetId.h.
References DetId::id_, kHGCalTypeMask, and kHGCalTypeOffset.
Referenced by cellU(), cellV(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputCommands(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputCommands(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), triggerCellX(), and triggerCellY().
|
inline |
Definition at line 69 of file HGCalTriggerDetId.h.
References DetId::id_, kHGCalWaferUSignMask, kHGCalWaferUSignOffset, and waferUAbs().
Referenced by waferUV(), and waferX().
|
inline |
get the wafer #'s in u,v or in x,y
Definition at line 67 of file HGCalTriggerDetId.h.
References DetId::id_, kHGCalWaferUMask, and kHGCalWaferUOffset.
Referenced by waferU().
|
inline |
|
inline |
Definition at line 70 of file HGCalTriggerDetId.h.
References DetId::id_, kHGCalWaferVSignMask, kHGCalWaferVSignOffset, and waferVAbs().
Referenced by waferUV(), waferX(), and waferY().
|
inline |
Definition at line 68 of file HGCalTriggerDetId.h.
References DetId::id_, kHGCalWaferVMask, and kHGCalWaferVOffset.
Referenced by waferV().
|
inline |
Definition at line 72 of file HGCalTriggerDetId.h.
References waferU(), and waferV().
Referenced by waferXY().
|
inline |
|
inline |
|
inline |
get the z-side of the cell (1/-1)
Definition at line 51 of file HGCalTriggerDetId.h.
References DetId::id_, kHGCalZsideMask, and kHGCalZsideOffset.
Referenced by HGCalTriggerDetId().
|
static |
Definition at line 29 of file HGCalTriggerDetId.h.
Referenced by cellU(), cellV(), triggerCellX(), and triggerCellY().
|
staticprivate |
Definition at line 91 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and triggerCellU().
|
staticprivate |
Definition at line 90 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and triggerCellU().
|
staticprivate |
Definition at line 93 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and triggerCellV().
|
staticprivate |
Definition at line 92 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and triggerCellV().
|
staticprivate |
Definition at line 103 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and layer().
|
staticprivate |
Definition at line 102 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and layer().
|
staticprivate |
Definition at line 109 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), operator=(), and subdet().
|
staticprivate |
Definition at line 108 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and subdet().
|
staticprivate |
Definition at line 105 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and type().
|
staticprivate |
Definition at line 104 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and type().
|
staticprivate |
Definition at line 95 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and waferUAbs().
|
staticprivate |
Definition at line 94 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and waferUAbs().
|
staticprivate |
Definition at line 97 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and waferU().
|
staticprivate |
Definition at line 96 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and waferU().
|
staticprivate |
Definition at line 99 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and waferVAbs().
|
staticprivate |
Definition at line 98 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and waferVAbs().
|
staticprivate |
Definition at line 101 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and waferV().
|
staticprivate |
Definition at line 100 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and waferV().
|
staticprivate |
Definition at line 107 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and zside().
|
staticprivate |
Definition at line 106 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and zside().
|
static |
Definition at line 86 of file HGCalTriggerDetId.h.