CMS 3D CMS Logo

Functions
HGCRecHitComparison.h File Reference
#include "DataFormats/HGCRecHit/interface/HGCRecHit.h"
#include <cstdint>

Go to the source code of this file.

Functions

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

Function Documentation

bool operator< ( const HGCRecHit one,
const HGCRecHit other 
)
inline

Definition at line 10 of file HGCRecHitComparison.h.

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

10  {
11  if(one.detid() == other.detid()){ return one.energy() < other.energy(); }
12  return one.detid() < other.detid();}
const DetId & detid() const
Definition: CaloRecHit.h:21
float energy() const
Definition: CaloRecHit.h:17
bool operator< ( const HGCRecHit one,
const uint32_t &  detid 
)
inline

Definition at line 14 of file HGCRecHitComparison.h.

References CaloRecHit::detid().

14  {
15  return one.detid() < detid;}
const DetId & detid() const
Definition: CaloRecHit.h:21
bool operator< ( const uint32_t &  detid,
const HGCRecHit other 
)
inline

Definition at line 17 of file HGCRecHitComparison.h.

References CaloRecHit::detid().

17  {
18  return detid < other.detid();}
const DetId & detid() const
Definition: CaloRecHit.h:21