Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
SimulationResult.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file SimulationResult.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2020-2021 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 "
ActsFatras/EventData/Hit.hpp
"
12
#include "
ActsFatras/EventData/Particle.hpp
"
13
14
#include <limits>
15
#include <vector>
16
17
namespace
ActsFatras {
18
23
struct
SimulationResult
{
25
Particle
particle
;
27
std::vector<Particle>
generatedParticles
;
29
std::vector<Hit>
hits
;
30
31
// The following variables are internal implementation details that must be
32
// defined here for technical reasons.
33
//
34
// Values are initialized to NaN so the simulation actor can detect when it is
35
// called for the first time, i.e. when the result struct is
36
// default-initialized.
37
38
// Whether the particle is still alive and the simulation should continue
39
bool
isAlive
=
true
;
40
// Proper time limit before decay.
41
Particle::Scalar
properTimeLimit
=
42
std::numeric_limits<Particle::Scalar>::quiet_NaN();
43
// Accumulated radiation/interaction length limit before next interaction.
44
Particle::Scalar
x0Limit
= std::numeric_limits<Particle::Scalar>::quiet_NaN();
45
Particle::Scalar
l0Limit
= std::numeric_limits<Particle::Scalar>::quiet_NaN();
46
// Process selection for the next interaction.
47
size_t
x0Process
= SIZE_MAX;
48
size_t
l0Process
= SIZE_MAX;
49
};
50
51
}
// namespace ActsFatras
acts
blob
sPHENIX
Fatras
include
ActsFatras
Kernel
SimulationResult.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:41
using
1.8.2 with
sPHENIX GitHub integration