Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
DataFormats
HGCRecHit
interface
HGCRecHitComparison.h
Go to the documentation of this file.
1
#ifndef HGCRecHitComparison_H
2
#define HGCRecHitComparison_H
3
4
#include "
DataFormats/HGCRecHit/interface/HGCRecHit.h
"
5
6
#include <cstdint>
7
8
//ordering capability mandatory for lazy getter framework
9
// Comparison operators
10
inline
bool
operator<
(
const
HGCRecHit
&
one
,
const
HGCRecHit
& other) {
11
if
(one.
detid
() == other.
detid
()) {
12
return
one.
energy
() < other.
energy
();
13
}
14
return
one.
detid
() < other.
detid
();
15
}
16
17
inline
bool
operator<
(
const
HGCRecHit
&
one
,
const
uint32_t& detid) {
return
one.
detid
() < detid; }
18
19
inline
bool
operator<
(
const
uint32_t& detid,
const
HGCRecHit
& other) {
return
detid < other.
detid
(); }
20
21
#endif
CaloRecHit::energy
constexpr float energy() const
Definition:
CaloRecHit.h:29
CaloRecHit::detid
constexpr const DetId & detid() const
Definition:
CaloRecHit.h:33
HGCRecHit
Definition:
HGCRecHit.h:14
SiPixelPI::one
Definition:
SiPixelPayloadInspectorHelper.h:39
HGCRecHit.h
operator<
bool operator<(DTCELinkId const &lhs, DTCELinkId const &rhs)
Definition:
DTCELinkId.h:70
Generated for CMSSW Reference Manual by
1.8.5