14 layer = theTIBDetId.
layer();
15 stereo = theTIBDetId.stereo();
22 layer = theTOBDetId.
layer();
23 stereo = theTOBDetId.stereo();
31 layer = theTECDetId.
wheel();
32 stereo = theTECDetId.stereo();
40 layer = theTIDDetId.
wheel();
41 stereo = theTIDDetId.stereo();
46 detNum += layer*10 + stereo;
56 std::map<unsigned int, Values>::const_iterator valueMapIt =
valueMap_.begin();
58 ss <<
"subDet" << std::setw(15) <<
"layer" << std::setw(16) <<
"mono/stereo" << std::setw(20);
59 if( mean ) ss <<
"mean +- rms" << std::endl;
60 else ss <<
"count" << std::endl;
65 for( ; valueMapIt !=
valueMap_.end(); ++valueMapIt ) {
66 int count = valueMapIt->second.count;
70 mean = (valueMapIt->second.mean)/count;
71 rms = (valueMapIt->second.rms)/count - mean*mean;
78 switch ((valueMapIt->first)/1000) {
92 if( detector != oldDetector ) {
93 ss << std::endl << detector;
94 oldDetector = detector;
98 int layer = (valueMapIt->first)/10 - (valueMapIt->first)/1000*100;
99 int stereo = valueMapIt->first - layer*10 -(valueMapIt->first)/1000*1000;
101 ss << std::setw(15) << layer << std::setw(13) << stereo << std::setw(18);
102 if(
computeMean_ ) ss << mean <<
" +- " << rms << std::endl;
103 else ss << count << std::endl;
unsigned int layer() const
layer id
std::map< unsigned int, Values > valueMap_
uint32_t rawId() const
get the raw id
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
unsigned int wheel() const
wheel id
unsigned int layer() const
layer id
void add(const DetId &detid, const float &value)
Used to compute the mean value of the value variable divided by subdetector, layer and mono/stereo...
unsigned int wheel() const
wheel id