Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
#include "CondFormats/EcalObjects/interface/EcalTimeBiasCorrections.h"

EcalTimeBiasCorrections::EcalTimeBiasCorrections() {}
EcalTimeBiasCorrections::~EcalTimeBiasCorrections() {}

EcalTimeBiasCorrections::EcalTimeBiasCorrections(const EcalTimeBiasCorrections& aset) {}

template <typename T>
static inline void print_vector(std::ostream& o, const std::vector<T>& vect) {
  o << "[";
  for (std::vector<float>::const_iterator i = vect.begin(); i != vect.end(); ++i) {
    std::cout << *i << ", ";
  }
  o << "]";
}

void EcalTimeBiasCorrections::print(std::ostream& o) const {
  o << "EB Amplitude bins:";
  print_vector<float>(o, this->EBTimeCorrAmplitudeBins);
  o << std::endl;
  o << "EE Amplitude bins:";
  print_vector<float>(o, this->EETimeCorrAmplitudeBins);
  o << std::endl;

  o << "EB Shift bins:";
  print_vector<float>(o, this->EBTimeCorrShiftBins);
  o << std::endl;
  o << "EE Shift bins:";
  print_vector<float>(o, this->EETimeCorrShiftBins);
  o << std::endl;
}