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);
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.
boost::unordered_map< uint32_t, double > delays_
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