ATLAS Offline Software
AFPVertex_v1.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
15 #ifndef XAODFORWARD_VERSIONS_AFPVERTEX_V1_H
16 #define XAODFORWARD_VERSIONS_AFPVERTEX_V1_H
17 
18 // general includes
19 #include<vector>
20 
21 // EDM include(s):
23 #include "AthLinks/ElementLink.h"
24 
25 // needed for forward declaration
27 
28 // Internal include(s):
31 
32 namespace xAOD {
33 
41  {
42  public:
43 
46 
49 
55  float position() const;
56 
64  void setPosition (float newPosition);
65 
81  const std::vector<AFPProtonLink_t>& protons() const;
82 
89  void setProtons( const std::vector<AFPProtonLink_t>& newProtonsVector );
90 
91 
100  void addProton( const AFPProtonLink_t& newProton);
101 
102 
118  const std::vector<AFPToFTrackLink_t>& tofTracks() const;
119 
125  void setToFTracks( const std::vector<AFPToFTrackLink_t>& newToFTracksVector );
126 
135  void addToFTrack( const AFPToFTrackLink_t& newToFTrack);
136 
137 
146  float distA() const;
147  float distC() const;
148 
154  void setDistA (float newDistA);
155  void setDistC (float newDistC);
156 
168  int algID() const;
169 
177  void setAlgID (int newIAlgID);
178 
180  void toPersistent();
181  };
182 
183 }
184 
185 // Declare the inheritance of the type to StoreGate:
186 #include "xAODCore/BaseInfo.h"
188 
189 
190 #endif
191 
xAOD::AFPVertex_v1::toPersistent
void toPersistent()
Function making sure that the object is ready for persistification i.e. saving.
Definition: AFPVertex_v1.cxx:54
xAOD::AFPVertex_v1::AFPToFTrackLink_t
ElementLink< AFPToFTrackContainer > AFPToFTrackLink_t
Type of a link to the tofTrack.
Definition: AFPVertex_v1.h:48
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:446
xAOD::AFPVertex_v1::position
float position() const
Vertex position .
xAOD::AFPVertex_v1::setDistC
void setDistC(float newDistC)
xAOD::AFPVertex_v1::setToFTracks
void setToFTracks(const std::vector< AFPToFTrackLink_t > &newToFTracksVector)
Set vector of links to ToFTracks used for vertex reconstruction.
BaseInfo.h
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::AFPVertex_v1::tofTracks
const std::vector< AFPToFTrackLink_t > & tofTracks() const
Vector of links to ToFTracks that were used to reconstruct vertex.
xAOD::AFPVertex_v1::setDistA
void setDistA(float newDistA)
Set value of the prootn fit to the selected ToFTracks.
xAOD::AFPVertex_v1::algID
int algID() const
Identification number of the algorithm used to reconstruct the vertex.
xAOD::AFPVertex_v1::AFPProtonLink_t
ElementLink< AFPProtonContainer > AFPProtonLink_t
Type of a link to the proton.
Definition: AFPVertex_v1.h:45
xAOD::AFPVertex_v1::addProton
void addProton(const AFPProtonLink_t &newProton)
Add a link to a proton used to reconstruct the vertex.
Definition: AFPVertex_v1.cxx:37
AFPProtonContainer.h
xAOD::AFPVertex_v1::setPosition
void setPosition(float newPosition)
Set vertex position.
xAOD::AFPVertex_v1::setAlgID
void setAlgID(int newIAlgID)
Set reconstruction algorithm identification number.
xAOD::AFPVertex_v1::addToFTrack
void addToFTrack(const AFPToFTrackLink_t &newToFTrack)
Add a link to a ToFTrack used to reconstruct the vertex.
Definition: AFPVertex_v1.cxx:46
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
AFPToFTrackContainer.h
xAOD::AFPVertex_v1::distC
float distC() const
xAOD::AFPVertex_v1::distA
float distA() const
Distance of the proton to the selected ToFTracks.
xAOD::AFPVertex_v1
Class representing a vertex reconstructed in AFP.
Definition: AFPVertex_v1.h:41
xAOD::AFPVertex_v1::protons
const std::vector< AFPProtonLink_t > & protons() const
Vector of links to protons that were used to reconstruct vertex.
SG_BASE
SG_BASE(xAOD::AFPVertex_v1, SG::AuxElement)
xAOD::AFPVertex_v1::setProtons
void setProtons(const std::vector< AFPProtonLink_t > &newProtonsVector)
Set vector of links to protons used for vertex reconstruction.
AuxElement.h
Base class for elements of a container that can have aux data.