Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-18 08:13:10

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 "ActsExamples/AmbiguityResolution/GreedyAmbiguityResolutionAlgorithm.hpp"
0010 #include "ActsExamples/AmbiguityResolution/ScoreBasedAmbiguityResolutionAlgorithm.hpp"
0011 #include "ActsPython/Utilities/Helpers.hpp"
0012 #include "ActsPython/Utilities/Macros.hpp"
0013 
0014 #include <memory>
0015 
0016 #include <pybind11/pybind11.h>
0017 #include <pybind11/stl.h>
0018 
0019 namespace py = pybind11;
0020 
0021 using namespace Acts;
0022 using namespace ActsExamples;
0023 
0024 namespace ActsPython {
0025 
0026 void addAmbiguityResolution(Context& ctx) {
0027   auto [m, mex] = ctx.get("main", "examples");
0028 
0029   ACTS_PYTHON_DECLARE_ALGORITHM(
0030       ActsExamples::GreedyAmbiguityResolutionAlgorithm, mex,
0031       "GreedyAmbiguityResolutionAlgorithm", inputTracks, outputTracks,
0032       maximumSharedHits, maximumIterations, nMeasurementsMin);
0033 
0034   ACTS_PYTHON_DECLARE_ALGORITHM(
0035       ActsExamples::ScoreBasedAmbiguityResolutionAlgorithm, mex,
0036       "ScoreBasedAmbiguityResolutionAlgorithm", inputTracks, configFile,
0037       outputTracks, minScore, minScoreSharedTracks, maxShared, minUnshared,
0038       maxSharedTracksPerMeasurement, useAmbiguityScoring);
0039 }
0040 
0041 }  // namespace ActsPython