ATLAS Offline Software
Public Member Functions | List of all members
FPGATrackSimLLPRoadFilterTool::HitCompare Struct Reference
Collaboration diagram for FPGATrackSimLLPRoadFilterTool::HitCompare:

Public Member Functions

bool operator() (const FPGATrackSimHit *a, const FPGATrackSimHit *b) const
 

Detailed Description

Definition at line 29 of file FPGATrackSimLLPRoadFilterTool.h.

Member Function Documentation

◆ operator()()

bool FPGATrackSimLLPRoadFilterTool::HitCompare::operator() ( const FPGATrackSimHit a,
const FPGATrackSimHit b 
) const
inline

Definition at line 30 of file FPGATrackSimLLPRoadFilterTool.h.

30  {
31  auto hash_a = a->getIdentifierHash();
32  auto hash_b = b->getIdentifierHash();
33  if ( hash_a == hash_b ) {
34  auto phi_a = a->getPhiCoord();
35  auto phi_b = b->getPhiCoord();
36  if ( phi_a == phi_b ) {
37  auto eta_a = a->getEtaCoord();
38  auto eta_b = b->getEtaCoord();
39  if ( eta_a == eta_b) {
40  auto layer_a = a->getLayer();
41  auto layer_b = b->getLayer();
42  return layer_a < layer_b;
43  }
44  return eta_a < eta_b;
45  }
46  return phi_a < phi_b;
47  }
48  return hash_a < hash_b;
49  }

The documentation for this struct was generated from the following file:
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
a
TList * a
Definition: liststreamerinfos.cxx:10