ATLAS Offline Software
Loading...
Searching...
No Matches
WTAObject.h File Reference
#include <iostream>
#include <algorithm>
Include dependency graph for WTAObject.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  WTATrigObj
class  WTAJet

Functions

template<typename T>
static void SortByPt (std::vector< T > &list)

Function Documentation

◆ SortByPt()

template<typename T>
void SortByPt ( std::vector< T > & list)
static

Definition at line 23 of file WTAObject.h.

24 {
25 std::stable_sort(list.begin(), list.end(), // Use stable_sort to preserve the order of equal elements
26 [](const T &a, const T &b)
27 {
28 return a.pt() > b.pt();
29 }
30 );
31 }
static Double_t a
list(name, path='/')
Definition histSizes.py:38
void stable_sort(DataModel_detail::iterator< DVL > beg, DataModel_detail::iterator< DVL > end)
Specialization of stable_sort for DataVector/List.