The Gaudi Framework
v32r2 (46d42edc)
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
public
:
28
FindByMassRange
(
double
low,
double
high ) : m_low( low ), m_high( high ) {}
29
33
bool
operator()
(
const
ParticleProperty
*
pp
)
const
{
return
pp
&&
pp
->mass() >= m_low &&
pp
->mass() <= m_high; }
34
35
private
:
37
double
m_low
;
38
double
m_high
;
39
};
40
41
#endif // GAUDIKERNEL_FINDBYMASSRANGE_H
FindByMassRange::m_high
double m_high
Definition:
FindByMassRange.h:38
IParticlePropertySvc.h
ParticleProperty
A trivial class to hold information about a single particle properties.
Definition:
ParticleProperty.h:18
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:33
ParticleProperty.h
FindByMassRange::FindByMassRange
FindByMassRange(double low, double high)
Constructor - sets the mass range in Gev.
Definition:
FindByMassRange.h:28
compareOutputFiles.pp
pp
Definition:
compareOutputFiles.py:498
FindByMassRange::m_low
double m_low
Low and high mass range (GeV)
Definition:
FindByMassRange.h:37
GAUDI_API
#define GAUDI_API
Definition:
Kernel.h:71
FindByMassRange
IParticlePropertySvc::value_type is a typedef that defines the internal service storage type that is ...
Definition:
FindByMassRange.h:24
GaudiKernel
GaudiKernel
FindByMassRange.h
Generated on Sat Sep 28 2019 18:06:49 for The Gaudi Framework by
1.8.15