Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:48

0001 // user file includes
0002 #include "CalibTracker/SiStripCommon/interface/SiStripFedIdListReader.h"
0003 #include "FWCore/Framework/interface/global/EDAnalyzer.h"
0004 #include "FWCore/Framework/interface/Event.h"
0005 #include "FWCore/Framework/interface/EventSetup.h"
0006 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0007 #include "FWCore/ParameterSet/interface/FileInPath.h"
0008 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0009 
0010 // system includes
0011 #include <string>
0012 
0013 /**
0014    @class testSiStripFedIdListReader
0015    @author R.Bainbridge
0016 */
0017 
0018 class testSiStripFedIdListReader : public edm::global::EDAnalyzer<> {
0019 public:
0020   explicit testSiStripFedIdListReader(const edm::ParameterSet &);
0021   ~testSiStripFedIdListReader() = default;
0022   void analyze(edm::StreamID, const edm::Event &, const edm::EventSetup &) const override;
0023 
0024 private:
0025   edm::FileInPath fileInPath_;
0026 };
0027 
0028 // -----------------------------------------------------------------------------
0029 //
0030 testSiStripFedIdListReader::testSiStripFedIdListReader(const edm::ParameterSet &pset)
0031     : fileInPath_(pset.getParameter<edm::FileInPath>("file")) {
0032   edm::LogVerbatim("Unknown") << "[testSiStripFedIdListReader::" << __func__ << "]";
0033 }
0034 
0035 // -----------------------------------------------------------------------------
0036 //
0037 void testSiStripFedIdListReader::analyze(edm::StreamID, const edm::Event &, const edm::EventSetup &) const {
0038   SiStripFedIdListReader reader(fileInPath_.fullPath());
0039   edm::LogVerbatim("Unknown") << "[testSiStripFedIdListReader::" << __func__ << "]" << reader;
0040 }
0041 
0042 #include "FWCore/Framework/interface/MakerMacros.h"
0043 DEFINE_FWK_MODULE(testSiStripFedIdListReader);