Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-20 08:42:21

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 <boost/test/tools/old/interface.hpp>
0010 #include <boost/test/unit_test.hpp>
0011 
0012 #include "Acts/Utilities/Logger.hpp"
0013 #include "ActsPlugins/Mille/MillePedeError.hpp"
0014 #include "ActsPlugins/Mille/MillePedeSolver.hpp"
0015 
0016 using namespace ActsPlugins;
0017 
0018 BOOST_AUTO_TEST_SUITE(MillePedeSolverBuiltin)
0019 
0020 /// run the built-in silicon alignment test
0021 BOOST_AUTO_TEST_CASE(BuiltInSiTracker) {
0022   MillePedeSolverConfig testSolverCfg;
0023   // this tells the solver we do not use a steering file
0024   testSolverCfg.steeringFile = "";
0025   testSolverCfg.workDir = "mpTest";
0026   testSolverCfg.redirectStdout = "mpStdout.txt";
0027   // this triggers the built-in test case
0028   testSolverCfg.extraOpts = {" -t=BRLF"};
0029   auto logger =
0030       Acts::getDefaultLogger("MillePedeSolverBuiltin", Acts::Logging::INFO);
0031   auto res = runMillePedeSolver(testSolverCfg, *logger);
0032   // this one should be ok!
0033   BOOST_CHECK(res.ok());
0034   // the internal exit code should be zero
0035   BOOST_CHECK_EQUAL(res->exitCode, 0);
0036   // and the zero exit code should resolve to a "nominal exit"
0037   BOOST_CHECK_EQUAL(static_cast<int>(res->exitStatus),
0038                     static_cast<int>(MillePedeExitStatus::NominalExit));
0039 }
0040 
0041 BOOST_AUTO_TEST_SUITE_END()