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

#include <CaloTopoTmpHashCellSort.h>

Collaboration diagram for CaloTopoTmpHashCellSort::compareWithIndex< T >:

Public Member Functions

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

Detailed Description

template<class T>
class CaloTopoTmpHashCellSort::compareWithIndex< T >

Definition at line 56 of file CaloTopoTmpHashCellSort.h.

Constructor & Destructor Documentation

◆ compareWithIndex()

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

Definition at line 60 of file CaloTopoTmpHashCellSort.h.

60{} ;

Member Function Documentation

◆ operator()()

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

Definition at line 61 of file CaloTopoTmpHashCellSort.h.

63 {
64 const auto s1 = c1.getCaloTopoTmpClusterCell()->getSignedRatio();
65 const auto s2 = c2.getCaloTopoTmpClusterCell()->getSignedRatio();
66 if (s1 == s2) {
67 return c1.getCaloTopoTmpClusterCell()->getID() > c2.getCaloTopoTmpClusterCell()->getID();
68 }
69 return s1 > s2;
70 }

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