11 std::map<std::string,sistripsummary::TrackerRegion>
mapping = {
57 if (mapping.find(region) == mapping.end() ){
58 edm::LogError(
"SiStripMiscalibrate") <<
"@SUB=analyze" <<
"Unknown partition: " << region;
61 return mapping[region];
74 std::vector<sistripsummary::TrackerRegion> ret;
78 layer = m_trackerTopo->
tibLayer(detid);
82 layer = m_trackerTopo->
tobLayer(detid);
87 layer = m_trackerTopo->
tidWheel(detid);
88 side = m_trackerTopo->
tidSide(detid);
93 layer = m_trackerTopo->
tecWheel(detid);
94 side = m_trackerTopo->
tecSide(detid);
99 detCode = (subdet*10)+layer;
101 ret.push_back(static_cast<sistripsummary::TrackerRegion>(detCode));
104 ret.push_back(static_cast<sistripsummary::TrackerRegion>(subdet/10));
107 ret.push_back(static_cast<sistripsummary::TrackerRegion>(subdet));
120 std::map<unsigned int,float> info_per_detid;
121 for (
int layer=1; layer < 44; layer++){
unsigned int tibLayer(const DetId &id) const
std::vector< sistripsummary::TrackerRegion > getRegionsFromDetId(const TrackerTopology *m_trackerTopo, DetId detid)
sistripsummary::TrackerRegion getRegionFromString(std::string region)
unsigned int tidWheel(const DetId &id) const
unsigned int tidSide(const DetId &id) const
std::pair< float, float > getTheRange(std::map< uint32_t, float > values, const float nsigma)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
std::pair< float, float > getTruncatedRange(const TrackerMap *theMap)
T mod(const T &a, const T &b)
unsigned int tecWheel(const DetId &id) const
unsigned int tobLayer(const DetId &id) const
unsigned int tecSide(const DetId &id) const