Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef EDM_ML_DEBUG
0002 #define EDM_ML_DEBUG
0003 #endif
0004 
0005 #include "FWCore/Framework/interface/Frameworkfwd.h"
0006 #include "FWCore/Framework/interface/global/EDAnalyzer.h"
0007 #include "FWCore/Framework/interface/MakerMacros.h"
0008 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0009 #include "FWCore/Utilities/interface/StreamID.h"
0010 
0011 namespace edmtest {
0012 
0013   class UnitTestClient_Hd : public edm::global::EDAnalyzer<> {
0014   public:
0015     explicit UnitTestClient_Hd(edm::ParameterSet const&) {}
0016 
0017     void analyze(edm::StreamID, edm::Event const&, edm::EventSetup const&) const override;
0018   };
0019 
0020   void UnitTestClient_Hd::analyze(edm::StreamID, edm::Event const&, edm::EventSetup const&) const {
0021     LogTrace("cat_A") << "LogTrace was used to send this mess"
0022                       << "age";
0023     LogDebug("cat_B") << "LogDebug was used to send this other message";
0024     IfLogTrace(true, "cat_A") << "IfLogTrace was used to send this message";
0025     IfLogTrace(false, "cat_A") << "IfLogTrace was used to not send this message";
0026     IfLogDebug(true, "cat_B") << "IfLogDebug was used to send this other message";
0027     IfLogDebug(false, "cat_B") << "IfLogDebug was used to not send other this message";
0028     edm::LogVerbatim("cat_A") << "LogVerbatim was us"
0029                               << "ed to send this message";
0030     edm::LogInfo("cat_B") << "LogInfo was used to send this other message";
0031   }
0032 
0033 }  // namespace edmtest
0034 
0035 using edmtest::UnitTestClient_Hd;
0036 DEFINE_FWK_MODULE(UnitTestClient_Hd);