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_X : public edm::global::EDAnalyzer<> {
0010   public:
0011     explicit UnitTestClient_X(edm::ParameterSet const&) {}
0012 
0013     void analyze(edm::StreamID, edm::Event const&, edm::EventSetup const&) const override;
0014   };
0015 
0016   void UnitTestClient_X::analyze(edm::StreamID, edm::Event const&, edm::EventSetup const&) const {
0017     edm::LogWarning("cat_A") << "LogWarning was used to send this message";
0018     edm::LogInfo("cat_A") << "LogInfo was used to send this message";
0019     edm::LogInfo("cat_B") << "LogInfo was used to send this message";
0020     edm::LogWarning("cat_B") << "LogWarning was used to send this message";
0021   }
0022 
0023 }  // namespace edmtest
0024 
0025 using edmtest::UnitTestClient_X;
0026 DEFINE_FWK_MODULE(UnitTestClient_X);