1 #ifndef SiStripDetSummary_h 2 #define SiStripDetSummary_h 37 unsigned int layers[] = {4, 6, 9, 3};
38 unsigned int stereo[] = {2, 2, 9, 3};
40 for (
unsigned int subDet = 0; subDet < 4; ++subDet) {
42 for (
unsigned int layer = 1; layer <= layers[subDet]; ++layer) {
43 valueMap_[1000 * (subDet + 1) + layer * 10] = initValues;
44 if (layer <= stereo[subDet])
45 valueMap_[1000 * (subDet + 1) + layer * 10 + 1] = initValues;
62 void print(std::stringstream&
ss,
const bool mean =
true)
const;
std::map< unsigned int, Values > getCounts()
std::map< unsigned int, Values > valueMap_
const TrackerTopology * trackerTopo_
SiStripDetSummary(const TrackerTopology *tTopo)
void add(DetId detid, float value)
Used to compute the mean value of the value variable divided by subdetector, layer and mono/stereo...
void add(DetId detid)
Used to compute the number of entries divided by subdetector, layer and mono/stereo.
void print(std::stringstream &ss, const bool mean=true) const