ATLAS Offline Software
SiSpacePointsSeed.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // Header file for class SiSpacePointsSeed
8 // (c) ATLAS Detector software
10 // Class for space points seeds
11 // Comments:
12 // Space points in m_spacepoints collection should be sorted in radius oder
13 // first space point has smallest radius
14 // last space point has bigest radius
15 // m_zvertex is z-coordinate in beam region for x=y=0.
16 //
18 // Version 1.0 18/11/2004 I.Gavrilenko
20 
21 #ifndef SiSpacePointsSeed_h
22 #define SiSpacePointsSeed_h
23 #include <vector>
25 
26 class MsgStream;
27 
28 namespace InDet {
29 
30  class SiSpacePointsSeed final{
31 
33  // Public methods:
35 
36  public:
39  const double&);
41  const Trk::SpacePoint*&, const double&);
46  ~SiSpacePointsSeed() = default;
47  void erase();
48  void add(const Trk::SpacePoint*&);
49  void setD0(const double&);
50  void setZVertex(const double&);
51  void setEta(const double&);
52  void setX1(const double&);
53  void setX2(const double&);
54  void setX3(const double&);
55  void setY1(const double&);
56  void setY2(const double&);
57  void setY3(const double&);
58  void setZ1(const double&);
59  void setZ2(const double&);
60  void setZ3(const double&);
61  void setR1(const double&);
62  void setR2(const double&);
63  void setR3(const double&);
64  void setDZDR_B(const double&);
65  void setDZDR_T(const double&);
66  void setPt(const double&);
67 
68  const std::vector<const Trk::SpacePoint*>& spacePoints() const;
69  const double& d0() const;
70  const double& zVertex() const;
71  const double& eta() const;
72  const double& x1() const;
73  const double& x2() const;
74  const double& x3() const;
75  const double& y1() const;
76  const double& y2() const;
77  const double& y3() const;
78  const double& z1() const;
79  const double& z2() const;
80  const double& z3() const;
81  const double& r1() const;
82  const double& r2() const;
83  const double& r3() const;
84  const double& dzdr_b() const;
85  const double& dzdr_t() const;
86  const double& pt() const;
87 
88  virtual MsgStream& dump(MsgStream& out) const;
89  virtual std::ostream& dump(std::ostream& out) const;
90 
92  // Protected data members
94 
95  protected:
96 
97  std::vector<const Trk::SpacePoint*> m_spacepoints;
98  double m_d0 = 0.0;
99  double m_zvertex =0.0;
100  double m_eta = 0.0 ;
101  double m_x1 = 0.0 ;
102  double m_x2 = 0.0 ;
103  double m_x3 = 0.0 ;
104  double m_y1 = 0.0 ;
105  double m_y2 = 0.0 ;
106  double m_y3 = 0.0 ;
107  double m_z1 = 0.0 ;
108  double m_z2 = 0.0 ;
109  double m_z3 = 0.0 ;
110  double m_r1 = 0.0 ;
111  double m_r2 = 0.0 ;
112  double m_r3 = 0.0 ;
113  double m_dzdr_b = 0.0 ;
114  double m_dzdr_t = 0.0 ;
115  double m_pt = 0.0 ;
116  };
117 
118  MsgStream& operator << (MsgStream& ,const SiSpacePointsSeed&);
119  std::ostream& operator << (std::ostream&,const SiSpacePointsSeed&);
120 
122  // Inline methods
124 
125  inline const std::vector<const Trk::SpacePoint*>& SiSpacePointsSeed::spacePoints() const
126  {
127  return this->m_spacepoints;
128  }
129 
131  {
132  m_spacepoints.erase(m_spacepoints.begin(),m_spacepoints.end());
133  }
134 
136  {
137  m_spacepoints.push_back(p);
138  }
139 
140  inline void SiSpacePointsSeed::setD0(const double& d0)
141  {
142  m_d0 = d0;
143  }
144 
145  inline void SiSpacePointsSeed::setZVertex(const double& z)
146  {
147  m_zvertex = z;
148  }
149 
150  inline void SiSpacePointsSeed::setEta(const double& eta)
151  {
152  m_eta = eta;
153  }
154 
155  inline void SiSpacePointsSeed::setX1(const double& x1)
156  {
157  m_x1 = x1;
158  }
159 
160  inline void SiSpacePointsSeed::setX2(const double& x2)
161  {
162  m_x2 = x2;
163  }
164 
165  inline void SiSpacePointsSeed::setX3(const double& x3)
166  {
167  m_x3 = x3;
168  }
169 
170  inline void SiSpacePointsSeed::setY1(const double& y1)
171  {
172  m_y1 = y1;
173  }
174 
175  inline void SiSpacePointsSeed::setY2(const double& y2)
176  {
177  m_y2 = y2;
178  }
179 
180  inline void SiSpacePointsSeed::setY3(const double& y3)
181  {
182  m_y3 = y3;
183  }
184 
185  inline void SiSpacePointsSeed::setZ1(const double& z1)
186  {
187  m_z1 = z1;
188  }
189 
190  inline void SiSpacePointsSeed::setZ2(const double& z2)
191  {
192  m_z2 = z2;
193  }
194 
195  inline void SiSpacePointsSeed::setZ3(const double& z3)
196  {
197  m_z3 = z3;
198  }
199 
200  inline void SiSpacePointsSeed::setR1(const double& r1)
201  {
202  m_r1 = r1;
203  }
204 
205  inline void SiSpacePointsSeed::setR2(const double& r2)
206  {
207  m_r2 = r2;
208  }
209 
210  inline void SiSpacePointsSeed::setR3(const double& r3)
211  {
212  m_r3 = r3;
213  }
214 
215  inline void SiSpacePointsSeed::setDZDR_B(const double& dzdr)
216  {
217  m_dzdr_b = dzdr;
218  }
219 
220  inline void SiSpacePointsSeed::setDZDR_T(const double& dzdr)
221  {
222  m_dzdr_t = dzdr;
223  }
224 
225  inline void SiSpacePointsSeed::setPt(const double& pt)
226  {
227  m_pt = pt;
228  }
229 
230  inline const double& SiSpacePointsSeed::d0() const
231  {
232  return m_d0;
233  }
234 
235  inline const double& SiSpacePointsSeed::zVertex() const
236  {
237  return m_zvertex;
238  }
239 
240  inline const double& SiSpacePointsSeed::eta() const
241  {
242  return m_eta;
243  }
244 
245  inline const double& SiSpacePointsSeed::x1() const
246  {
247  return m_x1;
248  }
249 
250  inline const double& SiSpacePointsSeed::x2() const
251  {
252  return m_x2;
253  }
254 
255  inline const double& SiSpacePointsSeed::x3() const
256  {
257  return m_x3;
258  }
259 
260  inline const double& SiSpacePointsSeed::y1() const
261  {
262  return m_y1;
263  }
264 
265  inline const double& SiSpacePointsSeed::y2() const
266  {
267  return m_y2;
268  }
269 
270  inline const double& SiSpacePointsSeed::y3() const
271  {
272  return m_y3;
273  }
274 
275  inline const double& SiSpacePointsSeed::z1() const
276  {
277  return m_z1;
278  }
279 
280  inline const double& SiSpacePointsSeed::z2() const
281  {
282  return m_z2;
283  }
284 
285  inline const double& SiSpacePointsSeed::z3() const
286  {
287  return m_z3;
288  }
289 
290  inline const double& SiSpacePointsSeed::r1() const
291  {
292  return m_r1;
293  }
294 
295  inline const double& SiSpacePointsSeed::r2() const
296  {
297  return m_r2;
298  }
299 
300  inline const double& SiSpacePointsSeed::r3() const
301  {
302  return m_r3;
303  }
304 
305  inline const double& SiSpacePointsSeed::dzdr_b() const
306  {
307  return m_dzdr_b;
308  }
309 
310  inline const double& SiSpacePointsSeed::dzdr_t() const
311  {
312  return m_dzdr_t;
313  }
314 
315  inline const double& SiSpacePointsSeed::pt() const
316  {
317  return m_pt;
318  }
319 
320 } // end of name space
321 
322 #endif // SiSpacePointsSeed_h
InDet::SiSpacePointsSeed::x3
const double & x3() const
Definition: SiSpacePointsSeed.h:255
InDet::SiSpacePointsSeed::m_z3
double m_z3
Definition: SiSpacePointsSeed.h:109
Trk::SpacePoint
Definition: Tracking/TrkEvent/TrkSpacePoint/TrkSpacePoint/SpacePoint.h:35
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
InDet::operator<<
MsgStream & operator<<(MsgStream &, const GNNTrackReaderTool &)
InDet::SiSpacePointsSeed::operator=
SiSpacePointsSeed & operator=(const SiSpacePointsSeed &)
Definition: SiSpacePointsSeed.cxx:65
InDet::SiSpacePointsSeed::r1
const double & r1() const
Definition: SiSpacePointsSeed.h:290
InDet::SiSpacePointsSeed::m_dzdr_t
double m_dzdr_t
Definition: SiSpacePointsSeed.h:114
InDet::SiSpacePointsSeed::x2
const double & x2() const
Definition: SiSpacePointsSeed.h:250
InDet::SiSpacePointsSeed::SiSpacePointsSeed
SiSpacePointsSeed()
Definition: SiSpacePointsSeed.cxx:25
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDet::SiSpacePointsSeed::pt
const double & pt() const
Definition: SiSpacePointsSeed.h:315
InDet::SiSpacePointsSeed::setDZDR_T
void setDZDR_T(const double &)
Definition: SiSpacePointsSeed.h:220
InDet::SiSpacePointsSeed::~SiSpacePointsSeed
~SiSpacePointsSeed()=default
InDet::SiSpacePointsSeed::d0
const double & d0() const
Definition: SiSpacePointsSeed.h:230
plotBeamSpotCompare.x2
x2
Definition: plotBeamSpotCompare.py:218
InDet::SiSpacePointsSeed::z3
const double & z3() const
Definition: SiSpacePointsSeed.h:285
InDet::SiSpacePointsSeed::setZ2
void setZ2(const double &)
Definition: SiSpacePointsSeed.h:190
InDet::SiSpacePointsSeed::setD0
void setD0(const double &)
Definition: SiSpacePointsSeed.h:140
InDet::SiSpacePointsSeed::setX1
void setX1(const double &)
Definition: SiSpacePointsSeed.h:155
test_pyathena.pt
pt
Definition: test_pyathena.py:11
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
InDet::SiSpacePointsSeed::z1
const double & z1() const
Definition: SiSpacePointsSeed.h:275
InDet::SiSpacePointsSeed::dump
virtual MsgStream & dump(MsgStream &out) const
Definition: SiSpacePointsSeed.cxx:78
InDet::SiSpacePointsSeed::y1
const double & y1() const
Definition: SiSpacePointsSeed.h:260
InDet::SiSpacePointsSeed::m_spacepoints
std::vector< const Trk::SpacePoint * > m_spacepoints
Definition: SiSpacePointsSeed.h:97
InDet::SiSpacePointsSeed::setY1
void setY1(const double &)
Definition: SiSpacePointsSeed.h:170
InDet::SiSpacePointsSeed::setR1
void setR1(const double &)
Definition: SiSpacePointsSeed.h:200
InDet::SiSpacePointsSeed::setPt
void setPt(const double &)
Definition: SiSpacePointsSeed.h:225
InDet::SiSpacePointsSeed::m_r3
double m_r3
Definition: SiSpacePointsSeed.h:112
InDet::SiSpacePointsSeed::SiSpacePointsSeed
SiSpacePointsSeed(SiSpacePointsSeed &&)=default
makeTRTBarrelCans.y1
tuple y1
Definition: makeTRTBarrelCans.py:15
InDet::SiSpacePointsSeed::setZ1
void setZ1(const double &)
Definition: SiSpacePointsSeed.h:185
InDet::SiSpacePointsSeed::setZ3
void setZ3(const double &)
Definition: SiSpacePointsSeed.h:195
InDet::SiSpacePointsSeed::m_pt
double m_pt
Definition: SiSpacePointsSeed.h:115
InDet::SiSpacePointsSeed::setY3
void setY3(const double &)
Definition: SiSpacePointsSeed.h:180
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
InDet::SiSpacePointsSeed::r3
const double & r3() const
Definition: SiSpacePointsSeed.h:300
InDet::SiSpacePointsSeed
Definition: SiSpacePointsSeed.h:30
InDet::SiSpacePointsSeed::z2
const double & z2() const
Definition: SiSpacePointsSeed.h:280
z
#define z
InDet::SiSpacePointsSeed::r2
const double & r2() const
Definition: SiSpacePointsSeed.h:295
SpacePoint.h
makeTRTBarrelCans.y2
tuple y2
Definition: makeTRTBarrelCans.py:18
InDet::SiSpacePointsSeed::setEta
void setEta(const double &)
Definition: SiSpacePointsSeed.h:150
InDet::SiSpacePointsSeed::setX3
void setX3(const double &)
Definition: SiSpacePointsSeed.h:165
InDet::SiSpacePointsSeed::m_r2
double m_r2
Definition: SiSpacePointsSeed.h:111
TRT::Track::d0
@ d0
Definition: InnerDetector/InDetCalibEvent/TRT_CalibData/TRT_CalibData/TrackInfo.h:62
InDet::SiSpacePointsSeed::m_d0
double m_d0
Definition: SiSpacePointsSeed.h:98
InDet::SiSpacePointsSeed::dzdr_b
const double & dzdr_b() const
Definition: SiSpacePointsSeed.h:305
InDet::SiSpacePointsSeed::y3
const double & y3() const
Definition: SiSpacePointsSeed.h:270
InDet::SiSpacePointsSeed::m_z2
double m_z2
Definition: SiSpacePointsSeed.h:108
InDet::SiSpacePointsSeed::setDZDR_B
void setDZDR_B(const double &)
Definition: SiSpacePointsSeed.h:215
InDet::SiSpacePointsSeed::m_y1
double m_y1
Definition: SiSpacePointsSeed.h:104
InDet::SiSpacePointsSeed::m_z1
double m_z1
Definition: SiSpacePointsSeed.h:107
InDet::SiSpacePointsSeed::m_zvertex
double m_zvertex
Definition: SiSpacePointsSeed.h:99
InDet::SiSpacePointsSeed::m_y2
double m_y2
Definition: SiSpacePointsSeed.h:105
InDet::SiSpacePointsSeed::dzdr_t
const double & dzdr_t() const
Definition: SiSpacePointsSeed.h:310
InDet::SiSpacePointsSeed::m_x3
double m_x3
Definition: SiSpacePointsSeed.h:103
InDet::SiSpacePointsSeed::setX2
void setX2(const double &)
Definition: SiSpacePointsSeed.h:160
InDet::SiSpacePointsSeed::m_r1
double m_r1
Definition: SiSpacePointsSeed.h:110
InDet::SiSpacePointsSeed::setR2
void setR2(const double &)
Definition: SiSpacePointsSeed.h:205
InDet::SiSpacePointsSeed::setZVertex
void setZVertex(const double &)
Definition: SiSpacePointsSeed.h:145
InDet::SiSpacePointsSeed::m_x2
double m_x2
Definition: SiSpacePointsSeed.h:102
InDet::SiSpacePointsSeed::x1
const double & x1() const
Definition: SiSpacePointsSeed.h:245
InDet::SiSpacePointsSeed::spacePoints
const std::vector< const Trk::SpacePoint * > & spacePoints() const
Definition: SiSpacePointsSeed.h:125
InDet::SiSpacePointsSeed::eta
const double & eta() const
Definition: SiSpacePointsSeed.h:240
InDet::SiSpacePointsSeed::m_x1
double m_x1
Definition: SiSpacePointsSeed.h:101
InDet::SiSpacePointsSeed::m_y3
double m_y3
Definition: SiSpacePointsSeed.h:106
InDet::SiSpacePointsSeed::operator=
SiSpacePointsSeed & operator=(SiSpacePointsSeed &&)=default
InDet::SiSpacePointsSeed::zVertex
const double & zVertex() const
Definition: SiSpacePointsSeed.h:235
InDet::SiSpacePointsSeed::m_eta
double m_eta
Definition: SiSpacePointsSeed.h:100
InDet::SiSpacePointsSeed::setY2
void setY2(const double &)
Definition: SiSpacePointsSeed.h:175
InDet::SiSpacePointsSeed::erase
void erase()
Definition: SiSpacePointsSeed.h:130
InDet::SiSpacePointsSeed::m_dzdr_b
double m_dzdr_b
Definition: SiSpacePointsSeed.h:113
InDet::SiSpacePointsSeed::add
void add(const Trk::SpacePoint *&)
Definition: SiSpacePointsSeed.h:135
InDet::SiSpacePointsSeed::setR3
void setR3(const double &)
Definition: SiSpacePointsSeed.h:210
InDet::SiSpacePointsSeed::y2
const double & y2() const
Definition: SiSpacePointsSeed.h:265