ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VolumeMaterialInteraction.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file VolumeMaterialInteraction.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 
9 #pragma once
10 
15 
16 namespace Acts {
17 namespace detail {
22 
23  const Vector3D pos;
24  const double time;
25  const Vector3D dir;
26  const double momentum;
27  const double q;
28  const double qOverP;
29 
30  const double mass;
31  const int pdg;
34 
38 
39  double variancePhi = 0.;
40  double varianceTheta = 0.;
41  double varianceQoverP = 0.;
42 
43  double Eloss = 0.;
44  double nextP;
45 
54  template <typename propagator_state_t, typename stepper_t>
56  const propagator_state_t& state,
57  const stepper_t& stepper)
58  : volume(vVolume),
59  pos(stepper.position(state.stepping)),
60  time(stepper.time(state.stepping)),
61  dir(stepper.direction(state.stepping)),
62  momentum(stepper.momentum(state.stepping)),
63  q(stepper.charge(state.stepping)),
64  qOverP(q / momentum),
65  mass(state.options.mass),
66  pdg(state.options.absPdgCode),
67  performCovarianceTransport(state.stepping.covTransport),
68  nav(state.stepping.navDir),
69  variancePhi(state.stepping.cov(ePHI, ePHI)),
70  varianceTheta(state.stepping.cov(eTHETA, eTHETA)),
71  varianceQoverP(state.stepping.cov(eQOP, eQOP)) {}
72 
81  template <typename propagator_state_t>
82  bool evaluateMaterialProperties(const propagator_state_t& state) {
83  pathCorrection = 0;
85  state.navigation.currentVolume->volumeMaterial()->material(pos),
86  1); // state.stepping.StepSize
87  return slab;
88  }
89 };
90 } // namespace detail
91 } // end of namespace Acts