Analysis Software
Documentation for sPHENIX simulation software
 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++
13 
15 
16 namespace Acts {
17 
22 
23 template <typename action_list_t = ActionList<>,
24  typename aborter_list_t = AbortList<>>
26  : public PropagatorOptions<action_list_t, aborter_list_t> {
30  dspo) = default;
31 
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>
56  extended_aborter_list_t aborters) const {
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;
77  eoptions.momentumCutOff = momentumCutOff;
78  // And return the options
79  return eoptions;
80  }
81 };
82 
83 } // namespace Acts