CMS 3D CMS Logo

EmbeddingBeamSpotOnlineProducer.cc
Go to the documentation of this file.
1 
4 
6 
7 using namespace edm;
8 
10  beamSpotInput_ = iconf.getParameter<edm::InputTag>("src");
11  consumes<reco::BeamSpot>(beamSpotInput_);
12  produces<reco::BeamSpot>();
13 }
14 
16 
18  // copy beam spot from input data into HLT simulation sequence
20  iEvent.getByLabel(beamSpotInput_, beamSpotH);
21  auto result = std::make_unique<reco::BeamSpot>();
22  *result = *beamSpotH;
23  iEvent.put(std::move(result));
24 }
25 
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
produce a beam spot class
int iEvent
Definition: GenABIO.cc:224
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
EmbeddingBeamSpotOnlineProducer(const edm::ParameterSet &iConf)
constructor
HLT enums.
def move(src, dest)
Definition: eostools.py:511