CMS 3D CMS Logo

Public Types | Public Member Functions

de_rank< T > Struct Template Reference

--- order candidates --- More...

#include <DEutils.h>

Inheritance diagram for de_rank< T >:
DEutils< T > binary_function

List of all members.

Public Types

typedef de_trait::cand_type cand_type
typedef DEtrait< T > de_trait

Public Member Functions

bool operator() (const cand_type &x, const cand_type &y) const
template<>
bool operator() (const cand_type &x, const cand_type &y) const
template<>
bool operator() (const cand_type &x, const cand_type &y) const
template<>
bool operator() (const cand_type &x, const cand_type &y) const
template<>
bool operator() (const cand_type &x, const cand_type &y) const
template<>
bool operator() (const cand_type &x, const cand_type &y) const
template<>
bool operator() (const cand_type &x, const cand_type &y) const
template<>
bool operator() (const cand_type &x, const cand_type &y) const
template<>
bool operator() (const cand_type &x, const cand_type &y) const
template<>
bool operator() (const cand_type &x, const cand_type &y) const
template<>
bool operator() (const cand_type &x, const cand_type &y) const
template<>
bool operator() (const cand_type &x, const cand_type &y) const

Detailed Description

template<typename T>
struct de_rank< T >

--- order candidates ---

Definition at line 1515 of file DEutils.h.


Member Typedef Documentation

template<typename T >
typedef de_trait::cand_type de_rank< T >::cand_type

Reimplemented from DEutils< T >.

Definition at line 1517 of file DEutils.h.

template<typename T >
typedef DEtrait<T> de_rank< T >::de_trait

Reimplemented from DEutils< T >.

Definition at line 1516 of file DEutils.h.


Member Function Documentation

template<typename T >
bool de_rank< T >::operator() ( const cand_type x,
const cand_type y 
) const [inline]

Definition at line 1518 of file DEutils.h.

                                                                {
    return false; //default
  }
template<>
BoundPlane * RodPlaneBuilderFromDet::operator() ( const cand_type x,
const cand_type y 
) const [inline]

Definition at line 1567 of file DEutils.h.

{if(x.getTrknmb()!=y.getTrknmb()){return x.getTrknmb() < y.getTrknmb();} else{if(x.getKeyWG()!=y.getKeyWG()){return y.getKeyWG() < x.getKeyWG();} else{ return x.getQuality() < y.getQuality();}}}
template<>
bool de_rank< L1MuGMTCandCollection >::operator() ( const cand_type x,
const cand_type y 
) const [inline]

Definition at line 1561 of file DEutils.h.

                                                                                                              {
  if(x.bx()!=y.bx()){return x.bx() < y.bx();} 
  else if(x.ptIndex()!=y.ptIndex()){return x.ptIndex() < y.ptIndex();}
  else{ return x.quality() < y.quality();}
}
template<>
bool de_rank< L1MuRegionalCandCollection >::operator() ( const cand_type x,
const cand_type y 
) const [inline]

Definition at line 1559 of file DEutils.h.

{if(x.phi_packed()!=y.phi_packed()){return x.phi_packed() < y.phi_packed();} else{if(x.eta_packed()!=y.eta_packed()){return y.eta_packed() < x.eta_packed();}else{ return x.quality_packed() < y.quality_packed();}}}
template<>
bool de_rank< L1MuDTChambThDigiCollection >::operator() ( const cand_type x,
const cand_type y 
) const [inline]

Definition at line 1557 of file DEutils.h.

{ if(x.whNum()!=y.whNum()){return x.whNum() < y.whNum();} else{if(x.scNum()!=y.scNum()){return y.scNum() < x.scNum();}else{ return x.stNum() < y.stNum();}}}
template<>
bool de_rank< L1MuDTChambPhDigiCollection >::operator() ( const cand_type x,
const cand_type y 
) const [inline]

Definition at line 1556 of file DEutils.h.

{ if(x.whNum()!=y.whNum()){return x.whNum() < y.whNum();} else{if(x.scNum()!=y.scNum()){return y.scNum() < x.scNum();}else{ return x.stNum() < y.stNum();}}}
template<>
bool de_rank< L1GctJetCandCollection >::operator() ( const cand_type x,
const cand_type y 
) const [inline]

Definition at line 1547 of file DEutils.h.

{ if(x.rank()!=y.rank()){return x.rank() < y.rank();} else{if(x.etaIndex()!=y.etaIndex()){return y.etaIndex() < x.etaIndex();}else{ return x.phiIndex() < y.phiIndex();}}}
template<>
bool de_rank< L1GctEmCandCollection >::operator() ( const cand_type x,
const cand_type y 
) const [inline]

Definition at line 1546 of file DEutils.h.

{ if(x.rank()!=y.rank()){return x.rank() < y.rank();} else{if(x.etaIndex()!=y.etaIndex()){return y.etaIndex() < x.etaIndex();}else{ return x.phiIndex() < y.phiIndex();}}}
template<>
bool de_rank< L1CaloRegionCollection >::operator() ( const cand_type x,
const cand_type y 
) const [inline]

Definition at line 1544 of file DEutils.h.

{ return x.et() < y.et(); }
template<>
bool de_rank< L1CaloEmCollection >::operator() ( const cand_type x,
const cand_type y 
) const [inline]

Definition at line 1528 of file DEutils.h.

References ExpressReco_HICollisions_FallBack::x, and ExpressReco_HICollisions_FallBack::y.

                                                    {
  if       (x.rank()      != y.rank())     {
    return (x.rank()      <  y.rank())     ;
  } else if(x.isolated()  != y.isolated()) {
    return (x.isolated())?1:0;
  } else if(x.rctRegion() != y.rctRegion()){
    return (x.rctRegion() <  y.rctRegion());
  } else if(x.rctCrate()  != y.rctCrate()) {
    return (x.rctCrate()  <  y.rctCrate()) ;
  } else if(x.rctCard()   != y.rctCard())  {
    return (x.rctCard()   <  y.rctCard())  ;
  } else {
    return x.raw() < y.raw();
  }
}
template<>
bool de_rank< HcalTrigPrimDigiCollection >::operator() ( const cand_type x,
const cand_type y 
) const [inline]

Definition at line 1524 of file DEutils.h.

{ return x.SOI_compressedEt() > y.SOI_compressedEt(); }
template<>
bool de_rank< EcalTrigPrimDigiCollection >::operator() ( const cand_type x,
const cand_type y 
) const [inline]

Definition at line 1523 of file DEutils.h.

{ return x.compressedEt() > y.compressedEt(); }