11 unsigned int layers[] = {3, 4};
14 for (
unsigned int idet = 0; idet < 2; ++idet) {
15 for (
unsigned int il = 0; il < layers[idet]; ++il) {
16 index = (idet+1)*10000 + (il+1)*1000;
17 if (
fVerbose)
cout <<
"Adding index = " << index << endl;
59 detNum = idet*10000 + il*1000;
62 cout <<
"detNum: " << detNum
63 <<
" detID: " <<
static_cast<int>(detid)
74 std::map<int, int>::const_iterator countIt =
fCountMap.begin();
75 std::map<int, double>::const_iterator meanIt =
fMeanMap.begin();
76 std::map<int, double>::const_iterator rmsIt =
fRmsMap.begin();
78 ss <<
"subDet" << setw(15) <<
"layer" << setw(16);
79 if (mean) ss <<
"mean +- rms" << endl;
80 else ss <<
"count" << endl;
85 for (; countIt !=
fCountMap.end(); ++countIt, ++meanIt, ++rmsIt ) {
86 int count = countIt->second;
90 mean = (meanIt->second)/count;
91 rms = (rmsIt->second)/count - mean*mean;
99 switch ((countIt->first)/10000) {
107 if( detector != oldDetector ) {
108 ss << std::endl << detector;
109 oldDetector = detector;
114 int layer = (countIt->first)/1000 - (countIt->first)/10000*10;
116 ss << std::setw(15) << layer << std::setw(13) ;
117 if (
fComputeMean) ss << mean <<
" +- " << rms << std::endl;
118 else ss << countIt->second << std::endl;
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
void add(const DetId &detid, const float &value)
std::map< int, double > fMeanMap
void print(std::stringstream &ss, const bool mean=true) const
SiPixelDetSummary(int verbose=0)
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
virtual std::string name() const
from base class
std::map< int, double > fRmsMap
int layerName() const
layer id
virtual std::string name() const
from base class
std::map< int, int > fCountMap
int diskName() const
disk id
HalfCylinder halfCylinder() const