113 for (HepMC::GenEvent::vertex_const_iterator
p = Evt->vertices_begin();
p != Evt->vertices_end(); ++
p) {
114 x = (*p)->position().x() / 10.;
115 y = (*p)->position().y() / 10.;
117 z = (*p)->position().z() / 10.;
119 edm::LogVerbatim(
"HGCSim") <<
" x: " << (*p)->position().x() <<
":" <<
x <<
" y: " << (*p)->position().y()
120 <<
":" << y <<
" z: " << (*p)->position().z() <<
":" <<
z;
128 bool cond2 = ((y +
hexside_) >= -
x /
sqrt(3)) && (y < 0 &&
x < 0);
133 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)