CMS 3D CMS Logo

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

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

#include <L1MuDTEUX.h>

Public Member Functions

 EUX_Comp (const L1MuDTEUX *k=nullptr)
 
bool operator() (const L1MuDTEUX *first, const L1MuDTEUX *second) const
 

Private Attributes

const L1MuDTEUX_not
 

Detailed Description

helper class for finding the best and second best extrapolation

Definition at line 72 of file L1MuDTEUX.h.

Constructor & Destructor Documentation

◆ EUX_Comp()

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

Definition at line 74 of file L1MuDTEUX.h.

74 : _not(k) {}

Member Function Documentation

◆ operator()()

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

Definition at line 75 of file L1MuDTEUX.h.

75  {
76  if (!second->result())
77  return false;
78  if (_not != nullptr && *first == *_not)
79  return true;
80  if (_not != nullptr && *second == *_not)
81  return false;
82  return (first->quality() < second->quality());
83  }

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

Member Data Documentation

◆ _not

const L1MuDTEUX* L1MuDTEUX::EUX_Comp::_not
private

Definition at line 86 of file L1MuDTEUX.h.

Referenced by operator()().

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
L1MuDTEUX::EUX_Comp::_not
const L1MuDTEUX * _not
Definition: L1MuDTEUX.h:86