Main Page
Namespaces
Classes
Package Documentation
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
{
16
public
:
17
CTPPSTimingRecHit
() :
18
x_
( 0. ),
xWidth_
( 0. ),
y_
( 0. ),
yWidth_
( 0. ),
z_
( 0. ),
zWidth_
( 0. ),
t_
( 0. ) {}
19
CTPPSTimingRecHit
(
float
x
,
float
xWidth,
float
y
,
float
yWidth,
float
z
,
float
zWidth,
float
t
) :
20
x_
( x ),
xWidth_
( xWidth ),
y_
( y ),
yWidth_
( yWidth ),
z_
( z ),
zWidth_
( zWidth ),
t_
( t ) {}
21
22
inline
void
setX
(
float
x
) {
x_
=
x
; }
23
inline
float
getX
()
const
{
return
x_
; }
24
25
inline
void
setY
(
float
y
) {
y_
=
y
; }
26
inline
float
getY
()
const
{
return
y_
; }
27
28
inline
void
setZ
(
float
z
) {
z_
=
z
; }
29
inline
float
getZ
()
const
{
return
z_
; }
30
31
inline
void
setXWidth
(
float
xWidth ) {
xWidth_
= xWidth; }
32
inline
float
getXWidth
()
const
{
return
xWidth_
; }
33
34
inline
void
setYWidth
(
float
yWidth ) {
yWidth_
= yWidth; }
35
inline
float
getYWidth
()
const
{
return
yWidth_
; }
36
37
inline
void
setZWidth
(
float
zWidth ) {
zWidth_
= zWidth; }
38
inline
float
getZWidth
()
const
{
return
zWidth_
; }
39
40
inline
void
setT
(
float
t
) {
t_
=
t
; }
41
inline
float
getT
()
const
{
return
t_
; }
42
43
protected
:
44
float
x_
,
xWidth_
;
45
float
y_
,
yWidth_
;
46
float
z_
,
zWidth_
;
47
float
t_
;
48
};
49
50
//----------------------------------------------------------------------------------------------------
51
52
inline
bool
operator<
(
const
CTPPSTimingRecHit
&
l
,
const
CTPPSTimingRecHit
&
r
) {
53
// only sort by leading edge time
54
return
(l.
getT
() < r.
getT
());
55
}
56
57
#endif
58
CTPPSTimingRecHit
Reconstructed hit in timing detectors.
Definition:
CTPPSTimingRecHit.h:14
CTPPSTimingRecHit::getX
float getX() const
Definition:
CTPPSTimingRecHit.h:23
CTPPSTimingRecHit::xWidth_
float xWidth_
Definition:
CTPPSTimingRecHit.h:44
CTPPSTimingRecHit::getYWidth
float getYWidth() const
Definition:
CTPPSTimingRecHit.h:35
CTPPSTimingRecHit::getT
float getT() const
Definition:
CTPPSTimingRecHit.h:41
CTPPSTimingRecHit::setXWidth
void setXWidth(float xWidth)
Definition:
CTPPSTimingRecHit.h:31
CTPPSTimingRecHit::zWidth_
float zWidth_
Definition:
CTPPSTimingRecHit.h:46
CTPPSTimingRecHit::CTPPSTimingRecHit
CTPPSTimingRecHit()
Definition:
CTPPSTimingRecHit.h:17
operator<
bool operator<(const CTPPSTimingRecHit &l, const CTPPSTimingRecHit &r)
Definition:
CTPPSTimingRecHit.h:52
CTPPSTimingRecHit::x_
float x_
Definition:
CTPPSTimingRecHit.h:44
CTPPSTimingRecHit::getZWidth
float getZWidth() const
Definition:
CTPPSTimingRecHit.h:38
CTPPSTimingRecHit::t_
float t_
Definition:
CTPPSTimingRecHit.h:47
CTPPSTimingRecHit::getY
float getY() const
Definition:
CTPPSTimingRecHit.h:26
CTPPSTimingRecHit::CTPPSTimingRecHit
CTPPSTimingRecHit(float x, float xWidth, float y, float yWidth, float z, float zWidth, float t)
Definition:
CTPPSTimingRecHit.h:19
CTPPSTimingRecHit::z_
float z_
Definition:
CTPPSTimingRecHit.h:46
CTPPSTimingRecHit::getZ
float getZ() const
Definition:
CTPPSTimingRecHit.h:29
CTPPSTimingRecHit::setZ
void setZ(float z)
Definition:
CTPPSTimingRecHit.h:28
CTPPSTimingRecHit::setZWidth
void setZWidth(float zWidth)
Definition:
CTPPSTimingRecHit.h:37
CTPPSTimingRecHit::getXWidth
float getXWidth() const
Definition:
CTPPSTimingRecHit.h:32
alignCSCRings.r
r
Definition:
alignCSCRings.py:92
CTPPSTimingRecHit::y_
float y_
Definition:
CTPPSTimingRecHit.h:45
CTPPSTimingRecHit::setY
void setY(float y)
Definition:
CTPPSTimingRecHit.h:25
CTPPSTimingRecHit::setT
void setT(float t)
Definition:
CTPPSTimingRecHit.h:40
DDAxes::y
checklumidiff.l
l
Definition:
checklumidiff.py:65
DDAxes::z
lumiQTWidget.t
t
Definition:
lumiQTWidget.py:50
CTPPSTimingRecHit::setYWidth
void setYWidth(float yWidth)
Definition:
CTPPSTimingRecHit.h:34
CTPPSTimingRecHit::setX
void setX(float x)
Definition:
CTPPSTimingRecHit.h:22
CTPPSTimingRecHit::yWidth_
float yWidth_
Definition:
CTPPSTimingRecHit.h:45
DDAxes::x
Generated for CMSSW Reference Manual by
1.8.11