117 for (HepMC::GenEvent::vertex_const_iterator
p = Evt->vertices_begin();
118 p != Evt->vertices_end(); ++
p) {
119 x = (*p)->position().x() / 10.;
120 y = (*p)->position().y() / 10.;
122 z = (*p)->position().z() / 10.;
125 <<
" x: " << (*p)->position().x() <<
":" <<
x 126 <<
" y: " << (*p)->position().y() <<
":" << y
127 <<
" z: " << (*p)->position().z() <<
":" <<
z;
135 bool cond2 = ((y +
hexside_) >= -
x /
sqrt(3)) && (y < 0 &&
x < 0);
140 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
HGCalTBCheckGunPostion(const edm::ParameterSet &)
void beginStream(edm::StreamID) override
#define DEFINE_FWK_MODULE(type)
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)