| The Gaudi Framework v28r2p1 (f1a77ff4)

- 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
5 // Include files
6 #include "GaudiKernel/IParticlePropertySvc.h"
7 #include "GaudiKernel/ParticleProperty.h"
8
9
30 class GAUDI_API FindByMassRange: public std::unary_function< ParticleProperty* ,bool > {
31
32 public:
33
35 FindByMassRange( double low, double high ) : m_low( low ), m_high( high ) { }
36
40 bool operator() ( const ParticleProperty* pp ) const {
41 return pp && pp->mass() >= m_low && pp->mass() <= m_high;
42 }
43
44 private:
45
47 double m_low;
48 double m_high;
49 };
50
51 #endif // GAUDIKERNEL_FINDBYMASSRANGE_H
FindByMassRange::m_high
double m_high
Definition: FindByMassRange.h:48
IParticlePropertySvc.h
ParticleProperty
A trivial class to hold information about a single particle properties.
Definition: ParticleProperty.h:18
ParticleProperty.h
FindByMassRange::FindByMassRange
FindByMassRange(double low, double high)
Constructor - sets the mass range in Gev.
Definition: FindByMassRange.h:35
Gaudi::Functional::operator()
virtual Out operator()(const vector_of_const_< In > &inputs) const =0
compareOutputFiles.pp
pp
Definition: compareOutputFiles.py:417
std::unary_function
FindByMassRange::m_low
double m_low
Low and high mass range (GeV)
Definition: FindByMassRange.h:47
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:107
ParticleProperty::mass
double mass() const
Get the particle mass.
Definition: ParticleProperty.h:78
FindByMassRange
The function object must be derived from std::unary_function< IParticlePropertySvc::value_type ...
Definition: FindByMassRange.h:30