ATLAS Offline Software
AFPTrack_v1.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
15 #ifndef XAODFORWARD_VERSIONS_AFPTRACK_V1_H
16 #define XAODFORWARD_VERSIONS_AFPTRACK_V1_H
17 
18 // general includes
19 #include<vector>
20 
21 // EDM include(s):
23 #include "AthLinks/ElementLink.h"
24 
25 // Internal include(s):
27 
28 namespace xAOD {
35  class AFPTrack_v1 : public SG::AuxElement
36  {
37  public:
40 
46  int stationID() const;
47 
57  void setStationID (int stationID);
58 
65  float xLocal() const;
66 
74  void setXLocal (float newXLocal);
75 
81  float yLocal() const;
82 
90  void setYLocal (float newYLocal);
91 
97  float zLocal() const;
98 
106  void setZLocal (float newZLocal);
107 
118  float xSlope() const;
119 
127  void setXSlope (float newXSlope);
128 
129 
140  float ySlope() const;
141 
149  void setYSlope (float newYSlope);
150 
151  // float zSlope() const;
152  // void setZSlope (float newZSlope);
153 
162  unsigned int nHoles() const;
163 
164 
172  void setNHoles (unsigned int nHoles);
173 
174 
180  int nHits() const;
181 
187  void setNHits (int nHits);
188 
204  const std::vector<AFPHitLink_t>& hits() const;
205 
211  void setHits( const std::vector<AFPHitLink_t>& newHitsVector );
212 
221  void addHit( const AFPHitLink_t& newHit);
222 
231  float chi2() const;
232 
238  void setChi2 (float newFChi2);
239 
251  int algID() const;
252 
260  void setAlgID (int newIAlgID);
261 
263  void toPersistent();
264  };
265 
266 }
267 
268 // Declare the inheritance of the type to StoreGate:
269 #include "xAODCore/BaseInfo.h"
271 
272 
273 #endif
274 
xAOD::AFPTrack_v1::setYSlope
void setYSlope(float newYSlope)
Set slope of the reconstructed track along Y axis in local coordinate system.
xAOD::AFPTrack_v1::xSlope
float xSlope() const
Slope of the reconstructed track along X axis in local coordinate system.
xAOD::AFPTrack_v1::zLocal
float zLocal() const
Track position along Z axis in station local coordinate system.
xAOD::AFPTrack_v1::setAlgID
void setAlgID(int newIAlgID)
Set reconstruction algorithm identification number.
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:472
xAOD::AFPTrack_v1::toPersistent
void toPersistent()
Function making sure that the object is ready for persistification i.e. saving.
Definition: AFPTrack_v1.cxx:44
SG_BASE
SG_BASE(xAOD::AFPTrack_v1, SG::AuxElement)
xAOD::AFPTrack_v1::ySlope
float ySlope() const
Slope of the reconstructed track along Y axis in local coordinate system.
xAOD::AFPTrack_v1::setHits
void setHits(const std::vector< AFPHitLink_t > &newHitsVector)
Set vector of links to pixels used for track reconstruction.
BaseInfo.h
xAOD::AFPTrack_v1::setZLocal
void setZLocal(float newZLocal)
Set track coordinate along Z axis in station local coordinate system.
xAOD::AFPTrack_v1::setXSlope
void setXSlope(float newXSlope)
Set slope of the reconstructed track along X axis in local coordinate system.
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::AFPTrack_v1
Class representing a track reconstructed in AFP.
Definition: AFPTrack_v1.h:36
xAOD::AFPTrack_v1::yLocal
float yLocal() const
Track position along Y axis in station local coordinate system.
xAOD::AFPTrack_v1::stationID
int stationID() const
Index of the station where track was reconstructed.
xAOD::AFPTrack_v1::nHoles
unsigned int nHoles() const
Number of empty pixels that the track passes through.
xAOD::AFPTrack_v1::algID
int algID() const
Identification number of the algorithm used to reconstruct the track.
xAOD::AFPTrack_v1::setStationID
void setStationID(int stationID)
Set index of the station where track was reconstructed.
xAOD::AFPTrack_v1::chi2
float chi2() const
value of the track fit to the selected pixels.
xAOD::AFPTrack_v1::setChi2
void setChi2(float newFChi2)
Set value of the track fit to the selected pixels.
xAOD::AFPTrack_v1::xLocal
float xLocal() const
Track position along X axis in station local coordinate system.
xAOD::AFPTrack_v1::nHits
int nHits() const
Number of pixels used to reconstruct the track.
AFPSiHitContainer.h
xAOD::AFPTrack_v1::AFPHitLink_t
ElementLink< AFPSiHitContainer > AFPHitLink_t
Type of a link to the hit.
Definition: AFPTrack_v1.h:39
xAOD::AFPTrack_v1::setNHits
void setNHits(int nHits)
Set number of pixels used to reconstruct the track.
xAOD::AFPTrack_v1::setXLocal
void setXLocal(float newXLocal)
Set track position along X axis in station local coordinate system.
xAOD::AFPTrack_v1::hits
const std::vector< AFPHitLink_t > & hits() const
Vector of links to pixels that were used to reconstruct the track.
xAOD::AFPTrack_v1::addHit
void addHit(const AFPHitLink_t &newHit)
Add a link to a pixel used to reconstruct the track.
Definition: AFPTrack_v1.cxx:39
xAOD::AFPTrack_v1::setNHoles
void setNHoles(unsigned int nHoles)
Set number of empty pixels that the track passes through.
AuxElement.h
Base class for elements of a container that can have aux data.
xAOD::AFPTrack_v1::setYLocal
void setYLocal(float newYLocal)
Set track coordinate along Y axis in station local coordinate system.