|
|
Go to the documentation of this file.
11 std::map<std::string, sistripsummary::TrackerRegion>
mapping = {
30 <<
"Unknown partition: " <<
region;
47 std::vector<sistripsummary::TrackerRegion>
ret;
51 layer = m_trackerTopo->
tibLayer(detid);
55 layer = m_trackerTopo->
tobLayer(detid);
60 layer = m_trackerTopo->
tidWheel(detid);
61 side = m_trackerTopo->
tidSide(detid);
62 subdet = 3 * 10 + side;
66 layer = m_trackerTopo->
tecWheel(detid);
67 side = m_trackerTopo->
tecSide(detid);
68 subdet = 4 * 10 + side;
72 detCode = (subdet * 10) + layer;
74 ret.push_back(static_cast<sistripsummary::TrackerRegion>(detCode));
76 if (subdet / 10 > 0) {
77 ret.push_back(static_cast<sistripsummary::TrackerRegion>(subdet / 10));
80 ret.push_back(static_cast<sistripsummary::TrackerRegion>(subdet));
93 std::map<unsigned int, float> info_per_detid;
94 for (
int layer = 1; layer < 44; layer++) {
95 for (
int ring = theMap->
firstRing[layer - 1]; ring < theMap->ntotRing[layer - 1] + theMap->
firstRing[layer - 1];
100 if (
mod !=
nullptr && !
mod->notInUse() &&
mod->count > 0) {
101 info_per_detid[
key] =
mod->value;
ret
prodAgent to be discontinued
T mod(const T &a, const T &b)
unsigned int tidWheel(const DetId &id) const
static constexpr auto TIB
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)
unsigned int tidSide(const DetId &id) const
unsigned int tobLayer(const DetId &id) const
static constexpr auto TEC
static constexpr auto TOB
sistripsummary::TrackerRegion getRegionFromString(std::string region)
unsigned int tecWheel(const DetId &id) const
std::pair< float, float > getTheRange(std::map< uint32_t, float > values, const float nsigma)
static constexpr auto TID
std::vector< sistripsummary::TrackerRegion > getRegionsFromDetId(const TrackerTopology *m_trackerTopo, DetId detid)
unsigned int tibLayer(const DetId &id) const
unsigned int tecSide(const DetId &id) const