ATLAS Offline Software
TrigSiSpacePoint.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 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_locT(0.), m_locL(0.),
25  m_original_r(0.),
26  m_original_phi(0.),
27  m_original_x(0.),
28  m_original_y(0.),
29  m_elementId(elementId) {};
30 
31  // Constructor from two clusters using cylindrical co-ordinates, no. errors
33  const InDet::SiCluster* cluster2,
34  const Identifier& elementId, long layer,
35  double r, double phi, double z,
36  double dr=0.0, double dphi=0.0, double dz=0.0) :
38  m_clusters(cluster1, cluster2),
39  m_dphi(dphi),
40  m_original_r(0.),
41  m_original_phi(0.),
42  m_original_x(0.),
43  m_original_y(0.),
44  m_elementId(elementId) {};
45 
46  // Destructor
47  virtual ~TrigSiSpacePoint() {};
48 
49  //Setter methods
50  void locT(const double locT) {m_locT = locT;}
51  void locL( const double locL ) {m_locL = locL; }
52 
53  // Methods to return values of data members
54  const Identifier& identify() const {return m_elementId;}
55  double dphi() const {return m_dphi;}
56  double locT() const {return m_locT;}
57  double locL() const {return m_locL;}
58  double original_r() const {return m_original_r;}
59  double original_phi() const {return m_original_phi;}
60  double original_x() const {return m_original_x;}
61  double original_y() const {return m_original_y;}
62 
63 
64  // Methods to retrieve data members
65  std::pair < const InDet::SiCluster*, const InDet::SiCluster* > clusters() const {
66  return m_clusters;
67  }
68 
69 private:
70 
71  std::pair<const InDet::SiCluster*, const InDet::SiCluster*> m_clusters;
72  double m_dphi;
73  double m_locT;
74  double m_locL;
75  double m_original_r;
76  double m_original_phi;
77  double m_original_x;
78  double m_original_y;
79 
81 };
82 
83 #endif
84 
85 
86 
87 
TrigSiSpacePoint::m_original_phi
double m_original_phi
Definition: TrigSiSpacePoint.h:76
TrigSiSpacePoint::identify
const Identifier & identify() const
Definition: TrigSiSpacePoint.h:54
TrigSiSpacePoint::m_clusters
std::pair< const InDet::SiCluster *, const InDet::SiCluster * > m_clusters
Definition: TrigSiSpacePoint.h:71
TrigSiSpacePoint::locT
double locT() const
Definition: TrigSiSpacePoint.h:56
TrigSiSpacePoint::clusters
std::pair< const InDet::SiCluster *, const InDet::SiCluster * > clusters() const
Definition: TrigSiSpacePoint.h:65
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:58
TrigSiSpacePoint::m_elementId
const Identifier m_elementId
Definition: TrigSiSpacePoint.h:80
TrigSiSpacePoint::locL
double locL() const
Definition: TrigSiSpacePoint.h:57
TrigSiSpacePoint::dphi
double dphi() const
Definition: TrigSiSpacePoint.h:55
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:60
TrigSiSpacePointBase::dz
double dz() const
Definition: TrigSiSpacePointBase.h:65
TrigSiSpacePoint::locL
void locL(const double locL)
Definition: TrigSiSpacePoint.h:51
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:32
TrigSiSpacePoint::original_y
double original_y() const
Definition: TrigSiSpacePoint.h:61
TrigSiSpacePoint::m_locT
double m_locT
Definition: TrigSiSpacePoint.h:73
TrigSiSpacePoint::~TrigSiSpacePoint
virtual ~TrigSiSpacePoint()
Definition: TrigSiSpacePoint.h:47
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:74
TrigSiSpacePoint::m_dphi
double m_dphi
Definition: TrigSiSpacePoint.h:72
SiCluster.h
TrigSiSpacePoint::original_phi
double original_phi() const
Definition: TrigSiSpacePoint.h:59
TrigSiSpacePoint::locT
void locT(const double locT)
Definition: TrigSiSpacePoint.h:50
TrigSiSpacePoint::m_original_x
double m_original_x
Definition: TrigSiSpacePoint.h:77
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:75
TrigSiSpacePoint::m_original_y
double m_original_y
Definition: TrigSiSpacePoint.h:78
Identifier
Definition: IdentifierFieldParser.cxx:14