Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:11:46

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 #pragma once
0010 
0011 #include "Acts/EventData/TrackParameters.hpp"
0012 #include "Acts/Propagator/MaterialInteractor.hpp"
0013 #include "Acts/Propagator/PropagatorStatistics.hpp"
0014 #include "Acts/Propagator/detail/SteppingLogger.hpp"
0015 
0016 #include <vector>
0017 
0018 namespace ActsExamples {
0019 
0020 struct PropagationSummary {
0021   explicit PropagationSummary(Acts::BoundTrackParameters startParameters_)
0022       : startParameters(std::move(startParameters_)) {}
0023 
0024   /// The start parameters
0025   Acts::BoundTrackParameters startParameters;
0026 
0027   /// Totoal number of successful steps
0028   std::size_t nSteps = 0;
0029 
0030   /// Totoal number of attempted steps
0031   std::size_t nStepTrials = 0;
0032 
0033   /// Path length
0034   double pathLength = 0;
0035 
0036   /// Steps
0037   std::vector<Acts::detail::Step> steps;
0038 
0039   /// Propagation statistics
0040   Acts::PropagatorStatistics statistics;
0041 };
0042 
0043 using PropagationSummaries = std::vector<PropagationSummary>;
0044 
0045 /// Using some short hands for Recorded Material
0046 using RecordedMaterial = Acts::MaterialInteractor::result_type;
0047 
0048 /// And recorded material track
0049 /// - this is start:  position, start momentum
0050 ///   and the Recorded material
0051 using RecordedMaterialTrack =
0052     std::pair<std::pair<Acts::Vector3, Acts::Vector3>, RecordedMaterial>;
0053 
0054 /// Finally the output of the propagation test
0055 using PropagationOutput = std::pair<PropagationSummary, RecordedMaterial>;
0056 
0057 }  // namespace ActsExamples