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 
16 #include <dfe/dfe_namedtuple.hpp>
17 
18 namespace ActsExamples {
19 
20 struct ParticleData {
22  uint64_t particle_id;
24  int32_t particle_type;
28  float vx, vy, vz;
29  // Production time in ns. Not available in the TrackML datasets.
30  float vt = 0.0f;
32  float px, py, pz;
34  float m = 0.0f;
36  float q;
37 
39  vt, px, py, pz, m, q);
40 };
41 
42 struct TruthHitData {
46  uint64_t hit_id;
48  uint64_t geometry_id = 0u;
50  uint64_t particle_id;
52  float tx, ty, tz;
53  // True global hit time in ns. Not available in the TrackML datasets.
54  float tt = 0.0f;
56  float tpx, tpy, tpz;
59  float te = 0.0f;
62  float deltapx = 0.0f;
63  float deltapy = 0.0f;
64  float deltapz = 0.0f;
65  float deltae = 0.0f;
66  // Hit index along the trajectory. Not available in the TrackML datasets.
67  int32_t index = -1;
68 
71 };
72 
73 struct HitData {
75  uint64_t hit_id;
77  uint64_t geometry_id = 0u;
81  float x, y, z;
83  float t = 0.0f;
84 
86  x, y, z, t);
87 };
88 
89 struct CellData {
93  uint64_t hit_id;
97  int32_t ch0, ch1;
99  int32_t timestamp = 0;
101  int32_t value;
102 
104 };
105 
106 struct SurfaceData {
108  uint64_t geometry_id;
112  float cx, cy, cz;
118  float module_t = -1;
119  float module_minhu = -1;
120  float module_maxhu = -1;
121  float module_hv = -1;
122  float pitch_u = -1;
123  float pitch_v = -1;
124 
129 };
130 
131 } // namespace ActsExamples