File indexing completed on 2024-04-06 12:22:27
0001 #include <iomanip>
0002 #include <iostream>
0003
0004 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0005
0006 #include "FWCore/Framework/interface/Event.h"
0007 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0008
0009 #include "FWCore/Framework/interface/EventSetup.h"
0010 #include "FWCore/Framework/interface/ESHandle.h"
0011
0012
0013 #include "CondFormats/DataRecord/interface/L1TMuonEndCapParamsRcd.h"
0014
0015 #include "CondFormats/L1TObjects/interface/L1TMuonEndCapParams.h"
0016 #include "FWCore/ServiceRegistry/interface/Service.h"
0017 #include "CondCore/DBOutputService/interface/PoolDBOutputService.h"
0018 #include "CondCore/CondDB/interface/Session.h"
0019
0020 #include <iostream>
0021 using namespace std;
0022
0023 class L1TMuonEndCapParamsViewer : public edm::one::EDAnalyzer<> {
0024 public:
0025 void analyze(const edm::Event&, const edm::EventSetup&) override;
0026
0027 explicit L1TMuonEndCapParamsViewer(const edm::ParameterSet&) : token_{esConsumes()} {}
0028
0029 private:
0030 edm::ESGetToken<L1TMuonEndCapParams, L1TMuonEndCapParamsRcd> token_;
0031 };
0032
0033 void L1TMuonEndCapParamsViewer::analyze(const edm::Event& iEvent, const edm::EventSetup& evSetup) {
0034 L1TMuonEndCapParams const& ptr1 = evSetup.getData(token_);
0035
0036 cout << "L1TMuonEndCapParams: " << endl;
0037 cout << " PtAssignVersion_ = " << ptr1.PtAssignVersion_ << endl;
0038 cout << " firmwareVersion_ = " << ptr1.firmwareVersion_ << endl;
0039 cout << " PhiMatchWindowSt1_ = " << ptr1.PhiMatchWindowSt1_ << endl;
0040 cout << " PhiMatchWindowSt2_ = " << ptr1.PhiMatchWindowSt2_ << endl;
0041 cout << " PhiMatchWindowSt3_ = " << ptr1.PhiMatchWindowSt3_ << endl;
0042 cout << " PhiMatchWindowSt4_ = " << ptr1.PhiMatchWindowSt4_ << endl;
0043
0044
0045
0046
0047
0048
0049
0050
0051 }
0052
0053 #include "FWCore/PluginManager/interface/ModuleDef.h"
0054 #include "FWCore/Framework/interface/MakerMacros.h"
0055 #include "FWCore/Framework/interface/ModuleFactory.h"
0056
0057 DEFINE_FWK_MODULE(L1TMuonEndCapParamsViewer);