/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/MessageService/test/UnitTestClient_H.cc
37 строк
2 KB
W. David Dagenhart
Convert some modules from legacy to global or one
21 июл 2021, 19:20
21 июл 2021, 19:20
8b4562f
Код
Авторство
О чём код?
#ifdef EDM_ML_DEBUG #undef EDM_ML_DEBUG #endif #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/global/EDAnalyzer.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/Utilities/interface/StreamID.h" namespace edmtest { class UnitTestClient_H : public edm::global::EDAnalyzer<> { public: explicit UnitTestClient_H(edm::ParameterSet const&) {} void analyze(edm::StreamID, edm::Event const&, edm::EventSetup const&) const override; }; void UnitTestClient_H::analyze(edm::StreamID, edm::Event const&, edm::EventSetup const&) const { LogTrace("cat_A") << "LogTrace was used to send this mess" << "age"; LogDebug("cat_B") << "LogDebug was used to send this other message"; IfLogTrace(nonexistent, "cat_A") << "IfLogTrace was used to send this message"; // check that these compile with non-existent variable as the condition IfLogTrace(nonexistent, "cat_A") << "IfLogTrace was used to not send this message"; IfLogDebug(nonexistent, "cat_B") << "IfLogDebug was used to send this other message"; IfLogDebug(nonexistent, "cat_B") << "IfLogDebug was used to not send other this message"; edm::LogVerbatim("cat_A") << "LogVerbatim was us" << "ed to send this message"; edm::LogInfo("cat_B") << "LogInfo was used to send this other message"; } } // namespace edmtest using edmtest::UnitTestClient_H; DEFINE_FWK_MODULE(UnitTestClient_H);