Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:25

0001 // -*- C++ -*-
0002 //
0003 // Package:    RCTConfigTester
0004 // Class:      RCTConfigTester
0005 //
0006 /**\class RCTConfigTester RCTConfigTester.h L1TriggerConfig/RCTConfigTester/src/RCTConfigTester.cc
0007 
0008  Description: <one line class summary>
0009 
0010  Implementation:
0011      <Notes on implementation>
0012 */
0013 //
0014 // Original Author:  Sridhara Dasu
0015 //         Created:  Mon Jul 16 23:48:35 CEST 2007
0016 //
0017 //
0018 // user include files
0019 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0020 #include "FWCore/Framework/interface/Event.h"
0021 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0022 
0023 #include "FWCore/Framework/interface/EventSetup.h"
0024 #include "FWCore/Framework/interface/ESHandle.h"
0025 
0026 #include "CondFormats/DataRecord/interface/L1RCTParametersRcd.h"
0027 #include "CondFormats/L1TObjects/interface/L1RCTParameters.h"
0028 
0029 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0030 #include "FWCore/MessageLogger/interface/MessageDrop.h"
0031 
0032 #include "FWCore/PluginManager/interface/ModuleDef.h"
0033 #include "FWCore/Framework/interface/MakerMacros.h"
0034 
0035 #include <iostream>
0036 
0037 #include <iostream>
0038 
0039 using std::cout;
0040 using std::endl;
0041 //
0042 // class declaration
0043 //
0044 
0045 class L1RCTParametersTester : public edm::one::EDAnalyzer<> {
0046 public:
0047   explicit L1RCTParametersTester(const edm::ParameterSet&) : token_(esConsumes()) {}
0048   void analyze(const edm::Event&, const edm::EventSetup&) override;
0049 
0050 private:
0051   edm::ESGetToken<L1RCTParameters, L1RCTParametersRcd> token_;
0052 };
0053 
0054 void L1RCTParametersTester::analyze(const edm::Event& iEvent, const edm::EventSetup& evSetup) {
0055   evSetup.getData(token_).print(std::cout);
0056 }
0057 
0058 DEFINE_FWK_MODULE(L1RCTParametersTester);