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);
void fillNewDelay(const SiStripBaseDelay &baseDelay, const int sumSign, const std::pair< std::string, std::string > &recordLabelPair)
std::vector< std::pair< std::string, std::string > > recordLabelPair_
std::vector< const SiStripBaseDelay * > baseDelayVector_
bool makeDelay()
Builds the boost::unordered_map.
float getDelay(const uint32_t detId) const
Return the delay combining all the baseDelays.
void clear()
Empty all the containers.
std::vector< int > sumSignVector_
void printDebug(std::stringstream &ss, const TrackerTopology *tTopo) const
Prints the delays for all the detIds.
void printSummary(std::stringstream &ss, const TrackerTopology *trackerTopo) const
std::unordered_map< uint32_t, double > delays_