ATLAS Offline Software
Functions
ClusterSortingAlg.cxx File Reference
#include "L1TopoAlgorithms/ClusterSortingAlg.h"
#include "L1TopoEvent/TOBArray.h"
#include "L1TopoEvent/ClusterTOBArray.h"
#include "L1TopoEvent/GenericTOB.h"
#include <algorithm>
Include dependency graph for ClusterSortingAlg.cxx:

Go to the source code of this file.

Functions

bool SortByEtLargestFirst (TCS::GenericTOB *tob1, TCS::GenericTOB *tob2)
 
bool SortByEtSmallestFirst (TCS::GenericTOB *tob1, TCS::GenericTOB *tob2)
 

Function Documentation

◆ SortByEtLargestFirst()

bool SortByEtLargestFirst ( TCS::GenericTOB tob1,
TCS::GenericTOB tob2 
)

Definition at line 17 of file ClusterSortingAlg.cxx.

18 {
19  return tob1->Et() > tob2->Et();
20 }

◆ SortByEtSmallestFirst()

bool SortByEtSmallestFirst ( TCS::GenericTOB tob1,
TCS::GenericTOB tob2 
)

Definition at line 22 of file ClusterSortingAlg.cxx.

23 {
24  return tob1->Et() < tob2->Et();
25 }
TCS::GenericTOB::Et
unsigned int Et() const
Definition: GenericTOB.h:113