Main Page
Namespaces
Classes
Package Documentation
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
()){
return
one.
energy
() < other.
energy
(); }
10
return
one.
detid
() < other.
detid
();}
11
12
inline
bool
operator<
(
const
FTLRecHit
&
one
,
const
uint32_t& detid) {
13
return
one.
detid
() < detid;}
14
15
inline
bool
operator<
(
const
uint32_t& detid,
const
FTLRecHit
&
other
) {
16
return
detid < other.
detid
();}
17
18
#endif
19
FTLRecHit
Definition:
FTLRecHit.h:14
FTLRecHit::detid
const DetId & detid() const
Definition:
FTLRecHit.h:45
one
FTLRecHit::energy
float energy() const
get the id
Definition:
FTLRecHit.h:41
trackingPlots.other
other
Definition:
trackingPlots.py:1426
FTLRecHit.h
operator<
bool operator<(const FTLRecHit &one, const FTLRecHit &other)
Definition:
FTLRecHitComparison.h:8
Generated for CMSSW Reference Manual by
1.8.11