-
Notifications
You must be signed in to change notification settings - Fork 494
Expand file tree
/
Copy pathGPUTPCSectorOutCluster.h
More file actions
66 lines (58 loc) · 1.82 KB
/
GPUTPCSectorOutCluster.h
File metadata and controls
66 lines (58 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
/// \file GPUTPCSectorOutCluster.h
/// \author Sergey Gorbunov, David Rohr
#ifndef GPUTPCSECTOROUTCLUSTER_H
#define GPUTPCSECTOROUTCLUSTER_H
#include "GPUTPCDef.h"
namespace o2::gpu
{
/**
* @class GPUTPCSectorOutCluster
* GPUTPCSectorOutCluster class contains clusters which are assigned to sector tracks.
* It is used to send the data from TPC sector trackers to the GlobalMerger
*/
class GPUTPCSectorOutCluster
{
public:
GPUhd() void Set(uint32_t id, uint8_t row, uint8_t flags, uint16_t amp, float x, float y, float z)
{
mRow = row;
mFlags = flags;
mId = id;
mAmp = amp;
mX = x;
mY = y;
mZ = z;
}
GPUhd() float GetX() const { return mX; }
GPUhd() float GetY() const { return mY; }
GPUhd() float GetZ() const { return mZ; }
GPUhd() uint16_t GetAmp() const { return mAmp; }
GPUhd() uint32_t GetId() const { return mId; }
GPUhd() uint8_t GetRow() const { return mRow; }
GPUhd() uint8_t GetFlags() const { return mFlags; }
private:
uint32_t mId; // Id
uint8_t mRow; // row
uint8_t mFlags; // flags
uint16_t mAmp; // amplitude
float mX; // coordinates
float mY; // coordinates
float mZ; // coordinates
#ifdef GPUCA_TPC_RAW_PROPAGATE_PAD_ROW_TIME
public:
float mPad;
float mTime;
#endif
};
} // namespace o2::gpu
#endif