6 using namespace SurfaceSideDefinition;
8 namespace GaussianStateConversions {
14 using SingleStatePtr = std::shared_ptr<SingleGaussianState<5>>;
20 auto sgs = std::make_shared<SingleGaussianState<5>>(
21 ic.localParameters().vector(), ic.localError().matrix(), ic.weight());
22 singleStates.push_back(sgs);
35 auto const& refTsos1 = refTsos.
components().front();
36 auto pzSign = refTsos1.localParameters().pzSign();
37 bool charged = refTsos1.charge() != 0;
39 auto const& singleStates = multiState.
components();
40 std::vector<TrajectoryStateOnSurface>
components;
41 components.reserve(singleStates.size());
42 for (
auto const& ic : singleStates) {
43 components.emplace_back((*ic).weight(),
const SingleStateContainer & components() const
access to components (single Gaussian states)
const MagneticField * magneticField() const
Mixture of multi-variate gaussian states.
const SurfaceType & surface() const
std::vector< SingleStatePtr > SingleStateContainer
SurfaceSide surfaceSide() const
Position relative to material, defined relative to momentum vector.
TrajectoryStateOnSurface tsosFromMultiGaussianState(const MultiGaussianState< 5 > &multiState, const TrajectoryStateOnSurface &refTsos)
Components const & components() const
MultiGaussianState< 5 > multiGaussianStateFromTSOS(const TrajectoryStateOnSurface &tsos)