Project
Loading...
Searching...
No Matches
GPUTRDSpacePoint.h
Go to the documentation of this file.
1
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
15
16
#ifndef GPUTRDSPACEPOINT_H
17
#define GPUTRDSPACEPOINT_H
18
19
#ifndef GPUCA_TPC_GEOMETRY_O2
// compatibility to Run 2 data types
20
21
namespace
o2::gpu
22
{
23
24
// class to hold the information on the space points
25
class
GPUTRDSpacePoint
26
{
27
public
:
28
GPUd
()
GPUTRDSpacePoint
(
float
x
= 0,
float
y
= 0,
float
z
= 0,
float
dy
= 0) : mX(
x
),
mY
(
y
),
mZ
(
z
),
mDy
(
dy
) {}
29
GPUd
() float getX()
const
{
return
mX; }
30
GPUd
() float getY()
const
{
return
mY
; }
31
GPUd
() float getZ()
const
{
return
mZ
; }
32
GPUd
() float getDy()
const
{
return
mDy
; }
33
GPUd
()
void
setX(
float
x
) { mX =
x
; }
34
GPUd
()
void
setY(
float
y
) {
mY
=
y
; }
35
GPUd
()
void
setZ(
float
z
) {
mZ
=
z
; }
36
GPUd
()
void
setDy(
float
dy
) {
mDy
=
dy
; }
37
38
private
:
39
float
mX;
// x position (3.5 mm above anode wires) - radial offset due to t0 mis-calibration, measured -1 mm for run 245353
40
float
mY
;
// y position (sector coordinates)
41
float
mZ
;
// z position (sector coordinates)
42
float
mDy
;
// deflection over drift length
43
};
44
45
}
// namespace o2::gpu
46
47
#else
// compatibility with Run 3 data types
48
49
#include "
DataFormatsTRD/CalibratedTracklet.h
"
50
51
namespace
o2::gpu
52
{
53
54
class
GPUTRDSpacePoint :
public
o2::trd::CalibratedTracklet
55
{
56
};
57
58
static_assert
(
sizeof
(GPUTRDSpacePoint) ==
sizeof
(
o2::trd::CalibratedTracklet
),
"Incorrect memory layout"
);
59
60
}
// namespace o2::gpu
61
62
#endif
// GPUCA_TPC_GEOMETRY_O2
63
64
#endif
// GPUTRDSPACEPOINT_H
CalibratedTracklet.h
int
o2::gpu::GPUTRDSpacePoint
Definition
GPUTRDSpacePoint.h:26
o2::gpu::GPUTRDSpacePoint::mZ
float mZ
Definition
GPUTRDSpacePoint.h:41
o2::gpu::GPUTRDSpacePoint::dy
float float float dy
Definition
GPUTRDSpacePoint.h:28
o2::gpu::GPUTRDSpacePoint::GPUd
GPUd() GPUTRDSpacePoint(float x=0
o2::gpu::GPUTRDSpacePoint::y
float y
Definition
GPUTRDSpacePoint.h:28
o2::gpu::GPUTRDSpacePoint::mDy
float mDy
Definition
GPUTRDSpacePoint.h:42
o2::gpu::GPUTRDSpacePoint::mY
float mY
Definition
GPUTRDSpacePoint.h:40
o2::gpu::GPUTRDSpacePoint::z
float float z
Definition
GPUTRDSpacePoint.h:28
o2::trd::CalibratedTracklet
Definition
CalibratedTracklet.h:27
x
GLint GLenum GLint x
Definition
glcorearb.h:403
void
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
z
GLdouble GLdouble GLdouble z
Definition
glcorearb.h:843
o2::gpu
Definition
TrackTRD.h:35
GPU
GPUTracking
TRDTracking
GPUTRDSpacePoint.h
Generated on Tue Feb 25 2025 17:03:27 for Project by
1.9.8