CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions
de_rank< T > Struct Template Reference

— order candidates — More...

#include <DEcompare.h>

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

Public Types

typedef de_trait::cand_type cand_type
 
typedef DEtrait< Tde_trait
 
- Public Types inherited from DEutils< T >
typedef de_trait::cand_type cand_type
 
typedef T::const_iterator col_cit
 
typedef T::iterator col_it
 
typedef T::size_type col_sz
 
typedef de_trait::coll_type coll_type
 
typedef DEtrait< Tde_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
 
- Public Member Functions inherited from DEutils< T >
bool de_equal (const cand_type &, const cand_type &)
 — candidate match definition — More...
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
bool de_equal_loc (const cand_type &, const cand_type &)
 — candidate location-match definition — More...
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
col_it de_find (col_it, col_it, const cand_type &)
 — find candidate — More...
 
bool de_nequal (const cand_type &, const cand_type &)
 
bool de_nequal_loc (const cand_type &, const cand_type &)
 
int de_type () const
 
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int ctype)
 — form de-digi — More...
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
 DEutils ()
 
std::string GetName (int i=0) const
 — name candidate — More...
 
bool is_empty (col_cit) const
 — candidate emptiness definition — More...
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
std::string print (col_cit) const
 — print candidate — More...
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
 ~DEutils ()
 

Detailed Description

template<typename T>
struct de_rank< T >

— order candidates —

Definition at line 18 of file DEcompare.h.

Member Typedef Documentation

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

Definition at line 1525 of file DEutils.h.

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

Definition at line 1524 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 1526 of file DEutils.h.

1526  {
1527  return false; //default
1528  }
template<>
bool de_rank< EcalTrigPrimDigiCollection >::operator() ( const cand_type x,
const cand_type y 
) const
inline

Definition at line 1532 of file DEutils.h.

1532  {
1533  return x.compressedEt() > y.compressedEt();
1534 }
template<>
bool de_rank< HcalTrigPrimDigiCollection >::operator() ( const cand_type x,
const cand_type y 
) const
inline

Definition at line 1536 of file DEutils.h.

1536  {
1537  return x.SOI_compressedEt() > y.SOI_compressedEt();
1538 }
template<>
bool de_rank< L1CaloEmCollection >::operator() ( const cand_type x,
const cand_type y 
) const
inline

Definition at line 1541 of file DEutils.h.

1541  {
1542  if (x.rank() != y.rank()) {
1543  return (x.rank() < y.rank());
1544  } else if (x.isolated() != y.isolated()) {
1545  return (x.isolated()) ? true : false;
1546  } else if (x.rctRegion() != y.rctRegion()) {
1547  return (x.rctRegion() < y.rctRegion());
1548  } else if (x.rctCrate() != y.rctCrate()) {
1549  return (x.rctCrate() < y.rctCrate());
1550  } else if (x.rctCard() != y.rctCard()) {
1551  return (x.rctCard() < y.rctCard());
1552  } else {
1553  return x.raw() < y.raw();
1554  }
1555 }
template<>
bool de_rank< L1CaloRegionCollection >::operator() ( const cand_type x,
const cand_type y 
) const
inline

Definition at line 1558 of file DEutils.h.

1558  {
1559  return x.et() < y.et();
1560 }
template<>
bool de_rank< L1GctEmCandCollection >::operator() ( const cand_type x,
const cand_type y 
) const
inline

Definition at line 1563 of file DEutils.h.

1563  {
1564  if (x.rank() != y.rank()) {
1565  return x.rank() < y.rank();
1566  } else {
1567  if (x.etaIndex() != y.etaIndex()) {
1568  return y.etaIndex() < x.etaIndex();
1569  } else {
1570  return x.phiIndex() < y.phiIndex();
1571  }
1572  }
1573 }
template<>
bool de_rank< L1GctJetCandCollection >::operator() ( const cand_type x,
const cand_type y 
) const
inline

Definition at line 1575 of file DEutils.h.

1575  {
1576  if (x.rank() != y.rank()) {
1577  return x.rank() < y.rank();
1578  } else {
1579  if (x.etaIndex() != y.etaIndex()) {
1580  return y.etaIndex() < x.etaIndex();
1581  } else {
1582  return x.phiIndex() < y.phiIndex();
1583  }
1584  }
1585 }
template<>
bool de_rank< L1MuDTChambPhDigiCollection >::operator() ( const cand_type x,
const cand_type y 
) const
inline

Definition at line 1595 of file DEutils.h.

1595  {
1596  if (x.whNum() != y.whNum()) {
1597  return x.whNum() < y.whNum();
1598  } else {
1599  if (x.scNum() != y.scNum()) {
1600  return y.scNum() < x.scNum();
1601  } else {
1602  return x.stNum() < y.stNum();
1603  }
1604  }
1605 }
template<>
bool de_rank< L1MuDTChambThDigiCollection >::operator() ( const cand_type x,
const cand_type y 
) const
inline

Definition at line 1607 of file DEutils.h.

1607  {
1608  if (x.whNum() != y.whNum()) {
1609  return x.whNum() < y.whNum();
1610  } else {
1611  if (x.scNum() != y.scNum()) {
1612  return y.scNum() < x.scNum();
1613  } else {
1614  return x.stNum() < y.stNum();
1615  }
1616  }
1617 }
template<>
bool de_rank< L1MuRegionalCandCollection >::operator() ( const cand_type x,
const cand_type y 
) const
inline

Definition at line 1620 of file DEutils.h.

1620  {
1621  if (x.phi_packed() != y.phi_packed()) {
1622  return x.phi_packed() < y.phi_packed();
1623  } else {
1624  if (x.eta_packed() != y.eta_packed()) {
1625  return y.eta_packed() < x.eta_packed();
1626  } else {
1627  return x.quality_packed() < y.quality_packed();
1628  }
1629  }
1630 }
template<>
bool de_rank< L1MuGMTCandCollection >::operator() ( const cand_type x,
const cand_type y 
) const
inline

Definition at line 1633 of file DEutils.h.

1633  {
1634  if (x.bx() != y.bx()) {
1635  return x.bx() < y.bx();
1636  } else if (x.ptIndex() != y.ptIndex()) {
1637  return x.ptIndex() < y.ptIndex();
1638  } else {
1639  return x.quality() < y.quality();
1640  }
1641 }
template<>
bool de_rank< CSCCorrelatedLCTDigiCollection_ >::operator() ( const cand_type x,
const cand_type y 
) const
inline

Definition at line 1644 of file DEutils.h.

1644  {
1645  if (x.getTrknmb() != y.getTrknmb()) {
1646  return x.getTrknmb() < y.getTrknmb();
1647  } else {
1648  if (x.getKeyWG() != y.getKeyWG()) {
1649  return y.getKeyWG() < x.getKeyWG();
1650  } else {
1651  return x.getQuality() < y.getQuality();
1652  }
1653  }
1654 }