/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
SimTracker/SiStripDigitizer/plugins/DigiSimLinkPileUpSignals.cc
18 строк
808 B
Cms Build
Clang-Format
09 май 2019, 07:18
09 май 2019, 07:18
90d84a5
Код
Авторство
О чём код?
#include "DigiSimLinkPileUpSignals.h" #include "SimDataFormats/TrackingHit/interface/PSimHit.h" void DigiSimLinkPileUpSignals::resetLink() { theMapLink.clear(); theCounterMapLink.clear(); } void DigiSimLinkPileUpSignals::add(const std::vector<float>& locAmpl, const size_t& firstChannelWithSignal, const size_t& lastChannelWithSignal, const PSimHit* hit, const int& counter) { for (size_t iChannel = firstChannelWithSignal; iChannel < lastChannelWithSignal; ++iChannel) { theMapLink[iChannel].push_back(std::pair<const PSimHit*, Amplitude>(hit, Amplitude(locAmpl[iChannel]))); theCounterMapLink[iChannel].push_back(std::make_pair(hit, counter)); } }