CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
DDTestMuonNumbering.cc
Go to the documentation of this file.
8 
10 public:
12 
13  void analyze(edm::Event const& iEvent, edm::EventSetup const&) override;
14 
15 private:
17 };
18 
19 void DDTestMuonNumbering::analyze(const edm::Event&, const edm::EventSetup& iEventSetup) {
20  edm::LogVerbatim("Geometry") << "DDTestMuonNumbering::analyze";
21  auto numbering = iEventSetup.getTransientHandle(numberingToken_);
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 
Log< level::Info, true > LogVerbatim
void analyze(edm::Event const &iEvent, edm::EventSetup const &) override
const edm::ESGetToken< cms::MuonNumbering, MuonNumberingRecord > numberingToken_
int iEvent
Definition: GenABIO.cc:224
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
DDTestMuonNumbering(const edm::ParameterSet &)
ESTransientHandle< T > getTransientHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:141