102 std::cout <<
"isHandle valid: " << isHandle valid << std::endl;
107 const HepMC::GenEvent* Evt = hepmc->
GetEvent();
111 std::cout <<
"vertex " << Evt->vertices_size() << std::endl;
113 for (HepMC::GenEvent::vertex_const_iterator
p = Evt->vertices_begin();
114 p != Evt->vertices_end(); ++
p) {
115 x = (*p)->position().x()/10.;
116 y = (*p)->position().y()/10.;
118 z = (*p)->position().z()/10.;
120 std::cout <<
" x: " << (*p)->position().x() <<
":" <<
x 121 <<
" y: " << (*p)->position().y() <<
":" << y
122 <<
" z: " << (*p)->position().z() <<
":" <<
z 136 flag = cond1 || cond2 || cond3 || cond4 || cond5 || cond6;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual void beginRun(edm::Run const &, edm::EventSetup const &) override
#define DEFINE_FWK_MODULE(type)
HGCalTBCheckGunPostion(const edm::ParameterSet &)
virtual void beginStream(edm::StreamID) override
void addDefault(ParameterSetDescription const &psetDescription)
Abs< T >::type abs(const T &t)
edm::EDGetTokenT< edm::HepMCProduct > hepMCproductLabel_
virtual void endRun(edm::Run const &, edm::EventSetup const &) override
const HepMC::GenEvent * GetEvent() const
virtual void endStream() override
~HGCalTBCheckGunPostion()
virtual bool filter(edm::Event &, const edm::EventSetup &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override