Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:28:46

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 #include "FWCore/Framework/interface/EDAnalyzer.h"
0008 
0009 #include <iostream>
0010 #include <string>
0011 
0012 
0013 namespace edmtest
0014 {
0015 
0016 
0017 void UnitTestClient_L::analyze( edm::Event      const & /*unused*/
0018                            , edm::EventSetup const & /*unused*/
0019                               )
0020 {
0021   for (int i=0; i<10000000; ++i) {
0022   }
0023   edm::LogInfo     ("cat") << "Event " << e.id() << "complete";
0024 }  // MessageLoggerClient::analyze()
0025 
0026 void UnitTestClient_L1::analyze( edm::Event      const & /*unused*/
0027                            , edm::EventSetup const & /*unused*/
0028                               )
0029 {
0030   for (int i=0; i<10000000; ++i) {
0031        LogDebug    ("dog") << "I am perhaps creating a long string here";
0032   }
0033   edm::LogInfo     ("cat") << "Event " << e.id() << "complete";
0034 }  // MessageLoggerClient::analyze()
0035 
0036 }  // namespace edmtest
0037 
0038 
0039 using edmtest::UnitTestClient_L;
0040 using edmtest::UnitTestClient_L1;
0041 DEFINE_FWK_MODULE(UnitTestClient_L);
0042 DEFINE_FWK_MODULE(UnitTestClient_L1);