20 const std::pair<std::string, std::string> &recordLabelPair) {
27 boost::unordered_map<uint32_t, double>::const_iterator it =
delays_.find(detId);
38 std::vector<const SiStripBaseDelay *>::const_iterator it =
baseDelayVector_.begin();
42 if ((*it)->delaysSize() != (*(it + 1))->delaysSize()) {
43 std::cout <<
"makeDelay: Error, size of base delays is different!!" << std::endl;
78 std::vector<uint32_t> detIds;
79 (*it)->detIds(detIds);
80 std::vector<uint32_t>::const_iterator detIdIt = detIds.begin();
81 for (; detIdIt != detIds.end(); ++detIdIt) {
82 delays_[*detIdIt] = (*it)->delay(*detIdIt) * sumSign;
88 std::vector<uint32_t> detIds;
89 (*it)->detIds(detIds);
90 detIdIt = detIds.begin();
92 for (; detIdIt != detIds.end(); ++detIdIt) {
95 boost::unordered_map<uint32_t, double>::iterator delayIt =
delays_.find(*detIdIt);
97 delays_[*detIdIt] += (*it)->delay(*detIdIt) * sumSign;
99 std::cout <<
"makeDelay: Warning, detId = " << *detIdIt <<
" not present, summing to 0..." << std::endl;
100 std::cout <<
"This means that the two baseDelay tags have different "
101 "detIds. PLEASE, CHECK THAT THIS IS EXPECTED."
103 delays_[*detIdIt] = (*it)->delay(*detIdIt) * sumSign;
119 boost::unordered_map<uint32_t, double>::const_iterator it =
delays_.begin();
120 for (; it !=
delays_.end(); ++it) {
121 ss <<
"detId = " << it->first <<
" delay = " << it->second << std::endl;
127 boost::unordered_map<uint32_t, double>::const_iterator it =
delays_.begin();
128 for (; it !=
delays_.end(); ++it) {
129 summaryDelays.add(it->first, it->second);
131 summaryDelays.print(
ss);