/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CondFormats/PPSObjects/src/CTPPSPixelDAQMapping.cc
43 строки
1 KB
Silvio Donato
Revert "Revert "PPS: rename directories with misleading names""
06 мар 2020, 19:21
Не верифицирован
06 мар 2020, 19:21
ab43201
Код
Авторство
О чём код?
/**************************************************************************** * * * Authors: * F.Ferro ferro@ge.infn.it * ****************************************************************************/ #include "FWCore/Utilities/interface/typelookup.h" #include "CondFormats/PPSObjects/interface/CTPPSPixelDAQMapping.h" using namespace std; //---------------------------------------------------------------------------------------------------- std::set<unsigned int> CTPPSPixelDAQMapping::fedIds() const { std::set<unsigned int> fedSet; for (const auto &p : ROCMapping) { fedSet.insert(p.first.getFEDId()); } return fedSet; } std::ostream &operator<<(std::ostream &s, const CTPPSPixelROCInfo &vi) { s << "ID=" << vi.iD << " ROC=" << vi.roc; return s; } //---------------------------------------------------------------------------------------------------- void CTPPSPixelDAQMapping::insert(const CTPPSPixelFramePosition &fp, const CTPPSPixelROCInfo &vi) { auto it = ROCMapping.find(fp); if (it != ROCMapping.end()) { edm::LogError("RPix") << "WARNING in DAQMapping::insert > Overwriting entry at " << fp << ". Previous: " << " " << ROCMapping[fp] << "," << " new: " << " " << vi << ". "; } ROCMapping[fp] = vi; }