|
![CMS Logo](/cmsdoxygen/common/rightImage.jpg) |
#include <TkDetMap.h>
|
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
} |
|
|
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) |
|
Definition at line 10 of file TkDetMap.h.
◆ TkLayerEnum
Enumerator |
---|
INVALID | |
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 | |
Definition at line 19 of file TkDetMap.h.
◆ TkLayerMap() [1/3]
TkLayerMap::TkLayerMap |
( |
| ) |
|
|
inline |
◆ TkLayerMap() [2/3]
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 |
|
) |
| |
|
inline |
Definition at line 60 of file TkDetMap.h.
70 const std::vector<uint32_t>& modulesInRingFront = {},
71 const std::vector<uint32_t>& modulesInRingBack = {},
72 const std::vector<uint32_t>& binForRing = {},
73 uint32_t nstring_ext = 0,
89 binToDet_(std::vector<DetId>(std::size_t(nchX * nchY), 0)) {
◆ TkLayerMap() [3/3]
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, |
|
|
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 |
|
) |
| |
|
inline |
Definition at line 93 of file TkDetMap.h.
103 std::vector<uint32_t>&& modulesInRingFront = {},
104 std::vector<uint32_t>&& modulesInRingBack = {},
105 std::vector<uint32_t>&& binForRing = {},
106 uint32_t nstring_ext = 0,
122 binToDet_(std::vector<DetId>(std::size_t(nchX * nchY), 0)) {
◆ bin()
std::size_t TkLayerMap::bin |
( |
std::size_t |
ix, |
|
|
std::size_t |
iy |
|
) |
| const |
|
inlineprivate |
◆ get_highX()
double TkLayerMap::get_highX |
( |
| ) |
const |
|
inline |
◆ get_highY()
double TkLayerMap::get_highY |
( |
| ) |
const |
|
inline |
◆ get_lowX()
double TkLayerMap::get_lowX |
( |
| ) |
const |
|
inline |
◆ get_lowY()
double TkLayerMap::get_lowY |
( |
| ) |
const |
|
inline |
◆ get_nchX()
std::size_t TkLayerMap::get_nchX |
( |
| ) |
const |
|
inline |
◆ get_nchY()
std::size_t TkLayerMap::get_nchY |
( |
| ) |
const |
|
inline |
◆ getBinToDet()
const std::vector<DetId>& TkLayerMap::getBinToDet |
( |
| ) |
const |
|
inline |
◆ getDetFromBin()
DetId TkLayerMap::getDetFromBin |
( |
int |
ix, |
|
|
int |
iy |
|
) |
| const |
|
inline |
◆ getXY()
Definition at line 156 of file TkDetMap.cc.
157 LogTrace(
"TkLayerMap") <<
"[TkLayerMap::getXY] " << detid.
rawId() <<
" layer " << layerEnumNb;
162 if (layerEnumNb !=
layer_)
164 <<
"[TkLayerMap::getXY] Fill of DetId " << detid.
rawId() <<
" layerEnumNb " << layerEnumNb
165 <<
" are requested to wrong TkLayerMap " <<
layer_ <<
" \nPlease check the TkDetMap code";
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_.
◆ getXY_TEC()
Definition at line 215 of file TkDetMap.cc.
229 xyb.x =
lowX_ + xyb.ix - 0.5;
230 xyb.y =
lowY_ + xyb.iy - 0.5;
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 getXY(), and initMap_TEC().
◆ getXY_TIB()
Definition at line 177 of file TkDetMap.cc.
186 xyb.x =
lowX_ + xyb.ix - 0.5;
187 xyb.y =
lowY_ + xyb.iy - 0.5;
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 getXY(), and initMap_TIB().
◆ getXY_TID()
Definition at line 203 of file TkDetMap.cc.
209 xyb.x =
lowX_ + xyb.ix - 0.5;
210 xyb.y =
lowY_ + xyb.iy - 0.5;
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 getXY(), and initMap_TID().
◆ getXY_TOB()
Definition at line 192 of file TkDetMap.cc.
197 xyb.x =
lowX_ + xyb.ix - 0.5;
198 xyb.y =
lowY_ + xyb.iy - 0.5;
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 getXY(), and initMap_TOB().
◆ initMap()
void TkLayerMap::initMap |
( |
const std::vector< uint32_t > & |
tkDetIdList | ) |
|
Definition at line 9 of file TkDetMap.cc.
54 edm::LogError(
"TkLayerMap") <<
" TkLayerMap::requested creation of a wrong layer Nb " <<
layer_;
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.
◆ initMap_TEC()
void TkLayerMap::initMap_TEC |
( |
const std::vector< uint32_t > & |
tkDetIdList | ) |
|
|
private |
Definition at line 117 of file TkDetMap.cc.
119 std::vector<uint32_t> LayerDetIdList;
132 for (uint32_t det : LayerDetIdList) {
136 LogTrace(
"TkLayerMap") <<
"[TkLayerMap::createTEC] " << det <<
" " << xyb.ix <<
" " << xyb.iy <<
" " << xyb.x <<
" "
References bin(), binToDet_, SiStripSubStructure::getTECDetectors(), getXY_TEC(), highY_, layer_, LogTrace, lowY_, nStringExt_, TECM_W1, and tTopo_.
Referenced by initMap().
◆ initMap_TIB()
void TkLayerMap::initMap_TIB |
( |
const std::vector< uint32_t > & |
tkDetIdList | ) |
|
|
private |
◆ initMap_TID()
void TkLayerMap::initMap_TID |
( |
const std::vector< uint32_t > & |
tkDetIdList | ) |
|
|
private |
Definition at line 93 of file TkDetMap.cc.
95 std::vector<uint32_t> LayerDetIdList;
108 for (uint32_t det : LayerDetIdList) {
112 LogTrace(
"TkLayerMap") <<
"[TkLayerMap::createTID] " << det <<
" " << xyb.ix <<
" " << xyb.iy <<
" " << xyb.x <<
" "
References bin(), binToDet_, SiStripSubStructure::getTIDDetectors(), getXY_TID(), highY_, layer_, LogTrace, lowY_, nStringExt_, TIDM_D1, and tTopo_.
Referenced by initMap().
◆ initMap_TOB()
void TkLayerMap::initMap_TOB |
( |
const std::vector< uint32_t > & |
tkDetIdList | ) |
|
|
private |
◆ layerSearch()
Definition at line 141 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 TkDetMap::findLayer(), and getXY().
◆ binForRing_
std::vector<uint32_t> TkLayerMap::binForRing_ |
|
private |
◆ binToDet_
std::vector<DetId> TkLayerMap::binToDet_ |
|
private |
◆ highX_
double TkLayerMap::highX_ |
|
private |
◆ highY_
double TkLayerMap::highY_ |
|
private |
◆ layer_
◆ lowX_
◆ lowY_
◆ modulesInRingBack_
std::vector<uint32_t> TkLayerMap::modulesInRingBack_ |
|
private |
◆ modulesInRingFront_
std::vector<uint32_t> TkLayerMap::modulesInRingFront_ |
|
private |
◆ nchX_
std::size_t TkLayerMap::nchX_ |
|
private |
◆ nchY_
std::size_t TkLayerMap::nchY_ |
|
private |
◆ nRod_
uint32_t TkLayerMap::nRod_ |
|
private |
◆ nStringExt_
uint32_t TkLayerMap::nStringExt_ |
|
private |
◆ singleExtStr_
std::vector<uint32_t> TkLayerMap::singleExtStr_ |
|
private |
◆ tTopo_
bool tidIsZMinusSide(const DetId &id) const
bool tibIsInternalString(const DetId &id) const
void getTIDDetectors(const std::vector< uint32_t > &inputDetRawIds, std::vector< uint32_t > &tidDetRawIds, const TrackerTopology *trackerTopology, uint32_t side=0, uint32_t wheel=0, uint32_t ring=0, uint32_t ster=0)
std::vector< uint32_t > modulesInRingFront_
std::vector< uint32_t > modulesInRingBack_
void getTIBDetectors(const std::vector< uint32_t > &inputDetRawIds, std::vector< uint32_t > &tibDetRawIds, const TrackerTopology *trackerTopology, uint32_t layer=0, uint32_t bkw_frw=0, uint32_t int_ext=0, uint32_t string=0)
bool tobIsStereo(const DetId &id) const
bool tecIsZMinusSide(const DetId &id) const
bool tecIsStereo(const DetId &id) const
unsigned int tidModule(const DetId &id) const
XYbin getXY_TEC(DetId detid) const
std::vector< DetId > binToDet_
void initMap_TID(const std::vector< uint32_t > &tkDetIdList)
unsigned int tidRing(const DetId &id) const
unsigned int tobRod(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
bool tidIsStereo(const DetId &id) const
XYbin getXY_TOB(DetId detid) const
void getTECDetectors(const std::vector< uint32_t > &inputDetRawIds, std::vector< uint32_t > &tecDetRawIds, const TrackerTopology *trackerTopology, uint32_t side=0, uint32_t wheel=0, uint32_t petal_bkw_frw=0, uint32_t petal=0, uint32_t ring=0, uint32_t ster=0)
XYbin getXY_TIB(DetId detid) const
bool tibIsStereo(const DetId &id) const
static constexpr auto TEC
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
std::vector< uint32_t > binForRing_
unsigned int tibString(const DetId &id) const
static const int16_t layerSearch(DetId detid, const TrackerTopology *tTopo)
unsigned int tecPetalNumber(const DetId &id) const
bool tobIsZMinusSide(const DetId &id) const
unsigned int tibModule(const DetId &id) const
unsigned int tidSide(const DetId &id) const
unsigned int tecRing(const DetId &id) const
ring id
static constexpr auto TOB
XYbin getXY_TID(DetId detid) const
Log< level::Error, false > LogError
std::size_t bin(std::size_t ix, std::size_t iy) const
void initMap_TEC(const std::vector< uint32_t > &tkDetIdList)
static constexpr auto TID
unsigned int tobLayer(const DetId &id) const
bool tidIsBackRing(const DetId &id) const
constexpr uint32_t rawId() const
get the raw id
void getTOBDetectors(const std::vector< uint32_t > &inputDetRawIds, std::vector< uint32_t > &tobDetRawIds, const TrackerTopology *trackerTopology, uint32_t layer=0, uint32_t bkw_frw=0, uint32_t rod=0)
unsigned int tobModule(const DetId &id) const
static constexpr auto TIB
unsigned int tecModule(const DetId &id) const
void initMap(const std::vector< uint32_t > &tkDetIdList)
bool tecIsBackPetal(const DetId &id) const
const TrackerTopology * tTopo_
std::vector< uint32_t > singleExtStr_
void initMap_TIB(const std::vector< uint32_t > &tkDetIdList)
bool tibIsZMinusSide(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
void initMap_TOB(const std::vector< uint32_t > &tkDetIdList)
unsigned int tibLayer(const DetId &id) const
unsigned int tecSide(const DetId &id) const