CMS 3D CMS Logo

Functions
PPSTimingCalibration.cc File Reference
#include "CondFormats/CTPPSReadoutObjects/interface/PPSTimingCalibration.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const PPSTimingCalibration::Key &key)
 
std::ostream & operator<< (std::ostream &os, const PPSTimingCalibration &data)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const PPSTimingCalibration::Key key 
)
std::ostream& operator<< ( std::ostream &  os,
const PPSTimingCalibration data 
)

Definition at line 56 of file PPSTimingCalibration.cc.

References PPSTimingCalibration::formula_, mps_fire::i, PPSTimingCalibration::parameters_, ntuplemaker::time, and PPSTimingCalibration::timeInfo_.

56  {
57  os << "FORMULA: " << data.formula_ << "\nDB SAMPIC CHANNEL CELL PARAMETERS TIME_OFFSET\n";
58  for (const auto& kv : data.parameters_) {
59  os << kv.first << " [";
60  for (size_t i = 0; i < kv.second.size(); ++i)
61  os << (i > 0 ? ", " : "") << kv.second.at(i);
62  const auto& time = data.timeInfo_.at(kv.first);
63  os << "] " << time.first << " " << time.second << "\n";
64  }
65  return os;
66 }