Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | Private Attributes | List of all members
IsInCollisionEnergyRange< SpectrumType > Class Template Reference

Predicate that determines if an MSn spectrum was generated with a collision energy in the given range. More...

#include <OpenMS/KERNEL/RangeUtils.h>

Inheritance diagram for IsInCollisionEnergyRange< SpectrumType >:

Public Member Functions

 IsInCollisionEnergyRange (DoubleReal min, DoubleReal max, bool reverse=false)
 Constructor. More...
 
bool operator() (const SpectrumType &s) const
 

Private Attributes

DoubleReal min_energy_
 
DoubleReal max_energy_
 
bool reverse_
 

Detailed Description

template<class SpectrumType>
class OpenMS::IsInCollisionEnergyRange< SpectrumType >

Predicate that determines if an MSn spectrum was generated with a collision energy in the given range.

Note
This applies only to CID and HCD spectra. For spectra that do not have a collision energy, the predicate will return true.
This predicate will return always true for spectra with getMSLevel() = 1.

Constructor & Destructor Documentation

IsInCollisionEnergyRange ( DoubleReal  min,
DoubleReal  max,
bool  reverse = false 
)
inline

Constructor.

Parameters
minminimum collision energy to be included in the range.
maxmaximum collision energy to be included in the range.
reverseif reverse is true, operator() returns true if the collision energy lies outside the range.

Member Function Documentation

bool operator() ( const SpectrumType &  s) const
inline

Member Data Documentation

DoubleReal max_energy_
private
DoubleReal min_energy_
private
bool reverse_
private

OpenMS / TOPP release 1.11.1 Documentation generated on Thu Nov 14 2013 11:19:32 using doxygen 1.8.5