ATLAS Offline Software
Loading...
Searching...
No Matches
WTAObject.h File Reference
#include <iostream>
#include <algorithm>
#include <cassert>
#include <cmath>
#include "./WTASimTypes.h"
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
struct  WTA4JetERingInfo
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 16 of file WTAObject.h.

17 {
18 std::stable_sort(list.begin(), list.end(), // Use stable_sort to preserve the order of equal elements
19 [](const T &a, const T &b)
20 {
21 return a.pt() > b.pt();
22 }
23 );
24 }
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.