/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/Integration/plugins/ThingAlgorithm.cc
18 строк
486 B
Chris Jones
Moved plugins to FWCore/Integration/plugins
10 янв 2023, 17:49
10 янв 2023, 17:49
974ebbd
Код
Авторство
О чём код?
#include "ThingAlgorithm.h" #include "DataFormats/TestObjects/interface/Thing.h" namespace edmtest { void ThingAlgorithm::run(ThingCollection& thingCollection) const { thingCollection.reserve(nThings_); auto offset = offset_.fetch_add(offsetDelta_); int nItems = nThings_; if (grow_) { nItems *= offset; } for (int i = 0; i < nItems; ++i) { Thing tc; tc.a = i + offset; thingCollection.push_back(tc); } } } // namespace edmtest