#include <HGCalTriggerDetId.h>
Public Member Functions | |
std::vector< int > | cellU () const |
std::vector< std::pair< int, int > > | cellUV () const |
std::vector< int > | cellV () const |
HGCSiliconDetId | geometryCell () 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... | |
HGCSiliconDetId | moduleId () const |
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 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 = 0x3 |
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 |
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 |
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 26 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 10 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 12 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 28 of file HGCalTriggerDetId.cc.
References TauDecayModes::dec, DetId::det(), Exception, DetId::HGCalTrigger, DetId::id_, DetId::null(), and DetId::rawId().
std::vector< int > HGCalTriggerDetId::cellU | ( | ) | const |
Definition at line 74 of file HGCalTriggerDetId.cc.
References HGCSiliconDetId::HGCalCoarseTrigger, HGCSiliconDetId::HGCalFine, HGCSiliconDetId::HGCalFineTrigger, HGCalTriggerCell, mps_fire::i, dqmiolumiharvest::j, triggerCellU(), triggerCellV(), and type().
Referenced by cellUV(), FWL1THGCalProxyTemplate< l1t::HGCalMulticluster >::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp3::getCellsFromTriggerCell(), and triggerCellY().
std::vector< std::pair< int, int > > HGCalTriggerDetId::cellUV | ( | ) | const |
Definition at line 134 of file HGCalTriggerDetId.cc.
References cellU(), cellV(), and isotrackApplyRegressor::k.
std::vector< int > HGCalTriggerDetId::cellV | ( | ) | const |
Definition at line 104 of file HGCalTriggerDetId.cc.
References HGCSiliconDetId::HGCalCoarseTrigger, HGCSiliconDetId::HGCalFine, HGCSiliconDetId::HGCalFineTrigger, HGCalTriggerCell, mps_fire::i, dqmiolumiharvest::j, triggerCellU(), triggerCellV(), and type().
Referenced by cellUV(), FWL1THGCalProxyTemplate< l1t::HGCalMulticluster >::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp3::getCellsFromTriggerCell(), triggerCellX(), and triggerCellY().
|
inline |
Converter for a geometry cell id
Definition at line 56 of file HGCalTriggerDetId.h.
References DetId::det(), layer(), waferU(), waferV(), and zside().
|
inline |
consistency check : no bits left => no overhead
Definition at line 85 of file HGCalTriggerDetId.h.
References HGCalEETrigger, and subdet().
|
inline |
Definition at line 87 of file HGCalTriggerDetId.h.
|
inline |
Definition at line 86 of file HGCalTriggerDetId.h.
References HGCalHSiTrigger, and subdet().
|
inline |
get the layer #
Definition at line 53 of file HGCalTriggerDetId.h.
References DetId::id_, kHGCalLayerMask, and kHGCalLayerOffset.
Referenced by geometryCell(), FWL1THGCalProxyTemplate< l1t::HGCalMulticluster >::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp3::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getModuleFromTriggerCell(), HGCalTriggerGeometryV9Imp3::getModuleFromTriggerCell(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), HGCalTriggerTools::layer(), HGCalTriggerGeometryV9Imp2::layerWithOffset(), HGCalTriggerGeometryV9Imp3::layerWithOffset(), and moduleId().
|
inline |
Definition at line 57 of file HGCalTriggerDetId.h.
References DetId::det(), layer(), type(), waferU(), waferV(), and zside().
HGCalTriggerDetId & HGCalTriggerDetId::operator= | ( | const DetId & | id | ) |
Assignment from a generic cell id
Definition at line 38 of file HGCalTriggerDetId.cc.
References TauDecayModes::dec, DetId::det(), Exception, DetId::HGCalTrigger, DetId::id_, DetId::null(), and DetId::rawId().
|
inline |
get the subdetector
Definition at line 42 of file HGCalTriggerDetId.h.
References DetId::id_, kHGCalSubdetMask, and kHGCalSubdetOffset.
Referenced by HGCalTriggerNtupleHGCConcentratorData::fill(), HGCalTriggerNtupleHGCTriggerCells::fill(), FWL1THGCalProxyTemplate< l1t::HGCalMulticluster >::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp3::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getModuleFromTriggerCell(), HGCalTriggerGeometryV9Imp3::getModuleFromTriggerCell(), l1t::HGCalClusterT< l1t::HGCalCluster >::hOverE(), isEE(), isHSilicon(), HGCalTriggerTools::isSilicon(), HGCalTriggerGeometryV9Imp2::layerWithOffset(), and HGCalTriggerGeometryV9Imp3::layerWithOffset().
|
inline |
get the cell #'s in u,v or in x,y
Definition at line 62 of file HGCalTriggerDetId.h.
References DetId::id_, kHGCalCellUMask, and kHGCalCellUOffset.
Referenced by cellU(), cellV(), HGCalTriggerNtupleHGCTriggerCells::fill(), HGCalCoarseTriggerCellMapping::getCoarseTriggerCellId(), and triggerCellUV().
|
inline |
Definition at line 64 of file HGCalTriggerDetId.h.
References triggerCellU(), and triggerCellV().
|
inline |
Definition at line 63 of file HGCalTriggerDetId.h.
References DetId::id_, kHGCalCellVMask, and kHGCalCellVOffset.
Referenced by cellU(), cellV(), HGCalTriggerNtupleHGCTriggerCells::fill(), HGCalCoarseTriggerCellMapping::getCoarseTriggerCellId(), and triggerCellUV().
int HGCalTriggerDetId::triggerCellX | ( | ) | const |
Definition at line 49 of file HGCalTriggerDetId.cc.
References cellV(), HGCSiliconDetId::HGCalCoarseTrigger, HGCSiliconDetId::HGCalFine, HGCSiliconDetId::HGCalFineTrigger, HGCalTriggerCell, N, type(), findQualityFiles::v, and x.
Referenced by triggerCellXY().
|
inline |
int HGCalTriggerDetId::triggerCellY | ( | ) | const |
Definition at line 61 of file HGCalTriggerDetId.cc.
References cellU(), cellV(), HGCSiliconDetId::HGCalCoarseTrigger, HGCSiliconDetId::HGCalFine, HGCSiliconDetId::HGCalFineTrigger, HGCalTriggerCell, isotrackApplyRegressor::k, N, type(), and y.
Referenced by triggerCellXY().
|
inline |
get the type
Definition at line 47 of file HGCalTriggerDetId.h.
References DetId::id_, kHGCalTypeMask, and kHGCalTypeOffset.
Referenced by cellU(), cellV(), HGCalTriggerNtupleHGCConcentratorData::fill(), HGCalTriggerNtupleHGCTriggerCells::fill(), FWL1THGCalProxyTemplate< l1t::HGCalMulticluster >::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp3::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp3::getModuleFromTriggerCell(), moduleId(), HGCalTriggerTools::thicknessIndex(), triggerCellX(), and triggerCellY().
|
inline |
Definition at line 72 of file HGCalTriggerDetId.h.
References DetId::id_, kHGCalWaferUSignMask, kHGCalWaferUSignOffset, and waferUAbs().
Referenced by HGCalTriggerNtupleHGCConcentratorData::fill(), HGCalTriggerNtupleHGCTriggerCells::fill(), geometryCell(), FWL1THGCalProxyTemplate< l1t::HGCalMulticluster >::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp3::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getModuleFromTriggerCell(), HGCalTriggerGeometryV9Imp3::getModuleFromTriggerCell(), moduleId(), waferUV(), and waferX().
|
inline |
get the wafer #'s in u,v or in x,y
Definition at line 70 of file HGCalTriggerDetId.h.
References DetId::id_, kHGCalWaferUMask, and kHGCalWaferUOffset.
Referenced by waferU().
|
inline |
|
inline |
Definition at line 73 of file HGCalTriggerDetId.h.
References DetId::id_, kHGCalWaferVSignMask, kHGCalWaferVSignOffset, and waferVAbs().
Referenced by HGCalTriggerNtupleHGCConcentratorData::fill(), HGCalTriggerNtupleHGCTriggerCells::fill(), geometryCell(), FWL1THGCalProxyTemplate< l1t::HGCalMulticluster >::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp3::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getModuleFromTriggerCell(), HGCalTriggerGeometryV9Imp3::getModuleFromTriggerCell(), moduleId(), waferUV(), waferX(), and waferY().
|
inline |
Definition at line 71 of file HGCalTriggerDetId.h.
References DetId::id_, kHGCalWaferVMask, and kHGCalWaferVOffset.
Referenced by waferV().
|
inline |
Definition at line 75 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 50 of file HGCalTriggerDetId.h.
References DetId::id_, kHGCalZsideMask, and kHGCalZsideOffset.
Referenced by geometryCell(), FWL1THGCalProxyTemplate< l1t::HGCalMulticluster >::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp3::getCellsFromTriggerCell(), HGCalTriggerGeometryV9Imp2::getModuleFromTriggerCell(), HGCalTriggerGeometryV9Imp3::getModuleFromTriggerCell(), HGCalTriggerDetId(), moduleId(), and HGCalTriggerTools::zside().
|
static |
Definition at line 28 of file HGCalTriggerDetId.h.
Referenced by cellU(), cellV(), triggerCellX(), and triggerCellY().
|
static |
Definition at line 92 of file HGCalTriggerDetId.h.
Referenced by HGCalCoarseTriggerCellMapping::getConstituentTriggerCells(), HGCalTriggerDetId(), and triggerCellU().
|
static |
Definition at line 91 of file HGCalTriggerDetId.h.
Referenced by HGCalCoarseTriggerCellMapping::getConstituentTriggerCells(), HGCalTriggerDetId(), and triggerCellU().
|
static |
Definition at line 94 of file HGCalTriggerDetId.h.
Referenced by HGCalCoarseTriggerCellMapping::getConstituentTriggerCells(), HGCalTriggerDetId(), and triggerCellV().
|
static |
Definition at line 93 of file HGCalTriggerDetId.h.
Referenced by HGCalCoarseTriggerCellMapping::getConstituentTriggerCells(), HGCalTriggerDetId(), and triggerCellV().
|
static |
Definition at line 104 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and layer().
|
static |
Definition at line 103 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and layer().
|
static |
Definition at line 110 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and subdet().
|
static |
Definition at line 109 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and subdet().
|
static |
Definition at line 106 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and type().
|
static |
Definition at line 105 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and type().
|
static |
Definition at line 96 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and waferUAbs().
|
static |
Definition at line 95 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and waferUAbs().
|
static |
Definition at line 98 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and waferU().
|
static |
Definition at line 97 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and waferU().
|
static |
Definition at line 100 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and waferVAbs().
|
static |
Definition at line 99 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and waferVAbs().
|
static |
Definition at line 102 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and waferV().
|
static |
Definition at line 101 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and waferV().
|
static |
Definition at line 108 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and zside().
|
static |
Definition at line 107 of file HGCalTriggerDetId.h.
Referenced by HGCalTriggerDetId(), and zside().
|
static |
Definition at line 89 of file HGCalTriggerDetId.h.