Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:05:15

0001 // system includes
0002 #include <iostream>
0003 #include <sstream>
0004 
0005 // user includes
0006 #include "DataFormats/SiStripCommon/interface/SiStripConstants.h"
0007 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0008 #include "FWCore/Framework/interface/Event.h"
0009 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0010 
0011 /**
0012    @class test_Template 
0013    @author R.Bainbridge
0014    @brief Simple class that tests Template.
0015 */
0016 class test_Template : public edm::one::EDAnalyzer<> {
0017 public:
0018   test_Template(const edm::ParameterSet&);
0019   ~test_Template();
0020 
0021   void beginJob();
0022   void analyze(const edm::Event&, const edm::EventSetup&);
0023 
0024 private:
0025 };
0026 
0027 using namespace sistrip;
0028 
0029 // -----------------------------------------------------------------------------
0030 //
0031 test_Template::test_Template(const edm::ParameterSet& pset) {
0032   LogTrace(mlTest_) << "[test_Template::" << __func__ << "]"
0033                     << " Constructing object...";
0034 }
0035 
0036 // -----------------------------------------------------------------------------
0037 //
0038 test_Template::~test_Template() {
0039   LogTrace(mlTest_) << "[test_Template::" << __func__ << "]"
0040                     << " Destructing object...";
0041 }
0042 
0043 // -----------------------------------------------------------------------------
0044 //
0045 void test_Template::beginJob() {
0046   std::stringstream ss;
0047   ss << "[test_Template::" << __func__ << "]"
0048      << " Initializing...";
0049   LogTrace(mlTest_) << ss.str();
0050 }
0051 
0052 // -----------------------------------------------------------------------------
0053 //
0054 void test_Template::analyze(const edm::Event& event, const edm::EventSetup& setup) {
0055   LogTrace(mlTest_) << "[test_Template::" << __func__ << "]"
0056                     << " Analyzing run/event " << event.id().run() << "/" << event.id().event();
0057 }
0058 
0059 #include "FWCore/Framework/interface/MakerMacros.h"
0060 DEFINE_FWK_MODULE(test_Template);