CMS 3D CMS Logo

DDTestMuonNumbering.cc
Go to the documentation of this file.
8 
10 public:
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";
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 
EDAnalyzer.h
mps_fire.i
i
Definition: mps_fire.py:428
ESTransientHandle.h
MessageLogger.h
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
DDTestMuonNumbering::beginJob
void beginJob() override
Definition: DDTestMuonNumbering.cc:13
MuonNumberingRecord.h
MakerMacros.h
edm::EventSetup::get
T get() const
Definition: EventSetup.h:87
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
cms::MuonNumbering::values
const MuonConstants & values() const
Definition: DD4hep_MuonNumbering.h:42
edm::ParameterSet
Definition: ParameterSet.h:47
DDTestMuonNumbering::endJob
void endJob() override
Definition: DDTestMuonNumbering.cc:15
iEvent
int iEvent
Definition: GenABIO.cc:224
DDTestMuonNumbering::DDTestMuonNumbering
DDTestMuonNumbering(const edm::ParameterSet &)
Definition: DDTestMuonNumbering.cc:11
edm::EventSetup
Definition: EventSetup.h:58
get
#define get
DD4hep_MuonNumbering.h
edm::ESTransientHandle
Definition: ESTransientHandle.h:41
DDTestMuonNumbering::analyze
void analyze(edm::Event const &iEvent, edm::EventSetup const &) override
Definition: DDTestMuonNumbering.cc:18
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
EventSetup.h
dqm-mbProfile.log
log
Definition: dqm-mbProfile.py:17
DDTestMuonNumbering
Definition: DDTestMuonNumbering.cc:9
MuonNumberingRecord
Definition: MuonNumberingRecord.h:30
edm::Event
Definition: Event.h:73