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
21namespace o2::gpu
22{
23
24// class to hold the information on the space points
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
50
51namespace o2::gpu
52{
53
54class GPUTRDSpacePoint : public o2::trd::CalibratedTracklet
55{
56};
57
58static_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
GPUd() GPUTRDSpacePoint(float x=0
GLint GLenum GLint x
Definition glcorearb.h:403
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
GLdouble GLdouble GLdouble z
Definition glcorearb.h:843