18 edm::LogInfo(
"RecoVertex/BeamSpotProducer") <<
"Initializing Beam Spot producer "
22 m_beamToken = esConsumes<BeamSpotObjects, BeamSpotObjectsRcd>();
24 produces<reco::BeamSpot>();
37 auto result = std::make_unique<reco::BeamSpot>();
46 edm::LogInfo(
"RecoVertex/BeamSpotProducer") <<
"Reconstructing event number: " << iEvent.
id() <<
"\n";
55 for (
int i = 0;
i < 7; ++
i) {
56 for (
int j = 0;
j < 7; ++
j) {
63 apoint, spotDB->GetSigmaZ(), spotDB->Getdxdz(), spotDB->Getdydz(), spotDB->GetBeamWidthX(),
matrix);
64 aSpot.setBeamWidthY(spotDB->GetBeamWidthY());
65 aSpot.setEmittanceX(spotDB->GetEmittanceX());
66 aSpot.setEmittanceY(spotDB->GetEmittanceY());
67 aSpot.setbetaStar(spotDB->GetBetaStar());
math::Error< dimension >::type CovarianceMatrix
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
~BeamSpotProducer() override
destructor
#define DEFINE_FWK_MODULE(type)
math::XYZPoint Point
point in the space
edm::ESGetToken< BeamSpotObjects, BeamSpotObjectsRcd > m_beamToken
BeamSpotProducer(const edm::ParameterSet &iConf)
constructor
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
produce a beam spot class
Log< level::Info, false > LogInfo
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const