ATLAS Offline Software
Public Member Functions | List of all members
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:
ReadCellNoiseFromCoolCompare.s1
s1
Definition: ReadCellNoiseFromCoolCompare.py:378
extractSporadic.c1
c1
Definition: extractSporadic.py:134
compileRPVLLRates.c2
c2
Definition: compileRPVLLRates.py:361
ReadCellNoiseFromCoolCompare.s2
s2
Definition: ReadCellNoiseFromCoolCompare.py:379