The Gaudi Framework  v36r7 (7f57a304)
FindByMassRange.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDIKERNEL_FINDBYMASSRANGE_H
12 #define GAUDIKERNEL_FINDBYMASSRANGE_H
13 
14 // Include files
17 
35 
36 public:
38  FindByMassRange( double low, double high ) : m_low( low ), m_high( high ) {}
39 
43  bool operator()( const ParticleProperty* pp ) const { return pp && pp->mass() >= m_low && pp->mass() <= m_high; }
44 
45 private:
47  double m_low;
48  double m_high;
49 };
50 
51 #endif // GAUDIKERNEL_FINDBYMASSRANGE_H
FindByMassRange
Definition: FindByMassRange.h:34
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:43
FindByMassRange::m_high
double m_high
Definition: FindByMassRange.h:48
IParticlePropertySvc.h
FindByMassRange::FindByMassRange
FindByMassRange(double low, double high)
Constructor - sets the mass range in Gev.
Definition: FindByMassRange.h:38
ParticleProperty
Definition: ParticleProperty.h:28
FindByMassRange::m_low
double m_low
Low and high mass range (GeV)
Definition: FindByMassRange.h:47
compareOutputFiles.pp
pp
Definition: compareOutputFiles.py:513
ParticleProperty.h
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:81