File indexing completed on 2024-04-06 12:02:10
0001 #include "CondFormats/EcalObjects/interface/EcalTimeBiasCorrections.h"
0002
0003 EcalTimeBiasCorrections::EcalTimeBiasCorrections() {}
0004 EcalTimeBiasCorrections::~EcalTimeBiasCorrections() {}
0005
0006 EcalTimeBiasCorrections::EcalTimeBiasCorrections(const EcalTimeBiasCorrections& aset) {}
0007
0008 template <typename T>
0009 static inline void print_vector(std::ostream& o, const std::vector<T>& vect) {
0010 o << "[";
0011 for (std::vector<float>::const_iterator i = vect.begin(); i != vect.end(); ++i) {
0012 std::cout << *i << ", ";
0013 }
0014 o << "]";
0015 }
0016
0017 void EcalTimeBiasCorrections::print(std::ostream& o) const {
0018 o << "EB Amplitude bins:";
0019 print_vector<float>(o, this->EBTimeCorrAmplitudeBins);
0020 o << std::endl;
0021 o << "EE Amplitude bins:";
0022 print_vector<float>(o, this->EETimeCorrAmplitudeBins);
0023 o << std::endl;
0024
0025 o << "EB Shift bins:";
0026 print_vector<float>(o, this->EBTimeCorrShiftBins);
0027 o << std::endl;
0028 o << "EE Shift bins:";
0029 print_vector<float>(o, this->EETimeCorrShiftBins);
0030 o << std::endl;
0031 }