CMS 3D CMS Logo

Functions
FTLRecHitComparison.h File Reference
#include "DataFormats/FTLRecHit/interface/FTLRecHit.h"

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 8 of file FTLRecHitComparison.h.

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

8  {
9  if(one.detid() == other.detid()){ return one.energy() < other.energy(); }
10  return one.detid() < other.detid();}
const DetId & detid() const
Definition: FTLRecHit.h:50
float energy() const
get the id
Definition: FTLRecHit.h:46
bool operator< ( const FTLRecHit one,
const uint32_t &  detid 
)
inline

Definition at line 12 of file FTLRecHitComparison.h.

References FTLRecHit::detid().

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

Definition at line 15 of file FTLRecHitComparison.h.

References FTLRecHit::detid().

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