/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/MessageService/test/UnitTestClient_SLumi.h
56 строк
2 KB
Chris Jones
Remove use of legacy module classes from framework tests
05 окт 2021, 17:09
05 окт 2021, 17:09
9c36c49
Код
Авторство
О чём код?
#ifndef FWCore_MessageService_test_UnitTestClient_SLumi_h #define FWCore_MessageService_test_UnitTestClient_SLumi_h #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/one/EDAnalyzer.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" namespace edm { class ParameterSet; } namespace edmtest { class UTC_SL1 : public edm::one::EDAnalyzer<> { public: explicit UTC_SL1(edm::ParameterSet const &p) { identifier = p.getUntrackedParameter<int>("identifier", 99); edm::GroupLogStatistics("grouped_cat"); } void analyze(edm::Event const &e, edm::EventSetup const &c) override; private: int identifier; static bool enableNotYetCalled; static int n; }; class UTC_SL2 : public edm::one::EDAnalyzer<> { public: explicit UTC_SL2(edm::ParameterSet const &p) { identifier = p.getUntrackedParameter<int>("identifier", 98); } void analyze(edm::Event const &e, edm::EventSetup const &c) override; private: int identifier; static int n; }; class UTC_SLUMMARY : public edm::one::EDAnalyzer<edm::one::WatchLuminosityBlocks> { public: explicit UTC_SLUMMARY(edm::ParameterSet const &) {} void analyze(edm::Event const &e, edm::EventSetup const &c) override; void beginLuminosityBlock(edm::LuminosityBlock const &lb, edm::EventSetup const &c) override {} void endLuminosityBlock(edm::LuminosityBlock const &lb, edm::EventSetup const &c) override; private: }; } // namespace edmtest #endif // FWCore_MessageService_test_UnitTestClient_SLumi_h