19 const std::pair<std::string, std::string> &recordLabelPair) {
26 std::unordered_map<uint32_t, double>::const_iterator it =
delays_.find(detId);
37 std::vector<const SiStripBaseDelay *>::const_iterator it =
baseDelayVector_.begin();
41 if ((*it)->delaysSize() != (*(it + 1))->delaysSize()) {
42 std::cout <<
"makeDelay: Error, size of base delays is different!!" << std::endl;
77 std::vector<uint32_t> detIds;
78 (*it)->detIds(detIds);
79 std::vector<uint32_t>::const_iterator detIdIt = detIds.begin();
80 for (; detIdIt != detIds.end(); ++detIdIt) {
81 delays_[*detIdIt] = (*it)->delay(*detIdIt) * sumSign;
87 std::vector<uint32_t> detIds;
88 (*it)->detIds(detIds);
89 detIdIt = detIds.begin();
91 for (; detIdIt != detIds.end(); ++detIdIt) {
94 std::unordered_map<uint32_t, double>::iterator delayIt =
delays_.find(*detIdIt);
96 delays_[*detIdIt] += (*it)->delay(*detIdIt) * sumSign;
98 std::cout <<
"makeDelay: Warning, detId = " << *detIdIt <<
" not present, summing to 0..." << std::endl;
99 std::cout <<
"This means that the two baseDelay tags have different "
100 "detIds. PLEASE, CHECK THAT THIS IS EXPECTED."
102 delays_[*detIdIt] = (*it)->delay(*detIdIt) * sumSign;
118 std::unordered_map<uint32_t, double>::const_iterator it =
delays_.begin();
119 for (; it !=
delays_.end(); ++it) {
120 ss <<
"detId = " << it->first <<
" delay = " << it->second << std::endl;
126 std::unordered_map<uint32_t, double>::const_iterator it =
delays_.begin();
127 for (; it !=
delays_.end(); ++it) {
128 summaryDelays.add(it->first, it->second);
130 summaryDelays.print(
ss);