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

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

68 {
69  os << "FORMULA: "<< data.formula_ << "\nDB SAMPIC CHANNEL CELL PARAMETERS TIME_OFFSET\n";
70  for ( const auto& kv : data.parameters_ ) {
71  os << kv.first <<" [";
72  for ( size_t i = 0; i < kv.second.size(); ++i )
73  os << ( i > 0 ? ", " : "" ) << kv.second.at( i );
74  const auto& time = data.timeInfo_.at( kv.first );
75  os << "] " << time.first << " " << time.second << "\n";
76  }
77  return os;
78 }