CMS 3D CMS Logo

de_rank< T > Struct Template Reference

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

#include <L1Trigger/HardwareValidation/interface/DEutils.h>

Inheritance diagram for de_rank< T >:

DEutils< T >

List of all members.

Public Types

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

Public Member Functions

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
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 1295 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 1297 of file DEutils.h.

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

Reimplemented from DEutils< T >.

Definition at line 1296 of file DEutils.h.


Member Function Documentation

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

Definition at line 1340 of file DEutils.h.

01340 {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 1334 of file DEutils.h.

01334                                                                                                               {
01335   if(x.bx()!=y.bx()){return x.bx() < y.bx();} 
01336   else if(x.ptIndex()!=y.ptIndex()){return x.ptIndex() < y.ptIndex();}
01337   else{ return x.quality() < y.quality();}
01338 }

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

Definition at line 1332 of file DEutils.h.

01332 {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 1330 of file DEutils.h.

01330 { 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 1329 of file DEutils.h.

01329 { 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 1327 of file DEutils.h.

01327 { 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 1326 of file DEutils.h.

01326 { 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 1324 of file DEutils.h.

01324 { return x.et() < y.et(); }

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

Definition at line 1308 of file DEutils.h.

References x, and y.

01308                                                     {
01309   if       (x.rank()      != y.rank())     {
01310     return (x.rank()      <  y.rank())     ;
01311   } else if(x.isolated()  != y.isolated()) {
01312     return (x.isolated())?1:0;
01313   } else if(x.rctRegion() != y.rctRegion()){
01314     return (x.rctRegion() <  y.rctRegion());
01315   } else if(x.rctCrate()  != y.rctCrate()) {
01316     return (x.rctCrate()  <  y.rctCrate()) ;
01317   } else if(x.rctCard()   != y.rctCard())  {
01318     return (x.rctCard()   <  y.rctCard())  ;
01319   } else {
01320     return x.raw() < y.raw();
01321   }
01322 }

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

Definition at line 1304 of file DEutils.h.

01304 { 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 1303 of file DEutils.h.

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

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

Definition at line 1298 of file DEutils.h.

01298                                                                 {
01299     return true; //default
01300   }


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:18:21 2009 for CMSSW by  doxygen 1.5.4