Main Page
Namespaces
Classes
Package Documentation
Geometry
MuonNumbering
plugins
DDTestMuonNumbering.cc
Go to the documentation of this file.
1
#include "
FWCore/Framework/interface/one/EDAnalyzer.h
"
2
#include "
FWCore/Framework/interface/MakerMacros.h
"
3
#include "
FWCore/Framework/interface/ESTransientHandle.h
"
4
#include "
FWCore/Framework/interface/EventSetup.h
"
5
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
6
#include "
Geometry/Records/interface/MuonNumberingRecord.h
"
7
#include "
Geometry/MuonNumbering/interface/DD4hep_MuonNumbering.h
"
8
9
class
DDTestMuonNumbering
:
public
edm::one::EDAnalyzer
<> {
10
public
:
11
explicit
DDTestMuonNumbering
(
const
edm::ParameterSet
&) {}
12
13
void
beginJob
()
override
{}
14
void
analyze
(
edm::Event
const
&
iEvent
,
edm::EventSetup
const
&)
override
;
15
void
endJob
()
override
{}
16
};
17
18
void
DDTestMuonNumbering::analyze
(
const
edm::Event
&,
const
edm::EventSetup
& iEventSetup) {
19
edm::LogVerbatim
(
"Geometry"
) <<
"DDTestMuonNumbering::analyze"
;
20
edm::ESTransientHandle<cms::MuonNumbering>
numbering;
21
iEventSetup.
get
<
MuonNumberingRecord
>().
get
(numbering);
22
23
edm::LogVerbatim
(
"Geometry"
) <<
"MuonNumbering size: "
<< numbering->
values
().size();
24
edm::LogVerbatim
(
"Geometry"
).
log
([&numbering](
auto
&
log
) {
25
for
(
const
auto
&
i
: numbering->
values
()) {
26
log
<<
" "
<<
i
.first <<
" = "
<<
i
.second;
27
log
<<
'\n'
;
28
}
29
});
30
}
31
32
DEFINE_FWK_MODULE
(
DDTestMuonNumbering
);
DDTestMuonNumbering::endJob
void endJob() override
Definition:
DDTestMuonNumbering.cc:15
MessageLogger.h
mps_fire.i
i
Definition:
mps_fire.py:341
MakerMacros.h
EventSetup.h
MuonNumberingRecord
Definition:
MuonNumberingRecord.h:30
DDTestMuonNumbering::analyze
void analyze(edm::Event const &iEvent, edm::EventSetup const &) override
Definition:
DDTestMuonNumbering.cc:18
DD4hep_MuonNumbering.h
iEvent
int iEvent
Definition:
GenABIO.cc:224
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
edm::LogVerbatim::log
LogVerbatim & log(F &&iF)
Definition:
MessageLogger.h:327
DDTestMuonNumbering::beginJob
void beginJob() override
Definition:
DDTestMuonNumbering.cc:13
edm::EventSetup
Definition:
EventSetup.h:57
edm::LogVerbatim
Definition:
MessageLogger.h:297
MuonNumberingRecord.h
DDTestMuonNumbering::DDTestMuonNumbering
DDTestMuonNumbering(const edm::ParameterSet &)
Definition:
DDTestMuonNumbering.cc:11
EDAnalyzer.h
cms::MuonNumbering::values
const MuonConstants & values() const
Definition:
DD4hep_MuonNumbering.h:42
DDTestMuonNumbering
Definition:
DDTestMuonNumbering.cc:9
ESTransientHandle.h
edm::EventSetup::get
T get() const
Definition:
EventSetup.h:73
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::ESTransientHandle
Definition:
ESTransientHandle.h:41
dqm-mbProfile.log
log
Definition:
dqm-mbProfile.py:17
edm::Event
Definition:
Event.h:72
edm::one::EDAnalyzer
Definition:
EDAnalyzer.h:30
Generated for CMSSW Reference Manual by
1.8.11