CMS 3D CMS Logo

Functions
EcalRecHitComparison.h File Reference
#include "DataFormats/EcalRecHit/interface/EcalRecHit.h"

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 8 of file EcalRecHitComparison.h.

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

8  {
9  if(one.detid() == other.detid()){ return one.energy() < other.energy(); }
10  return one.detid() < other.detid();}
const DetId & detid() const
Definition: EcalRecHit.h:72
float energy() const
Definition: EcalRecHit.h:68
bool operator< ( const EcalRecHit one,
const uint32_t &  detid 
)
inline

Definition at line 12 of file EcalRecHitComparison.h.

References EcalRecHit::detid().

12  {
13  return one.detid() < detid;}
const DetId & detid() const
Definition: EcalRecHit.h:72
bool operator< ( const uint32_t &  detid,
const EcalRecHit other 
)
inline

Definition at line 15 of file EcalRecHitComparison.h.

References EcalRecHit::detid().

15  {
16  return detid < other.detid();}
const DetId & detid() const
Definition: EcalRecHit.h:72