The Gaudi Framework
v26r4
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
GAUDI_API
#define GAUDI_API
Definition:
Kernel.h:107
ParticleProperty
A trivial class to hold information about a single particle properties.
Definition:
ParticleProperty.h:18
compareOutputFiles.pp
tuple pp
Definition:
compareOutputFiles.py:417
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
GaudiKernel
GaudiKernel
FindByMassRange.h
Generated on Mon Oct 12 2015 16:26:48 for The Gaudi Framework by
1.8.9.1