CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
PPSTimingCalibration.cc File Reference
#include "CondFormats/PPSObjects/interface/PPSTimingCalibration.h"
#include <ostream>

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 57 of file PPSTimingCalibration.cc.

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

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