src
DataFormats
TotemReco
src
TotemT2RecHit.cc
Go to the documentation of this file.
1
/****************************************************************************
2
*
3
* This is a part of TOTEM offline software.
4
* Author:
5
* Laurent Forthomme
6
*
7
****************************************************************************/
8
9
#include "
DataFormats/TotemReco/interface/TotemT2RecHit.h
"
10
11
TotemT2RecHit::TotemT2RecHit
(
const
GlobalPoint
& centre,
float
time
,
float
time_unc,
float
tot
)
12
: centre_(centre), time_(
time
), time_unc_(time_unc), tot_(
tot
) {}
13
14
bool
operator<
(
const
TotemT2RecHit
& lhs,
const
TotemT2RecHit
& rhs) {
15
if
(lhs.
time
() < rhs.
time
())
16
return
true
;
17
if
(lhs.
time
() > rhs.
time
())
18
return
false
;
19
if
(lhs.
toT
() < rhs.
toT
())
20
return
true
;
21
if
(lhs.
toT
() > rhs.
toT
())
22
return
false
;
23
if
(lhs.
timeUnc
() < rhs.
timeUnc
())
24
return
true
;
25
if
(lhs.
timeUnc
() > rhs.
timeUnc
())
26
return
false
;
27
return
false
;
28
}
TotemT2RecHit
Definition:
TotemT2RecHit.h:14
operator<
bool operator<(const TotemT2RecHit &lhs, const TotemT2RecHit &rhs)
Definition:
TotemT2RecHit.cc:14
TotemT2RecHit::TotemT2RecHit
TotemT2RecHit()=default
hcalRecHitTable_cff.time
time
Definition:
hcalRecHitTable_cff.py:14
TotemT2RecHit::timeUnc
float timeUnc() const
Definition:
TotemT2RecHit.h:23
TotemT2RecHit::time
float time() const
Definition:
TotemT2RecHit.h:21
compareTotals.tot
tot
Definition:
compareTotals.py:299
Point3DBase< float, GlobalTag >
TotemT2RecHit.h
TotemT2RecHit::toT
float toT() const
Definition:
TotemT2RecHit.h:25
Generated for CMSSW Reference Manual by
1.8.14