ATLAS Offline Software
GenParticleLifetimeFilter.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // GenParticleLifetimeFilter.h, (c) ATLAS Detector software
8 
9 #ifndef ISF_HEPMC_GENPARTICLELIFETIMEFILTER_H
10 #define ISF_HEPMC_GENPARTICLELIFETIMEFILTER_H 1
11 
12 // STL includes
13 #include <string>
14 
15 // FrameWork includes
17 
18 // ISF includes
20 
21 namespace ISF {
22 
27  class GenParticleLifetimeFilter : public extends<AthAlgTool, IGenParticleFilter> {
28 
29  public:
30  //** Constructor with parameters */
31  GenParticleLifetimeFilter( const std::string& t, const std::string& n, const IInterface* p );
32 
35 
37 #ifdef HEPMC3
38  bool pass(const HepMC::ConstGenParticlePtr& particle) const;
39 #else
40  bool pass(const HepMC::GenParticle& particle) const;
41 #endif
42 
43  private:
44  double m_minLifetime{0.000001}; //units of c*ns
45  };
46 
47 }
48 
49 
50 #endif //> !ISF_HEPMC_GENPARTICLELIFETIMEFILTER_H
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:76
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ISF::GenParticleLifetimeFilter
Definition: GenParticleLifetimeFilter.h:27
beamspotman.n
n
Definition: beamspotman.py:731
AthAlgTool.h
ISF::GenParticleLifetimeFilter::pass
bool pass(const HepMC::GenParticle &particle) const
does the given particle pass the filter?
Definition: GenParticleLifetimeFilter.cxx:35
ISF::GenParticleLifetimeFilter::GenParticleLifetimeFilter
GenParticleLifetimeFilter(const std::string &t, const std::string &n, const IInterface *p)
Constructor.
Definition: GenParticleLifetimeFilter.cxx:20
HepMC::ConstGenParticlePtr
const GenParticle * ConstGenParticlePtr
Definition: GenParticle.h:38
ISF
ISFParticleOrderedQueue.
Definition: PrimaryParticleInformation.h:13
IGenParticleFilter.h
ISF::GenParticleLifetimeFilter::m_minLifetime
double m_minLifetime
Definition: GenParticleLifetimeFilter.h:44
ISF::GenParticleLifetimeFilter::~GenParticleLifetimeFilter
~GenParticleLifetimeFilter()
Destructor.
Definition: GenParticleLifetimeFilter.h:34
GenParticle
@ GenParticle
Definition: TruthClasses.h:30