ATLAS Offline Software
SiSpacePointsComparison.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef SiSpacePointsComparison_h
6 #define SiSpacePointsComparison_h
7 
8 #include "SiSpacePointsSeedTool_xk/SiSpacePointForSeed.h"
10 
11 namespace InDet{
12 
13 
15  // Object function for ordering space point in X coordinate order
17 
19 
20  public:
22  return((*p1).globalPosition().x()<(*p2).globalPosition().x());
23  }
24  };
25 
27  // Object function for ordering space point in Y coordinate order
29 
31 
32  public:
34  return((*p1).globalPosition().y()<(*p2).globalPosition().y());
35  }
36  };
37 
39  // Object function for ordering space point in Z coordinate order
41 
43 
44  public:
46  return((*p1).globalPosition().z()<(*p2).globalPosition().z());
47  }
48  };
49 
51  // Object function for ordering space point in azimuthal angle order
53 
55 
56  public:
58  return((*p1).globalPosition().phi()<(*p2).globalPosition().phi());
59  }
60  };
61 
63  // Object function for ordering space point in radius order
65 
67 
68  public:
70  return((*p1).globalPosition().perp()<(*p2).globalPosition().perp());
71  }
72  };
73 
75  // Object function for ordering space point seed in Z order
77 
79 
80  public:
81 
83 
84  return((*s1).zVertex() < (*s2).zVertex());
85  }
86  };
87 }
88 #endif // SiSpacePointsComparison_h
Trk::SpacePoint
Definition: Tracking/TrkEvent/TrkSpacePoint/TrkSpacePoint/SpacePoint.h:35
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
TRTCalib_cfilter.p1
p1
Definition: TRTCalib_cfilter.py:130
InDet::SiSpacePointsComparison_Z
Definition: SiSpacePointsComparison.h:42
InDet::SiSpacePointsComparison_X::operator()
bool operator()(const Trk::SpacePoint *p1, const Trk::SpacePoint *p2)
Definition: SiSpacePointsComparison.h:21
InDet::SiSpacePointsComparison_Phi
Definition: SiSpacePointsComparison.h:54
InDet::SiSpacePointsSeedComparison_Z::operator()
bool operator()(InDet::SiSpacePointsSeed *s1, InDet::SiSpacePointsSeed *s2)
Definition: SiSpacePointsComparison.h:82
InDet::SiSpacePointsSeedComparison_Z
Definition: SiSpacePointsComparison.h:78
TRTCalib_cfilter.p2
p2
Definition: TRTCalib_cfilter.py:131
InDet::SiSpacePointsSeed
Definition: SiSpacePointsSeed.h:30
InDet::SiSpacePointsComparison_Phi::operator()
bool operator()(const Trk::SpacePoint *p1, const Trk::SpacePoint *p2)
Definition: SiSpacePointsComparison.h:57
SpacePoint.h
InDet::SiSpacePointsComparison_R::operator()
bool operator()(const Trk::SpacePoint *p1, const Trk::SpacePoint *p2)
Definition: SiSpacePointsComparison.h:69
InDet::SiSpacePointsComparison_X
Definition: SiSpacePointsComparison.h:18
InDet::SiSpacePointsComparison_Y::operator()
bool operator()(const Trk::SpacePoint *p1, const Trk::SpacePoint *p2)
Definition: SiSpacePointsComparison.h:33
ReadCellNoiseFromCoolCompare.s2
s2
Definition: ReadCellNoiseFromCoolCompare.py:379
InDet::SiSpacePointsComparison_Z::operator()
bool operator()(const Trk::SpacePoint *p1, const Trk::SpacePoint *p2)
Definition: SiSpacePointsComparison.h:45
InDet::SiSpacePointsComparison_R
Definition: SiSpacePointsComparison.h:66
InDet::SiSpacePointsComparison_Y
Definition: SiSpacePointsComparison.h:30