ATLAS Offline Software
Loading...
Searching...
No Matches
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
11namespace InDet{
12
13
15 // Object function for ordering space point in X coordinate order
17
19
20 public:
21 bool operator () (const Trk::SpacePoint* p1,const Trk::SpacePoint* p2) {
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:
33 bool operator () (const Trk::SpacePoint* p1,const Trk::SpacePoint* p2) {
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:
45 bool operator () (const Trk::SpacePoint* p1,const Trk::SpacePoint* p2) {
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:
57 bool operator () (const Trk::SpacePoint* p1,const Trk::SpacePoint* p2) {
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:
69 bool operator () (const Trk::SpacePoint* p1,const Trk::SpacePoint* p2) {
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
bool operator()(const Trk::SpacePoint *p1, const Trk::SpacePoint *p2)
bool operator()(const Trk::SpacePoint *p1, const Trk::SpacePoint *p2)
bool operator()(const Trk::SpacePoint *p1, const Trk::SpacePoint *p2)
bool operator()(const Trk::SpacePoint *p1, const Trk::SpacePoint *p2)
bool operator()(const Trk::SpacePoint *p1, const Trk::SpacePoint *p2)
bool operator()(InDet::SiSpacePointsSeed *s1, InDet::SiSpacePointsSeed *s2)
Primary Vertex Finder.