CMS 3D CMS Logo

L1TMuonEndCapParamsViewer.cc
Go to the documentation of this file.
1 #include <iomanip>
2 #include <iostream>
3 
5 
8 
11 
14 //#include "CondFormats/DataRecord/interface/L1TMuonEndCapParamsRcd.h"
19 
20 #include <iostream>
21 using namespace std;
22 
24 public:
25  void analyze(const edm::Event&, const edm::EventSetup&) override;
26 
27  explicit L1TMuonEndCapParamsViewer(const edm::ParameterSet&) : edm::EDAnalyzer() {}
28  ~L1TMuonEndCapParamsViewer(void) override {}
29 };
30 
33  evSetup.get<L1TMuonEndCapParamsRcd>().get(handle1);
34  // evSetup.get<L1TMuonEndCapParamsRcd>().get( handle1 ) ;
35  std::shared_ptr<L1TMuonEndCapParams> ptr1(new L1TMuonEndCapParams(*(handle1.product())));
36 
37  cout << "L1TMuonEndCapParams: " << endl;
38  cout << " PtAssignVersion_ = " << ptr1->PtAssignVersion_ << endl;
39  cout << " firmwareVersion_ = " << ptr1->firmwareVersion_ << endl;
40  cout << " PhiMatchWindowSt1_ = " << ptr1->PhiMatchWindowSt1_ << endl;
41  cout << " PhiMatchWindowSt2_ = " << ptr1->PhiMatchWindowSt2_ << endl;
42  cout << " PhiMatchWindowSt3_ = " << ptr1->PhiMatchWindowSt3_ << endl;
43  cout << " PhiMatchWindowSt4_ = " << ptr1->PhiMatchWindowSt4_ << endl;
44 
52 }
53 
57 
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
L1TMuonEndCapParamsViewer::L1TMuonEndCapParamsViewer
L1TMuonEndCapParamsViewer(const edm::ParameterSet &)
Definition: L1TMuonEndCapParamsViewer.cc:27
ESHandle.h
edm
HLT enums.
Definition: AlignableModifier.h:19
gather_cfg.cout
cout
Definition: gather_cfg.py:144
L1TMuonEndCapParamsViewer::~L1TMuonEndCapParamsViewer
~L1TMuonEndCapParamsViewer(void) override
Definition: L1TMuonEndCapParamsViewer.cc:28
L1TMuonEndCapParams.h
EDAnalyzer.h
edm::EDAnalyzer
Definition: EDAnalyzer.h:29
MakerMacros.h
PoolDBOutputService.h
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
Service.h
edm::ESHandle< L1TMuonEndCapParams >
L1TMuonEndCapParamsViewer
Definition: L1TMuonEndCapParamsViewer.cc:23
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
L1TMuonEndCapParamsRcd
Definition: L1TMuonEndCapParamsRcd.h:11
ModuleDef.h
iEvent
int iEvent
Definition: GenABIO.cc:224
L1TMuonEndCapParamsViewer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: L1TMuonEndCapParamsViewer.cc:31
analyze
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EventSetup
Definition: EventSetup.h:57
get
#define get
L1TMuonEndCapParams
Definition: L1TMuonEndCapParams.h:15
L1TMuonEndCapParamsRcd.h
ModuleFactory.h
std
Definition: JetResolutionObject.h:76
EventSetup.h
ParameterSet.h
edm::Event
Definition: Event.h:73
Session.h