ATLAS Offline Software
Loading...
Searching...
No Matches
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
13
14
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
28namespace xAOD {
36 {
37 public:
40
46 int stationID() const;
47
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
Base class for elements of a container that can have aux data.
#define SG_BASE(D, B)
Declare that class D derives from class B.
Base class for elements of a container that can have aux data.
Definition AuxElement.h:483
Class representing a track reconstructed in AFP.
Definition AFPTrack_v1.h:36
float zLocal() const
Track position along Z axis in station local coordinate system.
void setZLocal(float newZLocal)
Set track coordinate along Z axis in station local coordinate system.
void setHits(const std::vector< AFPHitLink_t > &newHitsVector)
Set vector of links to pixels used for track reconstruction.
void setNHits(int nHits)
Set number of pixels used to reconstruct the track.
float chi2() const
value of the track fit to the selected pixels.
void addHit(const AFPHitLink_t &newHit)
Add a link to a pixel used to reconstruct the track.
void setXSlope(float newXSlope)
Set slope of the reconstructed track along X axis in local coordinate system.
void toPersistent()
Function making sure that the object is ready for persistification i.e. saving.
int nHits() const
Number of pixels used to reconstruct the track.
int algID() const
Identification number of the algorithm used to reconstruct the track.
float yLocal() const
Track position along Y axis in station local coordinate system.
float xLocal() const
Track position along X axis in station local coordinate system.
int stationID() const
Index of the station where track was reconstructed.
float xSlope() const
Slope of the reconstructed track along X axis in local coordinate system.
void setYLocal(float newYLocal)
Set track coordinate along Y axis in station local coordinate system.
void setXLocal(float newXLocal)
Set track position along X axis in station local coordinate system.
float ySlope() const
Slope of the reconstructed track along Y axis in local coordinate system.
ElementLink< AFPSiHitContainer > AFPHitLink_t
Type of a link to the hit.
Definition AFPTrack_v1.h:39
void setChi2(float newFChi2)
Set value of the track fit to the selected pixels.
void setStationID(int stationID)
Set index of the station where track was reconstructed.
void setYSlope(float newYSlope)
Set slope of the reconstructed track along Y axis in local coordinate system.
unsigned int nHoles() const
Number of empty pixels that the track passes through.
void setAlgID(int newIAlgID)
Set reconstruction algorithm identification number.
const std::vector< AFPHitLink_t > & hits() const
Vector of links to pixels that were used to reconstruct the track.
void setNHoles(unsigned int nHoles)
Set number of empty pixels that the track passes through.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.