ATLAS Offline Software
Loading...
Searching...
No Matches
CaloTopoTmpHashCellSort::compareAbsWithIndex< T > Class Template Reference

#include <CaloTopoTmpHashCellSort.h>

Collaboration diagram for CaloTopoTmpHashCellSort::compareAbsWithIndex< T >:

Public Member Functions

 compareAbsWithIndex ()
bool operator() (const CaloTopoTmpHashCell< T > &c1, const CaloTopoTmpHashCell< T > &c2)

Detailed Description

template<class T>
class CaloTopoTmpHashCellSort::compareAbsWithIndex< T >

Definition at line 75 of file CaloTopoTmpHashCellSort.h.

Constructor & Destructor Documentation

◆ compareAbsWithIndex()

template<class T>
CaloTopoTmpHashCellSort::compareAbsWithIndex< T >::compareAbsWithIndex ( )
inline

Definition at line 79 of file CaloTopoTmpHashCellSort.h.

79{} ;

Member Function Documentation

◆ operator()()

template<class T>
bool CaloTopoTmpHashCellSort::compareAbsWithIndex< T >::operator() ( const CaloTopoTmpHashCell< T > & c1,
const CaloTopoTmpHashCell< T > & c2 )
inline

Definition at line 80 of file CaloTopoTmpHashCellSort.h.

82 {
83 const auto s1 = std::abs(c1.getCaloTopoTmpClusterCell()->getSignedRatio());
84 const auto s2 = std::abs(c2.getCaloTopoTmpClusterCell()->getSignedRatio());
85 if (s1 == s2) {
86 return c1.getCaloTopoTmpClusterCell()->getID() > c2.getCaloTopoTmpClusterCell()->getID();
87 }
88 return s1 > s2;
89 }

The documentation for this class was generated from the following file: