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=nullptr)
 
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 76 of file L1MuBMEUX.h.

Constructor & Destructor Documentation

◆ EUX_Comp()

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

Definition at line 78 of file L1MuBMEUX.h.

78 : _not(k) {}

Member Function Documentation

◆ operator()()

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

Definition at line 79 of file L1MuBMEUX.h.

79  {
80  if (!second->result())
81  return false;
82  if (_not != nullptr && *first == *_not)
83  return true;
84  if (_not != nullptr && *second == *_not)
85  return false;
86  return (first->quality() < second->quality());
87  }

References _not, dqmdumpme::first, and edm::second().

Member Data Documentation

◆ _not

const L1MuBMEUX* L1MuBMEUX::EUX_Comp::_not
private

Definition at line 90 of file L1MuBMEUX.h.

Referenced by operator()().

L1MuBMEUX::EUX_Comp::_not
const L1MuBMEUX * _not
Definition: L1MuBMEUX.h:90
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:222
dqmdumpme.first
first
Definition: dqmdumpme.py:55
dqmdumpme.k
k
Definition: dqmdumpme.py:60