Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:12:28

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 #include "Acts/MagneticField/MagneticFieldProvider.hpp"
0010 #include "Acts/Propagator/AtlasStepper.hpp"
0011 #include "Acts/Propagator/EigenStepper.hpp"
0012 #include "Acts/Propagator/StraightLineStepper.hpp"
0013 #include "Acts/Propagator/SympyStepper.hpp"
0014 
0015 #include <memory>
0016 
0017 #include "StepperBenchmarkCommons.hpp"
0018 
0019 using namespace Acts;
0020 using namespace Acts::Test;
0021 
0022 using Stepper = EigenStepper<>;
0023 
0024 int main(int argc, char* argv[]) {
0025   BenchmarkStepper benchmark;
0026   if (auto ret = benchmark.parseOptions(argc, argv)) {
0027     return *ret;
0028   }
0029   std::shared_ptr<MagneticFieldProvider> bField = benchmark.makeField();
0030   AtlasStepper atlasStepper(bField);
0031   benchmark.run(atlasStepper, "AtlasStepper");
0032   EigenStepper eigenStepper(bField);
0033   benchmark.run(eigenStepper, "EigenStepper");
0034   StraightLineStepper straightLineStepper;
0035   benchmark.run(straightLineStepper, "StraightLineStepper");
0036   SympyStepper sympyStepper(bField);
0037   benchmark.run(sympyStepper, "SympyStepper");
0038   return 0;
0039 }