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
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
HGCalTBCheckGunPostion(const edm::ParameterSet &)
void beginStream(edm::StreamID) override
void addDefault(ParameterSetDescription const &psetDescription)
~HGCalTBCheckGunPostion() override
Abs< T >::type abs(const T &t)
edm::EDGetTokenT< edm::HepMCProduct > hepMCproductLabel_
void beginRun(edm::Run const &, edm::EventSetup const &) override
void endRun(edm::Run const &, edm::EventSetup const &) override
const HepMC::GenEvent * GetEvent() const
void endStream() override
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
bool filter(edm::Event &, const edm::EventSetup &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)