![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
22 double sumx(0), sumy(0);
26 ATH_MSG_ERROR(
" For HEPMC3 releases xAOD filters should be used. Exiting with ERROR. ");
27 return StatusCode::FAILURE;
33 const HepMC::GenEvent* genEvt = (*itr);
34 for (
const auto& pitr: *genEvt) {
44 ATH_MSG_VERBOSE(
"Found noninteracting particle: ID = " << pitr->pdg_id() <<
" PX = " << pitr->momentum().px() <<
" PY = "<< pitr->momentum().py());
45 sumx += pitr->momentum().px();
46 sumy += pitr->momentum().py();
53 double met = std::hypot(sumx,sumy);
54 ATH_MSG_DEBUG(
"Totals for event: EX = " << sumx <<
", EY = "<< sumy <<
", ET = " <<
met);
56 return StatusCode::SUCCESS;
Const iterator class for DataVector/DataList.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
bool isNeutrino(const T &p)
APID: the fourth generation neutrinos are neutrinos.
#define ATH_MSG_VERBOSE(x)
virtual StatusCode filterEvent()
bool isGenStable(const T &p)
Determine if the particle is stable at the generator (not det-sim) level,.
Base class for event generator filtering modules.
::StatusCode StatusCode
StatusCode definition for legacy code.
bool isChargedNonShowering(const T &p)
Identify if the particle with given PDG ID would produce ID tracks but not shower in the detector if ...
bool fromWZorTau(const HepMC::ConstGenParticlePtr &part)
bool isInteracting(const T &p)
Identify if the particle with given PDG ID would not interact with the detector, i....
MissingEtFilter(const std::string &name, ISvcLocator *pSvcLocator)
bool m_useChargedNonShowering