![]() |
LArSoft
v10_06_00
Liquid Argon Software toolkit - https://larsoft.org/
|
LArUtilityHelper class. More...
#include "LArUtilityHelper.h"
Static Public Member Functions | |
| template<typename T , typename Comparison > | |
| static std::vector< std::size_t > | GetSortIndices (const std::vector< T > &input, Comparison &compare) |
| Determine the permutation that would apply to the elements of a vector if sorted in ascending order. More... | |
| template<typename T > | |
| static void | SortByIndices (const std::vector< std::size_t > &order, std::vector< T > &vector) |
| Sort a vector in place based on a supplied index ordering. More... | |
LArUtilityHelper class.
Definition at line 21 of file LArUtilityHelper.h.
|
static |
Determine the permutation that would apply to the elements of a vector if sorted in ascending order.
| input | the vector for which an order is to be determined |
| compare | the function to use for element comparisons |
Definition at line 47 of file LArUtilityHelper.h.
|
static |
Sort a vector in place based on a supplied index ordering.
| order | the index ordering that should be applied to the vector |
| vector | the vector to be sorted in place |
Definition at line 57 of file LArUtilityHelper.h.