ATLAS Offline Software
Classes | Functions
SortHelper Namespace Reference

Classes

struct  PJcomp
 
struct  pt_sort
 

Functions

template<typename T >
sort_container_pt (T *inCont)
 
template<typename T >
constsort_container_pt (const T *inCont)
 

Function Documentation

◆ sort_container_pt() [1/2]

template<typename T >
const T SortHelper::sort_container_pt ( const T *  inCont)

Definition at line 54 of file VoronoiWeightTool.cxx.

54  {
56 
57  for(auto el : *inCont) sortedCont.push_back( el );
58  std::sort(sortedCont.begin(), sortedCont.end(), pt_sort());
59  return *sortedCont.asDataVector();
60  }

◆ sort_container_pt() [2/2]

template<typename T >
T SortHelper::sort_container_pt ( T *  inCont)

Definition at line 46 of file VoronoiWeightTool.cxx.

46  {
47  T sortedCont(SG::VIEW_ELEMENTS);
48  for(auto el : *inCont) sortedCont.push_back( el );
49  std::sort(sortedCont.begin(), sortedCont.end(), pt_sort());
50  return sortedCont;
51  }
SG::VIEW_ELEMENTS
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
Definition: OwnershipPolicy.h:18
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
std::sort
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
Definition: DVL_algorithms.h:623
ConstDataVector< T >
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35