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;
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;
86 mean = (meanIt->second) / count;
87 rms = (rmsIt->second) / count - mean * mean;
95 switch ((countIt->first) / 10000) {
103 if (detector != oldDetector) {
104 ss << std::endl << detector;
105 oldDetector = detector;
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;
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
constexpr std::array< uint8_t, layerIndexSize > layer
void add(const DetId &detid, const float &value)
std::map< int, double > fMeanMap
static constexpr int verbose
std::string name() const override
from base class
void print(std::stringstream &ss, const bool mean=true) const
SiPixelDetSummary(int verbose=0)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
std::map< int, double > fRmsMap
std::string name() const override
from base class
int layerName() const
layer id
std::map< int, int > fCountMap
int diskName() const
disk id
HalfCylinder halfCylinder() const