Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:48

0001 #include "FWCore/Framework/interface/Frameworkfwd.h"
0002 #include "FWCore/Framework/interface/global/EDAnalyzer.h"
0003 #include "FWCore/Framework/interface/MakerMacros.h"
0004 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0005 #include "FWCore/Utilities/interface/StreamID.h"
0006 
0007 namespace edmtest {
0008 
0009   class UnitTestClient_D : public edm::global::EDAnalyzer<> {
0010   public:
0011     explicit UnitTestClient_D(edm::ParameterSet const&) {}
0012 
0013     void analyze(edm::StreamID, edm::Event const&, edm::EventSetup const&) const override;
0014   };
0015 
0016   void UnitTestClient_D::analyze(edm::StreamID, edm::Event const&, edm::EventSetup const&) const {
0017     edm::LogWarning("cat_A") << "This message should not appear in "
0018                              << "the framework job report";
0019     edm::LogWarning("FwkTest") << "<Message>This message should appear in "
0020                                << "the framework job report</Message>";
0021     edm::LogWarning("special") << "This message should appear in "
0022                                << "restrict but the others should not";
0023   }
0024 }  // namespace edmtest
0025 
0026 using edmtest::UnitTestClient_D;
0027 DEFINE_FWK_MODULE(UnitTestClient_D);