|
ATLAS Offline Software
|
Go to the documentation of this file.
4 #ifndef GENERATORFILTERSXAODPARENTCHILDFILTER_H
5 #define GENERATORFILTERSXAODPARENTCHILDFILTER_H
25 Gaudi::Property<double>
m_PtMinParent{
this,
"PtMinParent",0.,
"Min parent Pt"};
26 Gaudi::Property<double>
m_PtMaxParent{
this,
"PtMaxParent",1e9,
"Max parent Pt"};
27 Gaudi::Property<double>
m_MassMinParent{
this,
"MassMinParent",-1e9,
"Min parent mass"};
28 Gaudi::Property<double>
m_MassMaxParent{
this,
"MassMaxParent",1e9,
"Max parent mass"};
29 Gaudi::Property<std::vector<int>>
m_PDGParent{
this,
"PDGParent",0,
"PDG ID of parents"};
30 Gaudi::Property<double>
m_EtaRangeParent{
this,
"EtaRangeParent",10.0,
"Parent eta range"};
31 Gaudi::Property<std::vector<int>>
m_PDGChild{
this,
"PDGChild",0,
"PDG ID of child"};
32 Gaudi::Property<double>
m_PtMinChild{
this,
"PtMinChild",0.,
"Min child Pt"};
33 Gaudi::Property<double>
m_EtaRangeChild{
this,
"EtaRangeChild",10.,
"Child eta range"};
40 if (
e ==
pz)
return 9999.;
41 if (
e == -
pz)
return -9999.;
42 double rapidity = 0.5 *
log((
e +
pz) / (
e -
pz));
double getRapidity(HepMC::GenParticle *&p)
calculate the rapidity of a particle
virtual StatusCode filterInitialize()
Gaudi::Property< double > m_PtMinChild
Allows the user to search for any given decay Parent -> Child + X.
Gaudi::Property< double > m_MassMinParent
Base class for event generator filtering modules.
Gaudi::Property< double > m_PtMinParent
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode filterEvent()
Gaudi::Property< double > m_PtMaxParent
Gaudi::Property< std::vector< int > > m_PDGParent
Gaudi::Property< std::vector< int > > m_PDGChild
Gaudi::Property< double > m_EtaRangeParent
xAODParentChildFilter(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< double > m_EtaRangeChild
Gaudi::Property< double > m_MassMaxParent