33 #include "CLHEP/Units/GlobalSystemOfUnits.h" 34 #include "CLHEP/Units/GlobalPhysicalConstants.h" 81 produces<edm::HepMCProduct>();
84 consumes<edm::HepMCProduct>(sourceLabel);
85 vertexPositionLabel =
edm::InputTag(
"externalLHEProducer",
"vertexPosition");
86 consumes<math::XYZTLorentzVectorD>(vertexPositionLabel);
108 edm::LogInfo(
"TauEmbedding")<<
"beam handle\n"<<(*beamhandle);
120 iEvent.
getByLabel(sourceLabel, InputGenEvent);
122 std::unique_ptr<edm::HepMCProduct> CorrectedGenEvent(
new edm::HepMCProduct(genevent));
126 iEvent.
getByLabel(vertexPositionLabel, vertex_position);
127 HepMC::FourVector vertex_shift(vertex_position.
product()->x()*cm, vertex_position.
product()->y()*cm, vertex_position.
product()->z()*cm);
130 CorrectedGenEvent->applyVtxGen(&vertex_shift);
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void beginRun(const edm::Run &, const edm::EventSetup &iEventSetup) override
edm::InputTag sourceLabel
#define DEFINE_FWK_MODULE(type)
void addDefault(ParameterSetDescription const &psetDescription)
void produce(edm::Event &, const edm::EventSetup &) override
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const HepMC::GenEvent * GetEvent() const
T const * product() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
~EmbeddingVertexCorrector() override
edm::InputTag vertexPositionLabel
EmbeddingVertexCorrector(const edm::ParameterSet &)