DataFormats
CTPPSReco
interface
CTPPSTimingRecHit.h
Go to the documentation of this file.
1
/****************************************************************************
2
*
3
* This is a part of CTPPS offline software.
4
* Authors:
5
* Laurent Forthomme (laurent.forthomme@cern.ch)
6
* Nicola Minafra (nicola.minafra@cern.ch)
7
*
8
****************************************************************************/
9
10
#ifndef DataFormats_CTPPSReco_CTPPSTimingRecHit
11
#define DataFormats_CTPPSReco_CTPPSTimingRecHit
12
14
class
CTPPSTimingRecHit
{
15
public
:
16
CTPPSTimingRecHit
() :
x_
(0.),
xWidth_
(0.),
y_
(0.),
yWidth_
(0.),
z_
(0.),
zWidth_
(0.),
t_
(0.) {}
17
CTPPSTimingRecHit
(
float
x
,
float
xWidth
,
float
y
,
float
yWidth
,
float
z
,
float
zWidth
,
float
t
)
18
:
x_
(
x
),
xWidth_
(
xWidth
),
y_
(
y
),
yWidth_
(
yWidth
),
z_
(
z
),
zWidth_
(
zWidth
),
t_
(
t
) {}
19
20
inline
void
setX
(
float
x
) {
x_
=
x
; }
21
inline
float
x
()
const
{
return
x_
; }
22
23
inline
void
setY
(
float
y
) {
y_
=
y
; }
24
inline
float
y
()
const
{
return
y_
; }
25
26
inline
void
setZ
(
float
z
) {
z_
=
z
; }
27
inline
float
z
()
const
{
return
z_
; }
28
29
inline
void
setXWidth
(
float
xWidth
) {
xWidth_
=
xWidth
; }
30
inline
float
xWidth
()
const
{
return
xWidth_
; }
31
32
inline
void
setYWidth
(
float
yWidth
) {
yWidth_
=
yWidth
; }
33
inline
float
yWidth
()
const
{
return
yWidth_
; }
34
35
inline
void
setZWidth
(
float
zWidth
) {
zWidth_
=
zWidth
; }
36
inline
float
zWidth
()
const
{
return
zWidth_
; }
37
38
inline
void
setTime
(
float
t
) {
t_
=
t
; }
39
inline
float
time
()
const
{
return
t_
; }
40
41
protected
:
42
float
x_
,
xWidth_
;
43
float
y_
,
yWidth_
;
44
float
z_
,
zWidth_
;
45
float
t_
;
46
};
47
48
//----------------------------------------------------------------------------------------------------
49
50
inline
bool
operator<
(
const
CTPPSTimingRecHit
&
l
,
const
CTPPSTimingRecHit
&
r
) {
51
// only sort by leading edge time
52
return
(
l
.time() <
r
.time());
53
}
54
55
#endif
CTPPSTimingRecHit::CTPPSTimingRecHit
CTPPSTimingRecHit()
Definition:
CTPPSTimingRecHit.h:21
CTPPSTimingRecHit::setYWidth
void setYWidth(float yWidth)
Definition:
CTPPSTimingRecHit.h:37
CTPPSTimingRecHit::yWidth_
float yWidth_
Definition:
CTPPSTimingRecHit.h:48
CTPPSTimingRecHit::z
float z() const
Definition:
CTPPSTimingRecHit.h:32
CTPPSTimingRecHit::t_
float t_
Definition:
CTPPSTimingRecHit.h:50
CTPPSTimingRecHit::setXWidth
void setXWidth(float xWidth)
Definition:
CTPPSTimingRecHit.h:34
CTPPSTimingRecHit::zWidth
float zWidth() const
Definition:
CTPPSTimingRecHit.h:41
operator<
bool operator<(const CTPPSTimingRecHit &l, const CTPPSTimingRecHit &r)
Definition:
CTPPSTimingRecHit.h:49
CTPPSTimingRecHit::time
float time() const
Definition:
CTPPSTimingRecHit.h:44
CTPPSTimingRecHit::x_
float x_
Definition:
CTPPSTimingRecHit.h:47
CTPPSTimingRecHit::setTime
void setTime(float t)
Definition:
CTPPSTimingRecHit.h:43
CTPPSTimingRecHit::yWidth
float yWidth() const
Definition:
CTPPSTimingRecHit.h:38
CTPPSTimingRecHit::setZ
void setZ(float z)
Definition:
CTPPSTimingRecHit.h:31
OrderedSet.t
t
Definition:
OrderedSet.py:90
CTPPSTimingRecHit::xWidth
float xWidth() const
Definition:
CTPPSTimingRecHit.h:35
CTPPSTimingRecHit::z_
float z_
Definition:
CTPPSTimingRecHit.h:49
CTPPSTimingRecHit::x
float x() const
Definition:
CTPPSTimingRecHit.h:26
CTPPSTimingRecHit::setZWidth
void setZWidth(float zWidth)
Definition:
CTPPSTimingRecHit.h:40
CTPPSTimingRecHit::y_
float y_
Definition:
CTPPSTimingRecHit.h:48
CTPPSTimingRecHit::setY
void setY(float y)
Definition:
CTPPSTimingRecHit.h:28
cmsLHEtoEOSManager.l
l
Definition:
cmsLHEtoEOSManager.py:193
alignCSCRings.r
r
Definition:
alignCSCRings.py:93
CTPPSTimingRecHit::y
float y() const
Definition:
CTPPSTimingRecHit.h:29
CTPPSTimingRecHit
Reconstructed hit in timing detectors.
Definition:
CTPPSTimingRecHit.h:13
CTPPSTimingRecHit::setX
void setX(float x)
Definition:
CTPPSTimingRecHit.h:25
CTPPSTimingRecHit::xWidth_
float xWidth_
Definition:
CTPPSTimingRecHit.h:47
CTPPSTimingRecHit::zWidth_
float zWidth_
Definition:
CTPPSTimingRecHit.h:49
Generated for CMSSW Reference Manual by
1.8.16