| The Gaudi Framework v32r1 (f65d50dc)

Public Member Functions | Private Attributes | List of all members
FindByMassRange Class Reference

IParticlePropertySvc::value_type is a typedef that defines the internal service storage type that is returned when an iterator is dereferenced. More...

`#include <GaudiKernel/FindByMassRange.h>`

## Public Member Functions
| FindByMassRange (double low, double high)
| Constructor - sets the mass range in Gev. More...
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 if it does. More...

## Private Attributes
double | m_low
| Low and high mass range (GeV) More...
double | m_high

## Detailed Description

IParticlePropertySvc::value_type is a typedef that defines the internal service storage type that is returned when an iterator is dereferenced.

In this case it corresponds to pair< std::string, ParticleProperty* > as the ParticlePropertySvc stores all its data in a map. The string will be the map's key (usually the particle name) and the pointer is a pointer to the ParticleProperty object.

The data is accessed in the following manner: const IParticlePropertySvc::value_type& pp_ref; std::string key = pp_ref.first; ParticleProperty* pp = pp_ref.second;

Author
  Ian Last

Definition at line 24 of file FindByMassRange.h.

## Constructor & Destructor Documentation

## ◆ FindByMassRange()

FindByMassRange::FindByMassRange | ( | double | low,
|  | double | high
| ) |  |
| inline

Constructor - sets the mass range in Gev.

Definition at line 28 of file FindByMassRange.h.

28 : m_low( low ), m_high( high ) {}
FindByMassRange::m_high
double m_high
Definition: FindByMassRange.h:38
FindByMassRange::m_low
double m_low
Low and high mass range (GeV)
Definition: FindByMassRange.h:37

## Member Function Documentation

## ◆ operator()()

bool FindByMassRange::operator() | ( | const ParticleProperty * | pp | ) | const
| inline

This routine check to see if the mass of a particle lies within the given mass range and returns true if it does.

Definition at line 33 of file FindByMassRange.h.

33 { return pp && pp->mass() >= m_low && pp->mass() <= m_high; }
FindByMassRange::m_high
double m_high
Definition: FindByMassRange.h:38
compareOutputFiles.pp
pp
Definition: compareOutputFiles.py:495
FindByMassRange::m_low
double m_low
Low and high mass range (GeV)
Definition: FindByMassRange.h:37

## Member Data Documentation

## ◆ m_high

double FindByMassRange::m_high
| private

Definition at line 38 of file FindByMassRange.h.

## ◆ m_low

double FindByMassRange::m_low
| private

Low and high mass range (GeV)

Definition at line 37 of file FindByMassRange.h.

The documentation for this class was generated from the following file:

- GaudiKernel/GaudiKernel/FindByMassRange.h