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