CMS 3D CMS Logo

Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/DataFormats/EcalRecHit/interface/EcalRecHitComparison.h File Reference

Go to the source code of this file.

Functions

bool operator< (const EcalRecHit &one, const EcalRecHit &other)
bool operator< (const uint32_t &detid, const EcalRecHit &other)
bool operator< (const EcalRecHit &one, const uint32_t &detid)

Function Documentation

bool operator< ( const EcalRecHit one,
const EcalRecHit other 
) [inline]

Definition at line 6 of file EcalRecHitComparison.h.

References CaloRecHit::detid(), and CaloRecHit::energy().

                                                                       {
  if(one.detid() == other.detid()){ return one.energy() < other.energy(); }
  return one.detid() < other.detid();}
bool operator< ( const uint32_t &  detid,
const EcalRecHit other 
) [inline]

Definition at line 13 of file EcalRecHitComparison.h.

References CaloRecHit::detid().

                                                                       { 
  return detid < other.detid();}
bool operator< ( const EcalRecHit one,
const uint32_t &  detid 
) [inline]

Definition at line 10 of file EcalRecHitComparison.h.

References cond::rpcobgas::detid, and CaloRecHit::detid().

                                                                     {
  return one.detid() < detid;}