![]() |
Analysis Software
Documentation for sPHENIX simulation software
|
Onnx model implementation for track scoring and selection. More...
#include <acts/blob/sPHENIX/Plugins/Onnx/include/Acts/Plugins/Onnx/AmbiguityTrackClassifier.hpp>
Collaboration diagram for Acts::AmbiguityTrackClassifier:Public Member Functions | |
| AmbiguityTrackClassifier (const char *modelPath) | |
| template<typename track_container_t , typename traj_t , template< typename > class holder_t> | |
| std::vector< std::vector< float > > | inferScores (std::unordered_map< int, std::vector< int >> &clusters, const Acts::TrackContainer< track_container_t, traj_t, holder_t > &tracks) const |
| std::vector< int > | trackSelection (std::unordered_map< int, std::vector< int >> &clusters, std::vector< std::vector< float >> &outputTensor) const |
| template<typename track_container_t , typename traj_t , template< typename > class holder_t> | |
| std::vector< int > | solveAmbuguity (std::unordered_map< int, std::vector< int >> &clusters, const Acts::TrackContainer< track_container_t, traj_t, holder_t > &tracks) const |
Private Attributes | |
| Ort::Env | m_env |
| Acts::OnnxRuntimeBase | m_duplicateClassifier |
Onnx model implementation for track scoring and selection.
Definition at line 25 of file AmbiguityTrackClassifier.hpp.
View newest version in sPHENIX GitHub at line 25 of file AmbiguityTrackClassifier.hpp
|
inline |
Construct the ambiguity scoring algorithm.
| modelPath | path to the model file |
Definition at line 30 of file AmbiguityTrackClassifier.hpp.
View newest version in sPHENIX GitHub at line 30 of file AmbiguityTrackClassifier.hpp
|
inline |
Compute a score for each track to be used in the track selection
| clusters | is a map of clusters, each cluster correspond to a vector of track ID |
| tracks | is the input track container |
Definition at line 41 of file AmbiguityTrackClassifier.hpp.
View newest version in sPHENIX GitHub at line 41 of file AmbiguityTrackClassifier.hpp
References _, clusters, Acts::VectorHelpers::eta(), m_duplicateClassifier, Acts::MultiTrajectoryHelpers::TrajectoryState::nStates, Acts::VectorHelpers::phi(), Acts::OnnxRuntimeBase::runONNXInference(), trackID, and Acts::MultiTrajectoryHelpers::trajectoryState().
Referenced by solveAmbuguity().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Select the track associated with each cluster
| clusters | is a map of clusters, each cluster correspond to a vector of track ID |
| tracks | is the input track container |
Definition at line 112 of file AmbiguityTrackClassifier.hpp.
View newest version in sPHENIX GitHub at line 112 of file AmbiguityTrackClassifier.hpp
References clusters, inferScores(), and trackSelection().
Here is the call graph for this function:
|
inline |
Select the track associated with each cluster based on the score vector
| clusters | is a map of clusters, each cluster correspond to a vector of track ID |
| outputTensor | is the score vector obtained from inferScores. |
Definition at line 83 of file AmbiguityTrackClassifier.hpp.
View newest version in sPHENIX GitHub at line 83 of file AmbiguityTrackClassifier.hpp
References clusters.
Referenced by solveAmbuguity().
Here is the caller graph for this function:
|
private |
Definition at line 127 of file AmbiguityTrackClassifier.hpp.
View newest version in sPHENIX GitHub at line 127 of file AmbiguityTrackClassifier.hpp
Referenced by inferScores().
|
private |
Definition at line 125 of file AmbiguityTrackClassifier.hpp.
View newest version in sPHENIX GitHub at line 125 of file AmbiguityTrackClassifier.hpp