#include <TkDetMap.h>
Classes | |
struct | XYbin |
Public Types | |
enum | TkLayerEnum { INVALID =0, TIB_L1, TIB_L2, TIB_L3, TIB_L4, TIDM_D1, TIDM_D2, TIDM_D3, TIDP_D1, TIDP_D2, TIDP_D3, TOB_L1, TOB_L2, TOB_L3, TOB_L4, TOB_L5, TOB_L6, TECM_W1, TECM_W2, TECM_W3, TECM_W4, TECM_W5, TECM_W6, TECM_W7, TECM_W8, TECM_W9, TECP_W1, TECP_W2, TECP_W3, TECP_W4, TECP_W5, TECP_W6, TECP_W7, TECP_W8, TECP_W9, NUMLAYERS } |
Public Member Functions | |
double | get_highX () const |
double | get_highY () const |
double | get_lowX () const |
double | get_lowY () const |
std::size_t | get_nchX () const |
std::size_t | get_nchY () const |
const std::vector< DetId > & | getBinToDet () const |
DetId | getDetFromBin (int ix, int iy) const |
const XYbin | getXY (DetId detid, int layerEnumNb=TkLayerMap::INVALID) const |
void | initMap (const std::vector< uint32_t > &tkDetIdList) |
TkLayerMap () | |
TkLayerMap (int layer, std::size_t nchX, double lowX, double highX, std::size_t nchY, double lowY, double highY, const TrackerTopology *tTopo, const std::vector< uint32_t > &tkDetIdList, const std::vector< uint32_t > &singleExtString={}, const std::vector< uint32_t > &modulesInRingFront={}, const std::vector< uint32_t > &modulesInRingBack={}, const std::vector< uint32_t > &binForRing={}, uint32_t nstring_ext=0, uint32_t nrod=0) | |
TkLayerMap (int layer, std::size_t nchX, double lowX, double highX, std::size_t nchY, double lowY, double highY, const TrackerTopology *tTopo, const std::vector< uint32_t > &tkDetIdList, std::vector< uint32_t > &&singleExtString={}, std::vector< uint32_t > &&modulesInRingFront={}, std::vector< uint32_t > &&modulesInRingBack={}, std::vector< uint32_t > &&binForRing={}, uint32_t nstring_ext=0, uint32_t nrod=0) | |
Static Public Member Functions | |
static const int16_t | layerSearch (DetId detid, const TrackerTopology *tTopo) |
Private Member Functions | |
std::size_t | bin (std::size_t ix, std::size_t iy) const |
XYbin | getXY_TEC (DetId detid) const |
XYbin | getXY_TIB (DetId detid) const |
XYbin | getXY_TID (DetId detid) const |
XYbin | getXY_TOB (DetId detid) const |
void | initMap_TEC (const std::vector< uint32_t > &tkDetIdList) |
void | initMap_TIB (const std::vector< uint32_t > &tkDetIdList) |
void | initMap_TID (const std::vector< uint32_t > &tkDetIdList) |
void | initMap_TOB (const std::vector< uint32_t > &tkDetIdList) |
Private Attributes | |
std::vector< uint32_t > | binForRing_ |
std::vector< DetId > | binToDet_ |
double | highX_ |
double | highY_ |
int | layer_ |
double | lowX_ |
double | lowY_ |
std::vector< uint32_t > | modulesInRingBack_ |
std::vector< uint32_t > | modulesInRingFront_ |
std::size_t | nchX_ |
std::size_t | nchY_ |
uint32_t | nRod_ |
uint32_t | nStringExt_ |
std::vector< uint32_t > | singleExtStr_ |
const TrackerTopology * | tTopo_ |
Definition at line 10 of file TkDetMap.h.
Definition at line 20 of file TkDetMap.h.
|
inline |
Definition at line 29 of file TkDetMap.h.
|
inline |
Definition at line 31 of file TkDetMap.h.
References binForRing_, binToDet_, highX_, highY_, initMap(), layer_, lowX_, lowY_, modulesInRingBack_, modulesInRingFront_, nchX_, nchY_, nRod_, nStringExt_, singleExtStr_, and tTopo_.
|
inline |
Definition at line 54 of file TkDetMap.h.
References binForRing_, binToDet_, highX_, highY_, initMap(), initMap_TEC(), initMap_TIB(), initMap_TID(), initMap_TOB(), layer_, lowX_, lowY_, modulesInRingBack_, modulesInRingFront_, nchX_, nchY_, nRod_, nStringExt_, singleExtStr_, and tTopo_.
|
inlineprivate |
Definition at line 84 of file TkDetMap.h.
References layerSearch(), and nchX_.
Referenced by getDetFromBin(), initMap_TEC(), initMap_TIB(), initMap_TID(), and initMap_TOB().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 97 of file TkDetMap.h.
References bin(), binToDet_, getXY(), getXY_TEC(), getXY_TIB(), getXY_TID(), getXY_TOB(), training_settings::idx, INVALID, nchX_, and nchY_.
Referenced by TkDetMap::getDetFromBin().
const TkLayerMap::XYbin TkLayerMap::getXY | ( | DetId | detid, |
int | layerEnumNb = TkLayerMap::INVALID |
||
) | const |
Definition at line 139 of file TkDetMap.cc.
References Exception, getXY_TEC(), getXY_TIB(), getXY_TID(), getXY_TOB(), layer_, layerSearch(), LogTrace, DetId::rawId(), TIB_L1, TIB_L4, TIDM_D1, TIDP_D3, TOB_L1, TOB_L6, and tTopo_.
Referenced by getDetFromBin(), and TkDetMap::getDetsForLayer().
|
private |
Definition at line 212 of file TkDetMap.cc.
References binForRing_, TkLayerMap::XYbin::ix, TkLayerMap::XYbin::iy, lowX_, lowY_, modulesInRingBack_, modulesInRingFront_, TrackerTopology::tecIsBackPetal(), TrackerTopology::tecIsStereo(), TrackerTopology::tecIsZMinusSide(), TrackerTopology::tecModule(), TrackerTopology::tecPetalNumber(), TrackerTopology::tecRing(), tTopo_, TkLayerMap::XYbin::x, and TkLayerMap::XYbin::y.
Referenced by getDetFromBin(), getXY(), and initMap_TEC().
|
private |
Definition at line 159 of file TkDetMap.cc.
References TkLayerMap::XYbin::ix, TkLayerMap::XYbin::iy, lowX_, lowY_, nStringExt_, singleExtStr_, TrackerTopology::tibIsInternalString(), TrackerTopology::tibIsStereo(), TrackerTopology::tibIsZMinusSide(), TrackerTopology::tibLayer(), TrackerTopology::tibModule(), TrackerTopology::tibString(), tTopo_, TkLayerMap::XYbin::x, and TkLayerMap::XYbin::y.
Referenced by getDetFromBin(), getXY(), and initMap_TIB().
|
private |
Definition at line 196 of file TkDetMap.cc.
References TkLayerMap::XYbin::ix, TkLayerMap::XYbin::iy, lowX_, lowY_, TrackerTopology::tidIsBackRing(), TrackerTopology::tidIsStereo(), TrackerTopology::tidIsZMinusSide(), TrackerTopology::tidModule(), TrackerTopology::tidRing(), tTopo_, TkLayerMap::XYbin::x, and TkLayerMap::XYbin::y.
Referenced by getDetFromBin(), getXY(), and initMap_TID().
|
private |
Definition at line 180 of file TkDetMap.cc.
References TkLayerMap::XYbin::ix, TkLayerMap::XYbin::iy, lowX_, lowY_, nRod_, TrackerTopology::tobIsStereo(), TrackerTopology::tobIsZMinusSide(), TrackerTopology::tobLayer(), TrackerTopology::tobModule(), TrackerTopology::tobRod(), tTopo_, TkLayerMap::XYbin::x, and TkLayerMap::XYbin::y.
Referenced by getDetFromBin(), getXY(), and initMap_TOB().
void TkLayerMap::initMap | ( | const std::vector< uint32_t > & | tkDetIdList | ) |
Definition at line 9 of file TkDetMap.cc.
References initMap_TEC(), initMap_TIB(), initMap_TID(), initMap_TOB(), layer_, TECM_W1, TECM_W2, TECM_W3, TECM_W4, TECM_W5, TECM_W6, TECM_W7, TECM_W8, TECM_W9, TECP_W1, TECP_W2, TECP_W3, TECP_W4, TECP_W5, TECP_W6, TECP_W7, TECP_W8, TECP_W9, TIB_L1, TIB_L2, TIB_L3, TIB_L4, TIDM_D1, TIDM_D2, TIDM_D3, TIDP_D1, TIDP_D2, TIDP_D3, TOB_L1, TOB_L2, TOB_L3, TOB_L4, TOB_L5, and TOB_L6.
Referenced by TkLayerMap().
|
private |
Definition at line 107 of file TkDetMap.cc.
References bin(), binToDet_, SiStripSubStructure::getTECDetectors(), getXY_TEC(), highY_, layer_, LogTrace, lowY_, nStringExt_, TECM_W1, and tTopo_.
Referenced by initMap(), and TkLayerMap().
|
private |
Definition at line 59 of file TkDetMap.cc.
References bin(), binToDet_, SiStripSubStructure::getTIBDetectors(), getXY_TIB(), highY_, layer_, LogTrace, lowY_, nStringExt_, and tTopo_.
Referenced by initMap(), and TkLayerMap().
|
private |
Definition at line 91 of file TkDetMap.cc.
References bin(), binToDet_, SiStripSubStructure::getTIDDetectors(), getXY_TID(), highY_, layer_, LogTrace, lowY_, nStringExt_, TIDM_D1, and tTopo_.
Referenced by initMap(), and TkLayerMap().
|
private |
Definition at line 75 of file TkDetMap.cc.
References bin(), binToDet_, SiStripSubStructure::getTOBDetectors(), getXY_TOB(), highY_, layer_, LogTrace, lowY_, nStringExt_, and tTopo_.
Referenced by initMap(), and TkLayerMap().
|
static |
Definition at line 123 of file TkDetMap.cc.
References DetId::subdetId(), SiStripDetId::TEC, TECM_W1, TrackerTopology::tecSide(), TrackerTopology::tecWheel(), SiStripDetId::TIB, TIB_L1, TrackerTopology::tibLayer(), SiStripDetId::TID, TIDM_D1, TrackerTopology::tidSide(), TrackerTopology::tidWheel(), SiStripDetId::TOB, TOB_L1, and TrackerTopology::tobLayer().
Referenced by bin(), TkDetMap::findLayer(), and getXY().
|
private |
Definition at line 118 of file TkDetMap.h.
Referenced by getXY_TEC(), and TkLayerMap().
|
private |
Definition at line 121 of file TkDetMap.h.
Referenced by getBinToDet(), getDetFromBin(), initMap_TEC(), initMap_TIB(), initMap_TID(), initMap_TOB(), and TkLayerMap().
|
private |
Definition at line 112 of file TkDetMap.h.
Referenced by get_highX(), and TkLayerMap().
|
private |
Definition at line 114 of file TkDetMap.h.
Referenced by get_highY(), initMap_TEC(), initMap_TIB(), initMap_TID(), initMap_TOB(), and TkLayerMap().
|
private |
Definition at line 110 of file TkDetMap.h.
Referenced by getXY(), initMap(), initMap_TEC(), initMap_TIB(), initMap_TID(), initMap_TOB(), and TkLayerMap().
|
private |
Definition at line 112 of file TkDetMap.h.
Referenced by get_lowX(), getXY_TEC(), getXY_TIB(), getXY_TID(), getXY_TOB(), and TkLayerMap().
|
private |
Definition at line 114 of file TkDetMap.h.
Referenced by get_lowY(), getXY_TEC(), getXY_TIB(), getXY_TID(), getXY_TOB(), initMap_TEC(), initMap_TIB(), initMap_TID(), initMap_TOB(), and TkLayerMap().
|
private |
Definition at line 118 of file TkDetMap.h.
Referenced by getXY_TEC(), and TkLayerMap().
|
private |
Definition at line 118 of file TkDetMap.h.
Referenced by getXY_TEC(), and TkLayerMap().
|
private |
Definition at line 111 of file TkDetMap.h.
Referenced by bin(), get_nchX(), getDetFromBin(), and TkLayerMap().
|
private |
Definition at line 113 of file TkDetMap.h.
Referenced by get_nchY(), getDetFromBin(), and TkLayerMap().
|
private |
Definition at line 119 of file TkDetMap.h.
Referenced by getXY_TOB(), and TkLayerMap().
|
private |
Definition at line 119 of file TkDetMap.h.
Referenced by getXY_TIB(), initMap_TEC(), initMap_TIB(), initMap_TID(), initMap_TOB(), and TkLayerMap().
|
private |
Definition at line 117 of file TkDetMap.h.
Referenced by getXY_TIB(), and TkLayerMap().
|
private |
Definition at line 115 of file TkDetMap.h.
Referenced by TkDetMap::findLayer(), getXY(), getXY_TEC(), getXY_TIB(), getXY_TID(), getXY_TOB(), initMap_TEC(), initMap_TIB(), initMap_TID(), initMap_TOB(), and TkLayerMap().