Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DataFormats
EcalRecHit
interface
EcalRecHitComparison.h
Go to the documentation of this file.
1
#ifndef EcalRecHitComparison_H
2
#define EcalRecHitComparison_H
3
4
//ordering capability mandatory for lazy getter framework
5
// Comparison operators
6
inline
bool
operator<
(
const
EcalRecHit
& one,
const
EcalRecHit
& other) {
7
if
(one.
detid
() == other.
detid
()){
return
one.
energy
() < other.
energy
(); }
8
return
one.
detid
() < other.
detid
();}
9
10
inline
bool
operator<
(
const
EcalRecHit
& one,
const
uint32_t&
detid
) {
11
return
one.
detid
() <
detid
;}
12
13
inline
bool
operator<
(
const
uint32_t&
detid
,
const
EcalRecHit
& other) {
14
return
detid < other.
detid
();}
15
16
#endif
17
CaloRecHit::detid
const DetId & detid() const
Definition:
CaloRecHit.h:20
EcalRecHit
Definition:
EcalRecHit.h:12
operator<
bool operator<(const FedChannelConnection &, const FedChannelConnection &)
Definition:
FedChannelConnection.cc:75
CaloRecHit::energy
float energy() const
Definition:
CaloRecHit.h:17
cond::rpcobgas::detid
Definition:
RPCObGasPyWrapper.cc:61
Generated for CMSSW Reference Manual by
1.8.5