Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:10

0001 #include "CondFormats/EcalObjects/interface/EcalSamplesCorrelation.h"
0002 
0003 EcalSamplesCorrelation::EcalSamplesCorrelation() {}
0004 EcalSamplesCorrelation::~EcalSamplesCorrelation() {}
0005 
0006 EcalSamplesCorrelation::EcalSamplesCorrelation(const EcalSamplesCorrelation& 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<double>::const_iterator i = vect.begin(); i != vect.end(); ++i) {
0012     std::cout << *i << ", ";
0013   }
0014   o << "]";
0015 }
0016 
0017 void EcalSamplesCorrelation::print(std::ostream& o) const {
0018   o << "EB Gain 12 correlation:";
0019   print_vector<double>(o, this->EBG12SamplesCorrelation);
0020   o << std::endl;
0021   o << "EB Gain 6 correlation:";
0022   print_vector<double>(o, this->EBG6SamplesCorrelation);
0023   o << std::endl;
0024   o << "EB Gain 1 correlation:";
0025   print_vector<double>(o, this->EBG1SamplesCorrelation);
0026   o << std::endl;
0027 
0028   o << "EE Gain 12 correlation:";
0029   print_vector<double>(o, this->EEG12SamplesCorrelation);
0030   o << std::endl;
0031   o << "EE Gain 6 correlation:";
0032   print_vector<double>(o, this->EEG6SamplesCorrelation);
0033   o << std::endl;
0034   o << "EE Gain 1 correlation:";
0035   print_vector<double>(o, this->EEG1SamplesCorrelation);
0036   o << std::endl;
0037 }