/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/Integration/plugins/ThingAlgorithm.h
29 строк
805 B
Chris Jones
Moved plugins to FWCore/Integration/plugins
10 янв 2023, 17:49
10 янв 2023, 17:49
974ebbd
Код
Авторство
О чём код?
#ifndef Integration_ThingAlgorithm_h #define Integration_ThingAlgorithm_h /** \class ThingAlgorithm * ************************************************************/ #include "DataFormats/TestObjects/interface/ThingCollectionfwd.h" #include <atomic> namespace edmtest { class ThingAlgorithm { public: ThingAlgorithm(long iOffsetDelta = 0, int nThings = 20, bool grow = false) : offset_(0), offsetDelta_(iOffsetDelta), nThings_(nThings), grow_(grow) {} /// Runs the algorithm and returns a list of Things /// The user declares the vector and calls this method. void run(ThingCollection& thingCollection) const; private: mutable std::atomic<long> offset_; const long offsetDelta_; const int nThings_; const bool grow_; }; } // namespace edmtest #endif