ATLAS Offline Software
Public Member Functions | List of all members
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()

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:
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