36 detNum += layer * 10 + stereo;
45 std::map<unsigned int, Values>::const_iterator valueMapIt =
valueMap_.begin();
47 ss <<
"subDet" << std::setw(15) <<
"layer" << std::setw(16) <<
"mono/stereo" << std::setw(20);
49 ss <<
"mean +- rms" << std::endl;
51 ss <<
"count" << std::endl;
56 for (; valueMapIt !=
valueMap_.end(); ++valueMapIt) {
57 int count = valueMapIt->second.count;
61 mean = (valueMapIt->second.mean) / count;
62 rms = (valueMapIt->second.rms) / count - mean * mean;
69 switch ((valueMapIt->first) / 1000) {
83 if (detector != oldDetector) {
89 int layer = (valueMapIt->first) / 10 - (valueMapIt->first) / 1000 * 100;
90 int stereo = valueMapIt->first - layer * 10 - (valueMapIt->first) / 1000 * 1000;
92 ss << std::setw(15) << layer << std::setw(13) << stereo << std::setw(18);
94 ss << mean <<
" +- " << rms << std::endl;
96 ss << count << std::endl;
static constexpr auto TEC
unsigned int tibLayer(const DetId &id) const
uint32_t tobStereo(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
std::map< unsigned int, Values > valueMap_
const TrackerTopology * trackerTopo_
uint32_t tidStereo(const DetId &id) const
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
void add(DetId detid, float value)
Used to compute the mean value of the value variable divided by subdetector, layer and mono/stereo...
static constexpr auto TOB
void print(std::stringstream &ss, const bool mean=true) const
static constexpr auto TIB
uint32_t tecStereo(const DetId &id) const
uint32_t tibStereo(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
static constexpr auto TID
unsigned int tobLayer(const DetId &id) const