CMS 3D CMS Logo

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

◆ operator<<() [1/2]

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

Definition at line 27 of file PPSTimingCalibration.cc.

References submitPVResolutionJobs::key, and l1tGTMenu_BTagSeeds_cff::os.

27  {
28  return os << key.db << " " << key.sampic << " " << key.channel << " " << key.cell;
29 }
key
prepare the HTCondor submission files and eventually submit them

◆ operator<<() [2/2]

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

Definition at line 57 of file PPSTimingCalibration.cc.

References data, mps_fire::i, submitPVResolutionJobs::key, l1tGTMenu_BTagSeeds_cff::os, and hcalRecHitTable_cff::time.

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 
64  PPSTimingCalibration::Key key = kv.first;
65  if (data.timeInfo_.find(key) == data.timeInfo_.end())
66  key = {kv.first.db, kv.first.sampic, kv.first.channel, -1};
67 
68  const auto& time = data.timeInfo_.at(key);
69  os << "] " << time.first << " " << time.second << "\n";
70  }
71  return os;
72 }
Helper structure for indexing calibration data.
key
prepare the HTCondor submission files and eventually submit them
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80