Main Page
Namespaces
Classes
Package Documentation
FastSimDataFormats
CTPPSFastSim
interface
CTPPSFastTrack.h
Go to the documentation of this file.
1
#ifndef FastSimDataFormats_CTPPSFastSim_CTPPSFastTrack_H
2
#define FastSimDataFormats_CTPPSFastSim_CTPPSFastTrack_H
3
4
5
#include "
DataFormats/Math/interface/Vector.h
"
6
#include "
DataFormats/Math/interface/Vector3D.h
"
7
#include "
DataFormats/Math/interface/Point3D.h
"
8
9
#include <vector>
10
class
CTPPSFastTrack
{
11
public
:
12
typedef
math::XYZVector
Vector
;
13
typedef
math::XYZPoint
Point
;
14
// ~CTPPSFastTrack() {}
15
CTPPSFastTrack
() :
thet
(0.),
thexi
(0.),
thecellid
(0),
thetof
(0.),
thex1
(0.),
they1
(0.),
thex2
(0.),
they2
(0.),
momentum_
(0, 0, 0),
vertex_
(0, 0, 0) {}
16
// constructor
17
CTPPSFastTrack
(
float
t
,
float
xi
,
unsigned
int
cellid
,
float
tof
,
float
x1
,
float
y1
,
float
x2
,
float
y2
,
const
Vector &
momentum
,
const
Point &
vertex
):
18
thet
(t),
19
thexi
(xi),
20
thecellid
(cellid),
21
thetof
(tof),
22
thex1
(x1),
23
they1
(y1),
24
thex2
(x2),
25
they2
(y2),
26
momentum_
(momentum),
27
vertex_
(vertex) {}
28
30
//
32
const
Vector &
momentum
()
const
;
34
const
Point &
referencePoint
()
const
;
35
// reference point on the track. This method is DEPRECATED, please use referencePoint() instead
36
const
Point &
vertex
()
const
;
37
/* Time of flight in nanoseconds from the primary interaction
38
* to the entry point. Always positive in a PSimHit,
39
* but may become negative in a SimHit due to bunch assignment.
40
*/
41
float
timeOfFlight
()
const
{
return
tof
();}
42
43
float
t
()
const
{
return
thet
;}
44
45
float
xi
()
const
{
return
thexi
;}
46
47
float
tof
()
const
{
return
thetof
;}
48
49
float
x1
()
const
{
return
thex1
;}
50
51
float
y1
()
const
{
return
they1
;}
52
53
float
x2
()
const
{
return
thex2
;}
54
55
float
y2
()
const
{
return
they2
;}
56
float
px
()
const
{
return
momentum_
.x();}
57
float
py
()
const
{
return
momentum_
.Y();}
58
float
pz
()
const
{
return
momentum_
.Z();}
59
float
x0
()
const
{
return
vertex_
.x();}
60
float
y0
()
const
{
return
vertex_
.Y();}
61
float
z0
()
const
{
return
vertex_
.Z();}
62
63
unsigned
int
cellid
()
const
{
return
thecellid
;}
64
65
void
setp
(
const
Vector& momentum ) {
momentum_
=
momentum
; }
66
67
void
setvertex
(
const
Point &vertex) {
vertex_
=
vertex
;}
68
69
void
settof
(
float
tof
) {
thetof
=
tof
;}
70
71
void
sett
(
float
t
){
thet
=
t
;}
72
73
void
setxi
(
float
xi
){
thexi
=
xi
;}
74
75
void
setx1
(
float
x1
){
thex1
=
x1
;}
76
77
void
sety1
(
float
y1
){
they1
=
y1
;}
78
79
void
setx2
(
float
x2
){
thex2
=
x2
;}
80
81
void
sety2
(
float
y2
){
they2
=
y2
;}
82
83
void
setcellid
(
unsigned
int
cellid
){
thecellid
=
cellid
;}
84
85
private
:
86
float
thet
;
87
float
thexi
;
88
unsigned
int
thecellid
;
89
float
thetof
;
90
float
thex1
;
91
float
they1
;
92
float
thex2
;
93
float
they2
;
94
Vector
momentum_
;
95
Point
vertex_
;
96
97
};
98
99
#endif //CTPPSFastTrack_H
CTPPSFastTrack::thet
float thet
Definition:
CTPPSFastTrack.h:86
CTPPSFastTrack::sett
void sett(float t)
Definition:
CTPPSFastTrack.h:71
CTPPSFastTrack::thexi
float thexi
Definition:
CTPPSFastTrack.h:87
CTPPSFastTrack::CTPPSFastTrack
CTPPSFastTrack()
Definition:
CTPPSFastTrack.h:15
CTPPSFastTrack::y2
float y2() const
Definition:
CTPPSFastTrack.h:55
CTPPSFastTrack::y1
float y1() const
Definition:
CTPPSFastTrack.h:51
CTPPSFastTrack::they1
float they1
Definition:
CTPPSFastTrack.h:91
CTPPSFastTrack::t
float t() const
Definition:
CTPPSFastTrack.h:43
CTPPSFastTrack::x2
float x2() const
Definition:
CTPPSFastTrack.h:53
CTPPSFastTrack::vertex
const Point & vertex() const
CTPPSFastTrack::thex1
float thex1
Definition:
CTPPSFastTrack.h:90
CTPPSFastTrack::Vector
math::XYZVector Vector
Definition:
CTPPSFastTrack.h:12
CTPPSFastTrack::thex2
float thex2
Definition:
CTPPSFastTrack.h:92
CTPPSFastTrack::setvertex
void setvertex(const Point &vertex)
Definition:
CTPPSFastTrack.h:67
CTPPSFastTrack::sety1
void sety1(float y1)
Definition:
CTPPSFastTrack.h:77
CTPPSFastTrack::thecellid
unsigned int thecellid
Definition:
CTPPSFastTrack.h:88
CTPPSFastTrack::cellid
unsigned int cellid() const
Definition:
CTPPSFastTrack.h:63
CTPPSFastTrack::setx2
void setx2(float x2)
Definition:
CTPPSFastTrack.h:79
Point3D.h
CTPPSFastTrack::pz
float pz() const
Definition:
CTPPSFastTrack.h:58
CTPPSFastTrack::setp
void setp(const Vector &momentum)
Definition:
CTPPSFastTrack.h:65
CTPPSFastTrack::setx1
void setx1(float x1)
Definition:
CTPPSFastTrack.h:75
CTPPSFastTrack::x1
float x1() const
Definition:
CTPPSFastTrack.h:49
CTPPSFastTrack::CTPPSFastTrack
CTPPSFastTrack(float t, float xi, unsigned int cellid, float tof, float x1, float y1, float x2, float y2, const Vector &momentum, const Point &vertex)
Definition:
CTPPSFastTrack.h:17
CTPPSFastTrack::z0
float z0() const
Definition:
CTPPSFastTrack.h:61
CTPPSFastTrack::setxi
void setxi(float xi)
Definition:
CTPPSFastTrack.h:73
CTPPSFastTrack::momentum_
Vector momentum_
Definition:
CTPPSFastTrack.h:94
CTPPSFastTrack::vertex_
Point vertex_
Definition:
CTPPSFastTrack.h:95
CTPPSFastTrack::px
float px() const
Definition:
CTPPSFastTrack.h:56
CTPPSFastTrack::timeOfFlight
float timeOfFlight() const
Definition:
CTPPSFastTrack.h:41
Vector.h
math::XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition:
Vector3D.h:30
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition:
Point3D.h:12
CTPPSFastTrack::Point
math::XYZPoint Point
Definition:
CTPPSFastTrack.h:13
CTPPSFastTrack::they2
float they2
Definition:
CTPPSFastTrack.h:93
CTPPSFastTrack::xi
float xi() const
Definition:
CTPPSFastTrack.h:45
CTPPSFastTrack::settof
void settof(float tof)
Definition:
CTPPSFastTrack.h:69
CTPPSFastTrack::sety2
void sety2(float y2)
Definition:
CTPPSFastTrack.h:81
CTPPSFastTrack::referencePoint
const Point & referencePoint() const
Reference point on the track.
CTPPSFastTrack::tof
float tof() const
Definition:
CTPPSFastTrack.h:47
Vector3D.h
CTPPSFastTrack::y0
float y0() const
Definition:
CTPPSFastTrack.h:60
CTPPSFastTrack::py
float py() const
Definition:
CTPPSFastTrack.h:57
CTPPSFastTrack::momentum
const Vector & momentum() const
track momentum vector
CTPPSFastTrack::x0
float x0() const
Definition:
CTPPSFastTrack.h:59
CTPPSFastTrack::thetof
float thetof
Definition:
CTPPSFastTrack.h:89
CTPPSFastTrack::setcellid
void setcellid(unsigned int cellid)
Definition:
CTPPSFastTrack.h:83
CTPPSFastTrack
Definition:
CTPPSFastTrack.h:10
Generated for CMSSW Reference Manual by
1.8.11