/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/Integration/plugins/HierarchicalAlgorithms.h
37 строк
838 B
Chris Jones
Moved plugins to FWCore/Integration/plugins
10 янв 2023, 17:49
10 янв 2023, 17:49
974ebbd
Код
Авторство
О чём код?
#ifndef Integration_HierarchicalAlgorithms_h #define Integration_HierarchicalAlgorithms_h /** \class alg_1 and alg_2 * ************************************************************/ #include <vector> #include "FWCore/ParameterSet/interface/ParameterSet.h" namespace edmtest { class alg_2 { public: explicit alg_2(const edm::ParameterSet& ps) : flavor_(ps.getParameter<std::string>("flavor")), debugLevel_(ps.getUntrackedParameter<int>("debug", 0)) {} std::string& flavor() { return flavor_; } private: std::string flavor_; int debugLevel_; }; class alg_1 { public: explicit alg_1(const edm::ParameterSet& ps) : count_(ps.getParameter<int>("count")), inner_alg_(ps.getParameterSet("nest_2")) {} private: int count_; alg_2 inner_alg_; }; } // namespace edmtest #endif