/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CondFormats/RPCObjects/src/FebLocationSpec.cc
21 строка
817 B
Cms Build
Clang-Format
24 май 2019, 00:14
24 май 2019, 00:14
ecf11e6
Код
Авторство
О чём код?
#include "CondFormats/RPCObjects/interface/FebLocationSpec.h" #include <sstream> std::string FebLocationSpec::localEtaPartitionName() const { std::ostringstream str; const static std::string localPartVal[7] = {"Forward", "Central", "Backward", "A", "B", "C", "D"}; str << localPartVal[localEtaPartition - 1]; return str.str(); } std::string FebLocationSpec::print(int depth) const { std::ostringstream str; std::string cmsPartVal[6] = {"1", "2", "3", "A", "B", "C"}; if (depth >= 0) { str << "FebLocationSpec: " << std::endl << " local partition: " << localEtaPartitionName() << " (" << int(positionInLocalEtaPartition) << ")" << " cms partition: " << cmsPartVal[cmsEtaPartition - 1] << " (" << int(positionInCmsEtaPartition) << ")" << std::endl; } return str.str(); }