CMS 3D CMS Logo

OnlineBeamSpotFromDB.cc
Go to the documentation of this file.
1 
29 #include <string>
30 
32 public:
33  explicit OnlineBeamSpotFromDB(const edm::ParameterSet& iConfig);
36 
37 private:
38  void analyze(const edm::Event&, const edm::EventSetup&) override;
39 };
40 
42  : bsToken_(esConsumes<BeamSpotObjects, BeamSpotTransientObjectsRcd>()) {}
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
ConfigurationDescriptions.h
OnlineBeamSpotFromDB::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &desc)
Definition: OnlineBeamSpotFromDB.cc:50
OnlineBeamSpotFromDB::bsToken_
edm::ESGetToken< BeamSpotObjects, BeamSpotTransientObjectsRcd > bsToken_
Definition: OnlineBeamSpotFromDB.cc:35
EDAnalyzer.h
MessageLogger.h
ESHandle.h
BeamSpotTransientObjectsRcd
Definition: BeamSpotTransientObjectsRcd.h:27
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
OnlineBeamSpotFromDB
Definition: OnlineBeamSpotFromDB.cc:31
OnlineBeamSpotFromDB::OnlineBeamSpotFromDB
OnlineBeamSpotFromDB(const edm::ParameterSet &iConfig)
Definition: OnlineBeamSpotFromDB.cc:41
MakerMacros.h
BeamSpotObjects.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
BeamSpot.h
Service.h
ParameterSetDescription.h
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
BeamSpotTransientObjectsRcd.h
iEvent
int iEvent
Definition: GenABIO.cc:224
BeamSpotObjects
Definition: BeamSpotObjects.h:20
edm::EventSetup
Definition: EventSetup.h:57
OnlineBeamSpotFromDB::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: OnlineBeamSpotFromDB.cc:44
edm::ESGetToken< BeamSpotObjects, BeamSpotTransientObjectsRcd >
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:120
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
Frameworkfwd.h
EventSetup.h
BeamSpotOnlineObjects.h
ConsumesCollector.h
ParameterSet.h
edm::Event
Definition: Event.h:73
IOVSyncValue.h