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

◆ operator<() [1/3]

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

Definition at line 8 of file EcalRecHitComparison.h.

References trackingPlots::other.

8  {
9  if (one.detid() == other.detid()) {
10  return one.energy() < other.energy();
11  }
12  return one.detid() < other.detid();
13 }

◆ operator<() [2/3]

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

◆ operator<() [3/3]

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