ATLAS Offline Software
Loading...
Searching...
No Matches
InDet::compare_SiCluster Struct Reference

#include <PixelGangedClusterAmbiguities.h>

Collaboration diagram for InDet::compare_SiCluster:

Public Member Functions

bool operator() (const ::InDet::SiCluster *const &a, const ::InDet::SiCluster *const &b) const

Detailed Description

Definition at line 22 of file PixelGangedClusterAmbiguities.h.

Member Function Documentation

◆ operator()()

bool InDet::compare_SiCluster::operator() ( const ::InDet::SiCluster *const & a,
const ::InDet::SiCluster *const & b ) const
inline

Definition at line 24 of file PixelGangedClusterAmbiguities.h.

26 {
27 Identifier ida = (a!=0 ? a->identify() : Identifier(0));
28 Identifier idb = (b!=0 ? b->identify() : Identifier(0));
29
30 // sometimes different clusters have the same identity
31 // use the size to determine the order/break degeneracy
32 if( ida == idb && ida != Identifier(0) ) {
33 return (a->width() < b->width());
34 }
35
36 return ida < idb;
37 }
static Double_t a

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