|
|
Go to the documentation of this file. 1 #ifndef CalibTracker_SiStripCommon_TKHistoMap_h
2 #define CalibTracker_SiStripCommon_TKHistoMap_h
13 XYbin(int16_t _ix = -999, int16_t _iy = -999,
float _x = -999.,
float _y = -999.)
14 :
ix(_ix),
iy(_iy),
x(_x),
y(_y) {}
68 const std::vector<uint32_t>& tkDetIdList,
69 const std::vector<uint32_t>& singleExtString = {},
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)) {
101 const std::vector<uint32_t>& tkDetIdList,
102 std::vector<uint32_t>&& singleExtString = {},
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)) {
126 void initMap(
const std::vector<uint32_t>& tkDetIdList);
129 void initMap_TIB(
const std::vector<uint32_t>& tkDetIdList);
130 void initMap_TOB(
const std::vector<uint32_t>& tkDetIdList);
131 void initMap_TID(
const std::vector<uint32_t>& tkDetIdList);
132 void initMap_TEC(
const std::vector<uint32_t>& tkDetIdList);
134 std::size_t
bin(std::size_t ix, std::size_t iy)
const {
return (ix - 1) +
nchX_ * (iy - 1); }
148 const auto idx =
bin(ix, iy);
203 int16_t& cached_layer,
206 void getComponents(
int layer,
int& nchX,
double& lowX,
double& highX,
int& nchY,
double& lowY,
double& highY)
const;
TkDetMap(const TrackerTopology *tTopo)
std::size_t get_nchX() const
std::vector< uint32_t > modulesInRingFront_
std::vector< uint32_t > modulesInRingBack_
std::vector< TkLayerMap > TkMap
static std::string getLayerName(int in)
const TkLayerMap::XYbin & getXY(DetId detid, DetId &cached_detid, int16_t &cached_layer, TkLayerMap::XYbin &cached_XYbin) const
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)
XYbin getXY_TEC(DetId detid) const
void setLayerMap(int layer, const TkLayerMap &lyrMap)
std::vector< DetId > binToDet_
const XYbin getXY(DetId detid, int layerEnumNb=TkLayerMap::INVALID) const
void initMap_TID(const std::vector< uint32_t > &tkDetIdList)
static int getLayerNum(const std::string &in)
const std::vector< DetId > & getBinToDet() const
XYbin getXY_TOB(DetId detid) const
DetId getDetFromBin(int layer, int ix, int iy) const
DetId getDetFromBin(int ix, int iy) const
XYbin getXY_TIB(DetId detid) const
int16_t findLayer(DetId detid, DetId &cached_detid, int16_t &cached_layer, TkLayerMap::XYbin &cached_XYbin) const
constexpr std::array< uint8_t, layerIndexSize > layer
std::vector< uint32_t > binForRing_
static const int16_t layerSearch(DetId detid, const TrackerTopology *tTopo)
std::vector< DetId > getDetsForLayer(int layer) const
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)
std::size_t get_nchY() const
void getComponents(int layer, int &nchX, double &lowX, double &highX, int &nchY, double &lowY, double &highY) const
XYbin(int16_t _ix=-999, int16_t _iy=-999, float _x=-999., float _y=-999.)
DetId getDetFromBin(const std::string &layerName, int ix, int iy) const
void initMap(const std::vector< uint32_t > &tkDetIdList)
const TrackerTopology * tTopo_
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)
const TrackerTopology * tTopo_
std::vector< uint32_t > singleExtStr_
constexpr char const * layerName[numberOfLayers]
void initMap_TIB(const std::vector< uint32_t > &tkDetIdList)
static void getSubDetLayerSide(int in, SiStripDetId::SubDetector &, uint32_t &layer, uint32_t &side)
void setLayerMap(int layer, TkLayerMap &&lyrMap)
void initMap_TOB(const std::vector< uint32_t > &tkDetIdList)