36 detNum += layer * 10 + stereo;
44 std::map<unsigned int, Values>::const_iterator valueMapIt =
valueMap_.begin();
46 ss <<
"subDet" << std::setw(15) <<
"layer" << std::setw(16) <<
"mono/stereo" << std::setw(20);
48 ss <<
"mean +- rms" << std::endl;
50 ss <<
"count" << std::endl;
55 for (; valueMapIt !=
valueMap_.end(); ++valueMapIt) {
56 int count = valueMapIt->second.count;
60 mean = (valueMapIt->second.mean) / count;
61 rms = (valueMapIt->second.rms) / count - mean * mean;
68 switch ((valueMapIt->first) / 1000) {
82 if (detector != oldDetector) {
83 ss << std::endl << detector;
84 oldDetector = detector;
88 int layer = (valueMapIt->first) / 10 - (valueMapIt->first) / 1000 * 100;
89 int stereo = valueMapIt->first - layer * 10 - (valueMapIt->first) / 1000 * 1000;
91 ss << std::setw(15) << layer << std::setw(13) << stereo << std::setw(18);
93 ss << mean <<
" +- " << rms << std::endl;
95 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_
constexpr std::array< uint8_t, layerIndexSize > layer
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