ECCE @ EIC Software
Reference for
ECCE @ 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
SimVertex.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file SimVertex.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2018 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
9
#pragma once
10
11
#include <vector>
12
13
#include "
Acts/Utilities/Definitions.hpp
"
14
#include "
ActsFatras/EventData/Particle.hpp
"
15
#include "
ActsFatras/EventData/ProcessType.hpp
"
16
17
namespace
FW {
18
20
struct
SimVertex
{
21
using
Scalar
= double;
22
using
Vector4
=
Acts::ActsVector<Scalar, 4>
;
23
25
Vector4
position4
= Vector4::Zero();
27
ActsFatras::ProcessType
process
=
ActsFatras::ProcessType::eUndefined
;
29
std::vector<ActsFatras::Particle>
incoming
= {};
31
std::vector<ActsFatras::Particle>
outgoing
= {};
32
40
SimVertex
(
const
Vector4
& position4_,
ActsFatras::ProcessType
process_ =
41
ActsFatras::ProcessType::eUndefined
)
42
:
position4
(position4_),
process
(process_) {}
43
// explicitely default rule-of-five.
44
SimVertex
() =
default
;
45
SimVertex
(
const
SimVertex
&) =
default
;
46
SimVertex
(
SimVertex
&&) =
default
;
47
SimVertex
&
operator=
(
const
SimVertex
&) =
default
;
48
SimVertex
&
operator=
(
SimVertex
&&) =
default
;
49
51
auto
position
()
const
{
return
position4
.head<3>(); }
53
Scalar
time
()
const
{
return
position4
[3]; }
54
};
55
56
}
// namespace FW
acts
blob
master
Examples
Framework
include
ACTFW
EventData
SimVertex.hpp
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:23
using
1.8.2 with
ECCE GitHub integration