Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
Reconstructed hit in timing detectors.
Definition:
CTPPSTimingRecHit.h:14
CTPPSTimingRecHit::xWidth_
float xWidth_
Definition:
CTPPSTimingRecHit.h:42
CTPPSTimingRecHit::zWidth
float zWidth() const
Definition:
CTPPSTimingRecHit.h:36
CTPPSTimingRecHit::setXWidth
void setXWidth(float xWidth)
Definition:
CTPPSTimingRecHit.h:29
submitPVValidationJobs.t
string t
Definition:
submitPVValidationJobs.py:644
CTPPSTimingRecHit::zWidth_
float zWidth_
Definition:
CTPPSTimingRecHit.h:44
CTPPSTimingRecHit::CTPPSTimingRecHit
CTPPSTimingRecHit()
Definition:
CTPPSTimingRecHit.h:16
CTPPSTimingRecHit::time
float time() const
Definition:
CTPPSTimingRecHit.h:39
CTPPSTimingRecHit::x_
float x_
Definition:
CTPPSTimingRecHit.h:42
CTPPSTimingRecHit::t_
float t_
Definition:
CTPPSTimingRecHit.h:45
cmsLHEtoEOSManager.l
tuple l
Definition:
cmsLHEtoEOSManager.py:204
CTPPSTimingRecHit::CTPPSTimingRecHit
CTPPSTimingRecHit(float x, float xWidth, float y, float yWidth, float z, float zWidth, float t)
Definition:
CTPPSTimingRecHit.h:17
CTPPSTimingRecHit::setTime
void setTime(float t)
Definition:
CTPPSTimingRecHit.h:38
CTPPSTimingRecHit::z_
float z_
Definition:
CTPPSTimingRecHit.h:44
CTPPSTimingRecHit::setZ
void setZ(float z)
Definition:
CTPPSTimingRecHit.h:26
CTPPSTimingRecHit::setZWidth
void setZWidth(float zWidth)
Definition:
CTPPSTimingRecHit.h:35
CTPPSTimingRecHit::y
float y() const
Definition:
CTPPSTimingRecHit.h:24
CTPPSTimingRecHit::z
float z() const
Definition:
CTPPSTimingRecHit.h:27
CTPPSTimingRecHit::y_
float y_
Definition:
CTPPSTimingRecHit.h:43
CTPPSTimingRecHit::setY
void setY(float y)
Definition:
CTPPSTimingRecHit.h:23
operator<
bool operator<(DTCELinkId const &lhs, DTCELinkId const &rhs)
Definition:
DTCELinkId.h:70
CTPPSTimingRecHit::x
float x() const
Definition:
CTPPSTimingRecHit.h:21
alignCSCRings.r
list r
Definition:
alignCSCRings.py:93
CTPPSTimingRecHit::xWidth
float xWidth() const
Definition:
CTPPSTimingRecHit.h:30
CTPPSTimingRecHit::setYWidth
void setYWidth(float yWidth)
Definition:
CTPPSTimingRecHit.h:32
CTPPSTimingRecHit::yWidth
float yWidth() const
Definition:
CTPPSTimingRecHit.h:33
CTPPSTimingRecHit::setX
void setX(float x)
Definition:
CTPPSTimingRecHit.h:20
CTPPSTimingRecHit::yWidth_
float yWidth_
Definition:
CTPPSTimingRecHit.h:43
Generated for CMSSW Reference Manual by
1.8.5