Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-01-13 00:12:18

0001 #include "FWCore/MessageService/test/UnitTestClient_L.h"
0002 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0003 #include "FWCore/Framework/interface/Event.h"
0004 #include "DataFormats/Common/interface/Handle.h"
0005 #include "FWCore/Framework/interface/MakerMacros.h"
0006 #include "FWCore/Framework/interface/Frameworkfwd.h"
0007 
0008 #include <iostream>
0009 #include <string>
0010 
0011 namespace edmtest {
0012 
0013   void UnitTestClient_L::analyze(edm::Event const& /*unused*/
0014                                  ,
0015                                  edm::EventSetup const& /*unused*/
0016   ) {
0017     for (int i = 0; i < 10000000; ++i) {
0018     }
0019     edm::LogInfo("cat") << "Event " << e.id() << "complete";
0020   }  // MessageLoggerClient::analyze()
0021 
0022   void UnitTestClient_L1::analyze(edm::Event const& /*unused*/
0023                                   ,
0024                                   edm::EventSetup const& /*unused*/
0025   ) {
0026     for (int i = 0; i < 10000000; ++i) {
0027       LogDebug("dog") << "I am perhaps creating a long string here";
0028     }
0029     edm::LogInfo("cat") << "Event " << e.id() << "complete";
0030   }  // MessageLoggerClient::analyze()
0031 
0032 }  // namespace edmtest
0033 
0034 using edmtest::UnitTestClient_L;
0035 using edmtest::UnitTestClient_L1;
0036 DEFINE_FWK_MODULE(UnitTestClient_L);
0037 DEFINE_FWK_MODULE(UnitTestClient_L1);