ATLAS Offline Software
SiClusterLink_xk.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // Header file for class SiClusterLink_xk
8 // (c) ATLAS Detector software
10 // Class for link to SCT amd PIXEL clusters
12 // Version 1.0 3/10/2004 I.Gavrilenko
14 
15 #ifndef SiClusterLink_xk_H
16 #define SiClusterLink_xk_H
17 
19 
20 namespace InDet{
21 
22  class SiClusterLink_xk final
23  {
25  // Public methods:
27 
28  public:
29 
31  SiClusterLink_xk(const InDet::SiCluster*&,double&);
33  ~SiClusterLink_xk() = default;
35 
37  // Main methods
39 
40  const InDet::SiCluster* cluster() const {return m_cluster;}
41  const double& xi2 () const {return m_xi2;}
42  void Set(const InDet::SiCluster*&,double&);
44 
45  protected:
46 
48  // Protected Data
50 
52  double m_xi2 ;
53 
55  // Methods
57 
58  };
59 
61  // Inline methods
63 
65  {
66  m_cluster = 0 ;
67  m_xi2 = 0.;
68  }
69 
71  {
72  m_cluster = c;
73  m_xi2 = xi2;
74  }
75 
76 
77  inline void SiClusterLink_xk::Set(const InDet::SiCluster*& c, double& xi2)
78  {
79  m_cluster = c;
80  m_xi2 = xi2;
81  }
82 
84  {
85  if(L.m_xi2 < m_xi2) {
86  double x = m_xi2;
87  m_xi2 = L.m_xi2; L.m_xi2 = x;
88 
89  const InDet::SiCluster* c = m_cluster;
90  m_cluster = L.m_cluster; L.m_cluster = c;
91  }
92  }
93 
94 
95 } // end of name space
96 
97 #endif // SiClusterLink_xk
98 
99 
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
x
#define x
SiCluster.h
python.compressB64.c
def c
Definition: compressB64.py:93
InDet::SiCluster
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/SiCluster.h:40