/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CondFormats/EcalObjects/src/EcalSamplesCorrelation.cc
37 строк
1 KB
Cms Build
Clang-Format
22 май 2019, 04:56
22 май 2019, 04:56
28f175a
Код
Авторство
О чём код?
#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; }