CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
EcalRecHitComparison.h File Reference

Go to the source code of this file.

Functions

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

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().

6  {
7  if(one.detid() == other.detid()){ return one.energy() < other.energy(); }
8  return one.detid() < other.detid();}
const DetId & detid() const
Definition: CaloRecHit.h:22
float energy() const
Definition: CaloRecHit.h:19
bool operator< ( const EcalRecHit one,
const uint32_t &  detid 
)
inline

Definition at line 10 of file EcalRecHitComparison.h.

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

10  {
11  return one.detid() < detid;}
const DetId & detid() const
Definition: CaloRecHit.h:22
bool operator< ( const uint32_t &  detid,
const EcalRecHit other 
)
inline

Definition at line 13 of file EcalRecHitComparison.h.

References CaloRecHit::detid().

13  {
14  return detid < other.detid();}
const DetId & detid() const
Definition: CaloRecHit.h:22