18 return it->coarseDelay;
36 return makeDelay(it->coarseDelay, it->fineDelay);
43 std::vector<Delay>::const_iterator it =
delays_.begin();
44 for( ; it !=
delays_.end(); ++it ) {
45 detIdVector.push_back(it->detId);
51 ss <<
"Total number of delays = " <<
delays_.size() << std::endl;
54 for( ; it !=
delays_.end(); ++it ) {
55 summaryDelays.
add(it->detId,
makeDelay(it->coarseDelay, it->fineDelay));
57 ss << std::endl <<
"Summary:" << std::endl;
58 summaryDelays.
print(ss);
65 ss << std::endl <<
"All pedestal values:" << std::endl;
66 for( ; it !=
delays_.end(); ++it ) {
67 ss <<
"detId = " << it->detId <<
" delay = " <<
makeDelay(it->coarseDelay, it->fineDelay) << std::endl;
uint16_t coarseDelay(const uint32_t detId)
bool put(const uint32_t detId, const uint16_t coarseDelay, const uint16_t fineDelay)
std::vector< Delay >::const_iterator delayConstIt
double makeDelay(const uint16_t coarseDelay, const uint16_t fineDelay) const
void printSummary(std::stringstream &ss) const
Prints the average value of the delays for all layers and wheels in the SiStripTracker.
double delay(const uint32_t detId) const
void print(std::stringstream &ss, const bool mean=true) const
void printDebug(std::stringstream &ss) const
Prints the delays for all the detIds.
uint16_t fineDelay(const uint32_t detId) const
void detIds(std::vector< uint32_t > &detIdVector) const
Get the list of all detIds for which a delay is stored.
std::vector< Delay > delays_
void add(const DetId &detid, const float &value)
Used to compute the mean value of the value variable divided by subdetector, layer and mono/stereo...