ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackMlData.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrackMlData.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2019 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
11 
12 #pragma once
13 
14 #include <cstdint>
15 #include <dfe/dfe_namedtuple.hpp>
16 
17 namespace FW {
18 
19 struct ParticleData {
21  uint64_t particle_id;
23  int32_t particle_type;
25  uint32_t process = 0u;
27  float vx, vy, vz;
28  // Production time in ns. Not available in the TrackML datasets.
29  float vt = 0.0f;
31  float px, py, pz;
33  float m = 0.0f;
35  float q;
36 
38  vt, px, py, pz, m, q);
39 };
40 
41 struct TruthHitData {
45  uint64_t hit_id;
47  uint64_t geometry_id = 0u;
49  uint64_t particle_id;
51  float tx, ty, tz;
52  // True global hit time in ns. Not available in the TrackML datasets.
53  float tt = 0.0f;
55  float tpx, tpy, tpz;
58  float te = 0.0f;
61  float deltapx = 0.0f;
62  float deltapy = 0.0f;
63  float deltapz = 0.0f;
64  float deltae = 0.0f;
65  // Hit index along the trajectory. Not available in the TrackML datasets.
66  int32_t index = -1;
67 
70 };
71 
72 struct HitData {
74  uint64_t hit_id;
76  uint64_t geometry_id = 0u;
80  float x, y, z;
82  float t = 0.0f;
83 
85  x, y, z, t);
86 };
87 
88 struct CellData {
92  uint64_t hit_id;
96  int32_t ch0, ch1;
98  int32_t timestamp = 0;
100  int32_t value;
101 
103 };
104 
105 struct SurfaceData {
107  uint64_t geometry_id;
111  float cx, cy, cz;
117  float module_t = -1;
118  float module_minhu = -1;
119  float module_maxhu = -1;
120  float module_hv = -1;
121  float pitch_u = -1;
122  float pitch_v = -1;
123 
128 };
129 
130 } // namespace FW