CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalSamplesCorrelation.cc
Go to the documentation of this file.
2 
5 
7  const EcalSamplesCorrelation& aset) {}
8 
9 template <typename T>
10 static inline void print_vector(std::ostream& o, const std::vector<T>& vect) {
11  o << "[";
12  for (std::vector<double>::const_iterator i = vect.begin(); i != vect.end();
13  ++i) {
14 
15  std::cout << *i << ", ";
16  }
17  o << "]";
18 }
19 
20 void EcalSamplesCorrelation::print(std::ostream& o) const {
21  o << "EB Gain 12 correlation:";
22  print_vector<double>(o, this->EBG12SamplesCorrelation);
23  o << std::endl;
24  o << "EB Gain 6 correlation:";
25  print_vector<double>(o, this->EBG6SamplesCorrelation);
26  o << std::endl;
27  o << "EB Gain 1 correlation:";
28  print_vector<double>(o, this->EBG1SamplesCorrelation);
29  o << std::endl;
30 
31  o << "EE Gain 12 correlation:";
32  print_vector<double>(o, this->EEG12SamplesCorrelation);
33  o << std::endl;
34  o << "EE Gain 6 correlation:";
35  print_vector<double>(o, this->EEG6SamplesCorrelation);
36  o << std::endl;
37  o << "EE Gain 1 correlation:";
38  print_vector<double>(o, this->EEG1SamplesCorrelation);
39  o << std::endl;
40 }
int i
Definition: DBlmapReader.cc:9
std::vector< double > EBG12SamplesCorrelation
static void print_vector(std::ostream &o, const std::vector< T > &vect)
std::vector< double > EBG6SamplesCorrelation
void print(std::ostream &o) const
std::vector< double > EBG1SamplesCorrelation
std::vector< double > EEG1SamplesCorrelation
tuple cout
Definition: gather_cfg.py:121
std::vector< double > EEG12SamplesCorrelation
std::vector< double > EEG6SamplesCorrelation