11 std::map<std::string, sistripsummary::TrackerRegion> mapping = {
28 if (mapping.find(region) == mapping.end()) {
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;
static constexpr auto TEC
tuple ret
prodAgent to be discontinued
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
Log< level::Error, false > LogError
constexpr std::array< uint8_t, layerIndexSize > layer
const uint16_t range(const Frame &aFrame)
std::pair< float, float > getTheRange(std::map< uint32_t, float > values, const float nsigma)
unsigned int tidSide(const DetId &id) const
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
tuple key
prepare the HTCondor submission files and eventually submit them
static constexpr auto TOB
static constexpr auto TIB
std::pair< float, float > getTruncatedRange(const TrackerMap *theMap)
T mod(const T &a, const T &b)
unsigned int tecWheel(const DetId &id) const
static constexpr auto TID
unsigned int tobLayer(const DetId &id) const
unsigned int tecSide(const DetId &id) const