36 detNum += layer*10 + stereo;
46 std::map<unsigned int, Values>::const_iterator valueMapIt =
valueMap_.begin();
48 ss <<
"subDet" << std::setw(15) <<
"layer" << std::setw(16) <<
"mono/stereo" << std::setw(20);
49 if( mean ) ss <<
"mean +- rms" << std::endl;
50 else 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 ) {
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);
92 if(
computeMean_ ) ss << mean <<
" +- " << rms << std::endl;
93 else ss << count << std::endl;
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
void add(DetId detid, float value)
Used to compute the mean value of the value variable divided by subdetector, layer and mono/stereo...
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
void print(std::stringstream &ss, const bool mean=true) const
uint32_t tecStereo(const DetId &id) const
uint32_t tibStereo(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
unsigned int tobLayer(const DetId &id) const