CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
OnlineBeamSpotFromDB.cc
Go to the documentation of this file.
1 
29 #include <string>
30 
32 public:
36 
37 private:
38  void analyze(const edm::Event&, const edm::EventSetup&) override;
39 };
40 
43 
45  auto const& mybeamspot = iSetup.getData(bsToken_);
46 
47  edm::LogInfo("Run numver: ") << iEvent.id().run();
48  edm::LogInfo("beamspot from HLT ") << mybeamspot;
49 }
52  desc.addWithDefaultLabel(dsc);
53 }
54 
55 //define this as a plug-in
RunNumber_t run() const
Definition: EventID.h:38
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
bool getData(T &iHolder) const
Definition: EventSetup.h:122
int iEvent
Definition: GenABIO.cc:224
OnlineBeamSpotFromDB(const edm::ParameterSet &iConfig)
void analyze(const edm::Event &, const edm::EventSetup &) override
Log< level::Info, false > LogInfo
edm::EventID id() const
Definition: EventBase.h:59
edm::ESGetToken< BeamSpotObjects, BeamSpotTransientObjectsRcd > bsToken_
static void fillDescriptions(edm::ConfigurationDescriptions &desc)
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283