|
ATLAS Offline Software
|
Go to the documentation of this file.
4 #ifndef GENERATORFILTERS_PARENTCHILDFILTER_H
5 #define GENERATORFILTERS_PARENTCHILDFILTER_H
40 if (
e ==
pz)
return 9999.;
41 if (
e == -
pz)
return -9999.;
42 double rapidity = 0.5 *
log((
e +
pz) / (
e -
pz));
double getRapidity(const HepMC::GenParticle *p) const
calculate the rapidity of a particle
std::vector< int > m_PDGParent
std::vector< int > m_PDGChild
virtual StatusCode filterEvent()
Base class for event generator filtering modules.
::StatusCode StatusCode
StatusCode definition for legacy code.
Allows the user to search for any given decay Parent -> Child + X.
double m_RapidityRangeParent
virtual StatusCode filterInitialize()
ParentChildFilter(const std::string &name, ISvcLocator *pSvcLocator)
double m_RapidityMinParent