The Gaudi Framework  v29r0 (ff2e7097)
FindByMassRange.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_FINDBYMASSRANGE_H
2 #define GAUDIKERNEL_FINDBYMASSRANGE_H
3 
4 // Include files
7 
25 {
26 
27 public:
29  FindByMassRange( double low, double high ) : m_low( low ), m_high( high ) {}
30 
34  bool operator()( const ParticleProperty* pp ) const { return pp && pp->mass() >= m_low && pp->mass() <= m_high; }
35 
36 private:
38  double m_low;
39  double m_high;
40 };
41 
42 #endif // GAUDIKERNEL_FINDBYMASSRANGE_H
A trivial class to hold information about a single particle properties.
bool operator()(const ParticleProperty *pp) const
This routine check to see if the mass of a particle lies within the given mass range and returns true...
FindByMassRange(double low, double high)
Constructor - sets the mass range in Gev.
double m_low
Low and high mass range (GeV)
#define GAUDI_API
Definition: Kernel.h:110
double mass() const
Get the particle mass.
IParticlePropertySvc::value_type is a typedef that defines the internal service storage type that is ...