EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
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
;
26
uint32_t
process
= 0
u
;
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
38
DFE_NAMEDTUPLE
(
ParticleData
,
particle_id
,
particle_type
,
process
,
vx
,
vy
,
vz
,
39
vt
,
px
,
py
,
pz
,
m
,
q
);
40
};
41
42
struct
TruthHitData
{
46
uint64_t
hit_id
;
48
uint64_t
geometry_id
= 0
u
;
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
69
DFE_NAMEDTUPLE
(
TruthHitData
,
hit_id
,
particle_id
,
geometry_id
,
tx
,
ty
,
tz
,
tt
,
70
tpx
,
tpy
,
tpz
,
te
,
deltapx
,
deltapy
,
deltapz
,
deltae
,
index
);
71
};
72
73
struct
HitData
{
75
uint64_t
hit_id
;
77
uint64_t
geometry_id
= 0
u
;
79
uint32_t
volume_id
,
layer_id
,
module_id
;
81
float
x
,
y
,
z
;
83
float
t
= 0.0f;
84
85
DFE_NAMEDTUPLE
(
HitData
,
hit_id
,
geometry_id
,
volume_id
,
layer_id
,
module_id
,
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
103
DFE_NAMEDTUPLE
(
CellData
,
hit_id
,
ch0
,
ch1
,
timestamp
,
value
);
104
};
105
106
struct
SurfaceData
{
108
uint64_t
geometry_id
;
110
uint32_t
volume_id
,
layer_id
,
module_id
;
112
float
cx
,
cy
,
cz
;
114
float
rot_xu
,
rot_xv
,
rot_xw
;
115
float
rot_yu
,
rot_yv
,
rot_yw
;
116
float
rot_zu
,
rot_zv
,
rot_zw
;
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
125
DFE_NAMEDTUPLE
(
SurfaceData
,
geometry_id
,
volume_id
,
layer_id
,
module_id
,
cx
,
126
cy
,
cz
,
rot_xu
,
rot_xv
,
rot_xw
,
rot_yu
,
rot_yv
,
rot_yw
,
rot_zu
,
127
rot_zv
,
rot_zw
,
module_t
,
module_minhu
,
module_maxhu
,
128
module_hv
,
pitch_u
,
pitch_v
);
129
};
130
131
}
// namespace ActsExamples
acts
blob
sPHENIX
Examples
Io
Csv
src
TrackMlData.hpp
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:25
using
1.8.2 with
EIC GitHub integration