|
|
Go to the documentation of this file.
54 edm::LogError(
"TkLayerMap") <<
" TkLayerMap::requested creation of a wrong layer Nb " <<
layer_;
60 std::vector<uint32_t> LayerDetIdList;
63 LogTrace(
"TkLayerMap") <<
"[TkLayerMap::createTIB12] layer " <<
layer_ <<
" number of dets " << LayerDetIdList.size()
66 for (uint32_t det : LayerDetIdList) {
70 LogTrace(
"TkLayerMap") <<
"[TkLayerMap::createTIB] " << det <<
" " << xyb.ix <<
" " << xyb.iy <<
" " << xyb.x <<
" "
77 std::vector<uint32_t> LayerDetIdList;
80 LogTrace(
"TkLayerMap") <<
"[TkLayerMap::createTOB] layer " <<
layer_ - 10 <<
" number of dets "
81 << LayerDetIdList.size() <<
" lowY " <<
lowY_ <<
" high " <<
highY_ <<
" Nstring "
84 for (uint32_t det : LayerDetIdList) {
88 LogTrace(
"TkLayerMap") <<
"[TkLayerMap::createTOB] " << det <<
" " << xyb.ix <<
" " << xyb.iy <<
" " << xyb.x <<
" "
95 std::vector<uint32_t> LayerDetIdList;
108 for (uint32_t det : LayerDetIdList) {
112 LogTrace(
"TkLayerMap") <<
"[TkLayerMap::createTID] " << det <<
" " << xyb.ix <<
" " << xyb.iy <<
" " << xyb.x <<
" "
119 std::vector<uint32_t> LayerDetIdList;
132 for (uint32_t det : LayerDetIdList) {
136 LogTrace(
"TkLayerMap") <<
"[TkLayerMap::createTEC] " << det <<
" " << xyb.ix <<
" " << xyb.iy <<
" " << xyb.x <<
" "
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";
550 int16_t& cached_layer,
552 LogTrace(
"TkDetMap") <<
"[getXY] detid " << detid.
rawId() <<
" cache " << cached_detid.
rawId() <<
" layer "
553 << cached_layer <<
" XY " << cached_XYbin.
ix <<
" " << cached_XYbin.
iy <<
" " << cached_XYbin.
x
554 <<
" " << cached_XYbin.
y;
555 if (detid == cached_detid)
560 findLayer(detid, cached_detid, cached_layer, cached_XYbin);
561 LogTrace(
"TkDetMap") <<
"[getXY] detid " << detid.
rawId() <<
" cache " << cached_detid.
rawId() <<
" layer "
562 << cached_layer <<
" XY " << cached_XYbin.
ix <<
" " << cached_XYbin.
iy <<
" " << cached_XYbin.
x
563 <<
" " << cached_XYbin.
y;
570 int16_t& cached_layer,
572 if (detid == cached_detid)
575 cached_detid = detid;
578 LogTrace(
"TkDetMap") <<
"[findLayer] detid " << detid.
rawId() <<
" layer " << layer;
579 if (layer != cached_layer) {
580 cached_layer = layer;
582 cached_XYbin =
TkMap[cached_layer].getXY(detid, layer);
583 LogTrace(
"TkDetMap") <<
"[findLayer] detid " << detid.
rawId() <<
" cached_XYbin " << cached_XYbin.
ix <<
" "
590 int layer,
int& nchX,
double& lowX,
double& highX,
int& nchY,
double& lowY,
double& highY)
const {
591 nchX =
TkMap[layer].get_nchX();
592 lowX =
TkMap[layer].get_lowX();
593 highX =
TkMap[layer].get_highX();
594 nchY =
TkMap[layer].get_nchY();
595 lowY =
TkMap[layer].get_lowY();
596 highY =
TkMap[layer].get_highY();
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
std::vector< TkLayerMap > TkMap
bool tecIsZMinusSide(const DetId &id) const
static std::string getLayerName(int in)
bool tecIsStereo(const DetId &id) const
const TkLayerMap::XYbin & getXY(DetId detid, DetId &cached_detid, int16_t &cached_layer, TkLayerMap::XYbin &cached_XYbin) const
unsigned int tidModule(const DetId &id) const
XYbin getXY_TEC(DetId detid) const
std::vector< DetId > binToDet_
const XYbin getXY(DetId detid, int layerEnumNb=TkLayerMap::INVALID) const
void initMap_TID(const std::vector< uint32_t > &tkDetIdList)
unsigned int tidRing(const DetId &id) const
static int getLayerNum(const std::string &in)
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
int16_t findLayer(DetId detid, DetId &cached_detid, int16_t &cached_layer, TkLayerMap::XYbin &cached_XYbin) 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
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
void getComponents(int layer, int &nchX, double &lowX, double &highX, int &nchY, double &lowY, double &highY) const
static constexpr auto TIB
unsigned int tecModule(const DetId &id) const
void initMap(const std::vector< uint32_t > &tkDetIdList)
const TrackerTopology * tTopo_
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
static void getSubDetLayerSide(int in, SiStripDetId::SubDetector &, uint32_t &layer, uint32_t &side)
void initMap_TOB(const std::vector< uint32_t > &tkDetIdList)
unsigned int tibLayer(const DetId &id) const
unsigned int tecSide(const DetId &id) const