| The Gaudi Framework v29r0 (ff2e7097)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

FindByMassRange.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_FINDBYMASSRANGE_H
2 #define GAUDIKERNEL_FINDBYMASSRANGE_H
3
4 // Include files
5 #include "GaudiKernel/IParticlePropertySvc.h"
6 #include "GaudiKernel/ParticleProperty.h"
7
24 class GAUDI_API FindByMassRange
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
FindByMassRange::m_high
double m_high
Definition: FindByMassRange.h:39
IParticlePropertySvc.h
ParticleProperty
A trivial class to hold information about a single particle properties.
Definition: ParticleProperty.h:18
ParticleProperty.h
FindByMassRange::operator()
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...
Definition: FindByMassRange.h:34
FindByMassRange::FindByMassRange
FindByMassRange(double low, double high)
Constructor - sets the mass range in Gev.
Definition: FindByMassRange.h:29
compareOutputFiles.pp
pp
Definition: compareOutputFiles.py:465
FindByMassRange::m_low
double m_low
Low and high mass range (GeV)
Definition: FindByMassRange.h:38
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:110
ParticleProperty::mass
double mass() const
Get the particle mass.
Definition: ParticleProperty.h:72
FindByMassRange
IParticlePropertySvc::value_type is a typedef that defines the internal service storage type that is ...
Definition: FindByMassRange.h:24