12 hepMCProductTag_(iConfig.getParameter<edm::
InputTag>(
"hepMCProductTag")) {
39 const HepMC::GenEvent * generated_event = evt->GetEvent();
40 HepMC::GenEvent::particle_const_iterator
p;
42 for (
p = generated_event->particles_begin();
p != generated_event->particles_end();
p++)
45 if((*p)->production_vertex()!=0&&(*p)->end_vertex()!=0)
47 float dist =
sqrt((((*p)->production_vertex())->
position().x()-((*p)->end_vertex())->
position().x())*(((*p)->production_vertex())->
position().x()-((*p)->end_vertex())->
position().x())+
48 (((*p)->production_vertex())->
position().y()-((*p)->end_vertex())->
position().y())*(((*p)->production_vertex())->
position().y()-((*p)->end_vertex())->
position().y()));
53 if((*p)->production_vertex()==0&&!(*p)->end_vertex()!=0)
T getUntrackedParameter(std::string const &, T const &) const
virtual bool filter(edm::Event &, const edm::EventSetup &)
edm::InputTag hepMCProductTag_
MCLongLivedParticles(const edm::ParameterSet &)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
static int position[264][3]