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
32
33
34
35
36
37
|
#include "CondFormats/EcalObjects/interface/EcalSamplesCorrelation.h"
EcalSamplesCorrelation::EcalSamplesCorrelation() {}
EcalSamplesCorrelation::~EcalSamplesCorrelation() {}
EcalSamplesCorrelation::EcalSamplesCorrelation(const EcalSamplesCorrelation& aset) {}
template <typename T>
static inline void print_vector(std::ostream& o, const std::vector<T>& vect) {
o << "[";
for (std::vector<double>::const_iterator i = vect.begin(); i != vect.end(); ++i) {
std::cout << *i << ", ";
}
o << "]";
}
void EcalSamplesCorrelation::print(std::ostream& o) const {
o << "EB Gain 12 correlation:";
print_vector<double>(o, this->EBG12SamplesCorrelation);
o << std::endl;
o << "EB Gain 6 correlation:";
print_vector<double>(o, this->EBG6SamplesCorrelation);
o << std::endl;
o << "EB Gain 1 correlation:";
print_vector<double>(o, this->EBG1SamplesCorrelation);
o << std::endl;
o << "EE Gain 12 correlation:";
print_vector<double>(o, this->EEG12SamplesCorrelation);
o << std::endl;
o << "EE Gain 6 correlation:";
print_vector<double>(o, this->EEG6SamplesCorrelation);
o << std::endl;
o << "EE Gain 1 correlation:";
print_vector<double>(o, this->EEG1SamplesCorrelation);
o << std::endl;
}
|