10 unsigned int layers[] = {3, 4};
13 for (
unsigned int idet = 0; idet < 2; ++idet) {
14 for (
unsigned int il = 0; il <
layers[idet]; ++il) {
15 index = (idet + 1) * 10000 + (il + 1) * 1000;
17 cout <<
"Adding index = " <<
index << endl;
35 switch (
detid.subdetId()) {
56 detNum = idet * 10000 + il * 1000;
59 cout <<
"detNum: " << detNum <<
" detID: " <<
static_cast<int>(
detid) <<
" " <<
name << endl;
68 std::map<int, int>::const_iterator countIt =
fCountMap.begin();
69 std::map<int, double>::const_iterator meanIt =
fMeanMap.begin();
70 std::map<int, double>::const_iterator rmsIt =
fRmsMap.begin();
72 ss <<
"subDet" << setw(15) <<
"layer" << setw(16);
74 ss <<
"mean +- rms" << endl;
76 ss <<
"count" << endl;
81 for (; countIt !=
fCountMap.end(); ++countIt, ++meanIt, ++rmsIt) {
82 int count = countIt->second;
95 switch ((countIt->first) / 10000) {
110 int layer = (countIt->first) / 1000 - (countIt->first) / 10000 * 10;
112 ss << std::setw(15) <<
layer << std::setw(13);
114 ss <<
mean <<
" +- " <<
rms << std::endl;
116 ss << countIt->second << std::endl;
void add(const DetId &detid, const float &value)
std::map< int, double > fMeanMap
void print(std::stringstream &ss, const bool mean=true) const
int diskName() const
disk id
std::string name() const override
from base class
HalfCylinder halfCylinder() const
SiPixelDetSummary(int verbose=0)
std::map< int, double > fRmsMap
std::string name() const override
from base class
int layerName() const
layer id
std::map< int, int > fCountMap