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
DenseEnvironmentExtension.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file DenseEnvironmentExtension.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2018-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
9
#pragma once
10
11
// Workaround for building on clang+libstdc++
12
#include "
Acts/Utilities/detail/ReferenceWrapperAnyCompat.hpp
"
13
14
#include "
Acts/Propagator/detail/GenericDenseEnvironmentExtension.hpp
"
15
16
namespace
Acts {
17
20
using
DenseEnvironmentExtension
=
21
detail::GenericDenseEnvironmentExtension<double>
;
22
23
template
<
typename
action_list_t = ActionList<>,
24
typename
aborter_list_t = AbortList<>>
25
struct
DenseStepperPropagatorOptions
26
:
public
PropagatorOptions
<action_list_t, aborter_list_t> {
28
DenseStepperPropagatorOptions
(
29
const
DenseStepperPropagatorOptions<action_list_t, aborter_list_t>
&
30
dspo) =
default
;
31
36
DenseStepperPropagatorOptions
(
const
GeometryContext
&
gctx
,
37
const
MagneticFieldContext
& mctx)
38
:
PropagatorOptions
<action_list_t, aborter_list_t>(gctx, mctx) {}
39
41
bool
meanEnergyLoss
=
true
;
42
44
bool
includeGgradient
=
true
;
45
47
double
momentumCutOff
= 0.;
48
54
template
<
typename
extended_aborter_list_t>
55
DenseStepperPropagatorOptions<action_list_t, extended_aborter_list_t>
extend
(
56
extended_aborter_list_t aborters)
const
{
57
DenseStepperPropagatorOptions<action_list_t, extended_aborter_list_t>
58
eoptions(this->
geoContext
, this->
magFieldContext
);
59
// Copy the options over
60
eoptions.
direction
= this->
direction
;
61
eoptions.
maxSteps
= this->
maxSteps
;
62
eoptions.
maxStepSize
= this->
maxStepSize
;
63
eoptions.
targetTolerance
= this->
targetTolerance
;
64
eoptions.
pathLimit
= this->
pathLimit
;
65
eoptions.
loopProtection
= this->
loopProtection
;
66
eoptions.
loopFraction
= this->
loopFraction
;
67
68
// Stepper options
69
eoptions.
tolerance
= this->
tolerance
;
70
eoptions.
stepSizeCutOff
= this->
stepSizeCutOff
;
71
// Action / abort list
72
eoptions.
actionList
= this->
actionList
;
73
eoptions.
abortList
=
std::move
(aborters);
74
// Copy dense environment specific parameters
75
eoptions.
meanEnergyLoss
=
meanEnergyLoss
;
76
eoptions.
includeGgradient
=
includeGgradient
;
77
eoptions.
momentumCutOff
=
momentumCutOff
;
78
// And return the options
79
return
eoptions;
80
}
81
};
82
83
}
// namespace Acts
acts
blob
sPHENIX
Core
include
Acts
Propagator
DenseEnvironmentExtension.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:33
using
1.8.2 with
sPHENIX GitHub integration