ATLAS Offline Software
TrigSiSpacePoint.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGSISPACEPOINT_H
6 #define TRIGSISPACEPOINT_H
7 #include<utility>
8 #include "Identifier/Identifier.h"
11 
13 
14 public:
15 
16  // Constructor from single cluster using cylindrical co-ordinates, no. errors
18  const Identifier& elementId, long layer,
19  double r, double phi, double z,
20  double dr=0.0, double dphi=0.0, double dz=0.0 ) :
22  m_clusters(cluster1, 0),
23  m_dphi(dphi),
24  m_elementId(elementId) {};
25 
26  // Constructor from two clusters using cylindrical co-ordinates, no. errors
28  const InDet::SiCluster* cluster2,
29  const Identifier& elementId, long layer,
30  double r, double phi, double z,
31  double dr=0.0, double dphi=0.0, double dz=0.0) :
33  m_clusters(cluster1, cluster2),
34  m_dphi(dphi),
35  m_elementId(elementId) {};
36 
37  // Destructor
38  virtual ~TrigSiSpacePoint() {};
39 
40  //Setter methods
41  void locT(const double locT) {m_locT = locT;}
42  void locL( const double locL ) {m_locL = locL; }
43 
44  // Methods to return values of data members
45  const Identifier& identify() const {return m_elementId;}
46  double dphi() const {return m_dphi;}
47  double locT() const {return m_locT;}
48  double locL() const {return m_locL;}
49  double original_r() const {return m_original_r;}
50  double original_phi() const {return m_original_phi;}
51  double original_x() const {return m_original_x;}
52  double original_y() const {return m_original_y;}
53 
54 
55  // Methods to retrieve data members
56  std::pair < const InDet::SiCluster*, const InDet::SiCluster* > clusters() const {
57  return m_clusters;
58  }
59 
60 private:
61 
62  std::pair<const InDet::SiCluster*, const InDet::SiCluster*> m_clusters;
63  double m_dphi{};
64  double m_locT{};
65  double m_locL{};
66  double m_original_r{};
67  double m_original_phi{};
68  double m_original_x{};
69  double m_original_y{};
70 
72 };
73 
74 #endif
75 
76 
77 
78 
TrigSiSpacePoint::m_original_phi
double m_original_phi
Definition: TrigSiSpacePoint.h:67
TrigSiSpacePoint::identify
const Identifier & identify() const
Definition: TrigSiSpacePoint.h:45
TrigSiSpacePoint::m_clusters
std::pair< const InDet::SiCluster *, const InDet::SiCluster * > m_clusters
Definition: TrigSiSpacePoint.h:62
TrigSiSpacePoint::locT
double locT() const
Definition: TrigSiSpacePoint.h:47
TrigSiSpacePoint::clusters
std::pair< const InDet::SiCluster *, const InDet::SiCluster * > clusters() const
Definition: TrigSiSpacePoint.h:56
TrigSiSpacePointBase::phi
double phi() const
Definition: TrigSiSpacePointBase.h:62
TrigSiSpacePointBase::z
double z() const
Definition: TrigSiSpacePointBase.h:63
TrigSiSpacePoint
Definition: TrigSiSpacePoint.h:12
TrigSiSpacePoint::original_r
double original_r() const
Definition: TrigSiSpacePoint.h:49
TrigSiSpacePoint::m_elementId
const Identifier m_elementId
Definition: TrigSiSpacePoint.h:71
TrigSiSpacePoint::locL
double locL() const
Definition: TrigSiSpacePoint.h:48
TrigSiSpacePoint::dphi
double dphi() const
Definition: TrigSiSpacePoint.h:46
TrigSiSpacePointBase::r
double r() const
Definition: TrigSiSpacePointBase.h:61
TrigSiSpacePointBase::layer
long layer() const
Definition: TrigSiSpacePointBase.h:68
TrigSiSpacePoint::original_x
double original_x() const
Definition: TrigSiSpacePoint.h:51
TrigSiSpacePointBase::dz
double dz() const
Definition: TrigSiSpacePointBase.h:65
TrigSiSpacePoint::locL
void locL(const double locL)
Definition: TrigSiSpacePoint.h:42
TrigSiSpacePointBase.h
TrigSiSpacePoint::TrigSiSpacePoint
TrigSiSpacePoint(const InDet::SiCluster *cluster1, const InDet::SiCluster *cluster2, const Identifier &elementId, long layer, double r, double phi, double z, double dr=0.0, double dphi=0.0, double dz=0.0)
Definition: TrigSiSpacePoint.h:27
TrigSiSpacePoint::original_y
double original_y() const
Definition: TrigSiSpacePoint.h:52
TrigSiSpacePoint::m_locT
double m_locT
Definition: TrigSiSpacePoint.h:64
TrigSiSpacePoint::~TrigSiSpacePoint
virtual ~TrigSiSpacePoint()
Definition: TrigSiSpacePoint.h:38
TrigSiSpacePoint::TrigSiSpacePoint
TrigSiSpacePoint(const InDet::SiCluster *cluster1, const Identifier &elementId, long layer, double r, double phi, double z, double dr=0.0, double dphi=0.0, double dz=0.0)
Definition: TrigSiSpacePoint.h:17
TrigSiSpacePointBase::dr
double dr() const
Definition: TrigSiSpacePointBase.h:64
TrigSiSpacePoint::m_locL
double m_locL
Definition: TrigSiSpacePoint.h:65
TrigSiSpacePoint::m_dphi
double m_dphi
Definition: TrigSiSpacePoint.h:63
SiCluster.h
TrigSiSpacePoint::original_phi
double original_phi() const
Definition: TrigSiSpacePoint.h:50
TrigSiSpacePoint::m_original_x
double m_original_x
Definition: TrigSiSpacePoint.h:68
TrigSiSpacePoint::locT
void locT(const double locT)
Definition: TrigSiSpacePoint.h:41
TrigSiSpacePointBase
Definition: TrigSiSpacePointBase.h:23
InDet::SiCluster
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/SiCluster.h:40
TrigSiSpacePoint::m_original_r
double m_original_r
Definition: TrigSiSpacePoint.h:66
TrigSiSpacePoint::m_original_y
double m_original_y
Definition: TrigSiSpacePoint.h:69
Identifier
Definition: IdentifierFieldParser.cxx:14