CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
L1MuBMEUX::EUX_Comp Class Reference

helper class for finding the best and second best extrapolation More...

#include <L1MuBMEUX.h>

Public Member Functions

 EUX_Comp (const L1MuBMEUX *k=0)
 
bool operator() (const L1MuBMEUX *first, const L1MuBMEUX *second) const
 

Private Attributes

const L1MuBMEUX_not
 

Detailed Description

helper class for finding the best and second best extrapolation

Definition at line 78 of file L1MuBMEUX.h.

Constructor & Destructor Documentation

L1MuBMEUX::EUX_Comp::EUX_Comp ( const L1MuBMEUX k = 0)
inline

Definition at line 80 of file L1MuBMEUX.h.

80 : _not(k) {}
const L1MuBMEUX * _not
Definition: L1MuBMEUX.h:88

Member Function Documentation

bool L1MuBMEUX::EUX_Comp::operator() ( const L1MuBMEUX first,
const L1MuBMEUX second 
) const
inline

Definition at line 81 of file L1MuBMEUX.h.

References _not, L1MuBMEUX::quality(), and L1MuBMEUX::result().

81  {
82  if ( !second->result() ) return false;
83  if ( _not != nullptr && *first == *_not ) return true;
84  if ( _not != nullptr && *second == *_not ) return false;
85  return ( first->quality() < second->quality() );
86  }
const L1MuBMEUX * _not
Definition: L1MuBMEUX.h:88
bool result() const
return extrapolation result
Definition: L1MuBMEUX.h:95
unsigned int quality() const
return extrapolation quality
Definition: L1MuBMEUX.h:98

Member Data Documentation

const L1MuBMEUX* L1MuBMEUX::EUX_Comp::_not
private

Definition at line 88 of file L1MuBMEUX.h.

Referenced by operator()().