ATLAS Offline Software
Loading...
Searching...
No Matches
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
13
14
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
32namespace 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
88
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
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.
An STL vector of pointers that by default owns its pointed-to elements.
Base class for elements of a container that can have aux data.
Definition AuxElement.h:483
Class representing a vertex reconstructed in AFP.
void setDistA(float newDistA)
Set value of the prootn fit to the selected ToFTracks.
void setProtons(const std::vector< AFPProtonLink_t > &newProtonsVector)
Set vector of links to protons used for vertex reconstruction.
float position() const
Vertex position .
const std::vector< AFPToFTrackLink_t > & tofTracks() const
Vector of links to ToFTracks that were used to reconstruct vertex.
const std::vector< AFPProtonLink_t > & protons() const
Vector of links to protons that were used to reconstruct vertex.
float distC() const
void addProton(const AFPProtonLink_t &newProton)
Add a link to a proton used to reconstruct the vertex.
void setAlgID(int newIAlgID)
Set reconstruction algorithm identification number.
float distA() const
Distance of the proton to the selected ToFTracks.
void setDistC(float newDistC)
ElementLink< AFPProtonContainer > AFPProtonLink_t
Type of a link to the proton.
void setPosition(float newPosition)
Set vertex position.
void addToFTrack(const AFPToFTrackLink_t &newToFTrack)
Add a link to a ToFTrack used to reconstruct the vertex.
void toPersistent()
Function making sure that the object is ready for persistification i.e. saving.
ElementLink< AFPToFTrackContainer > AFPToFTrackLink_t
Type of a link to the tofTrack.
int algID() const
Identification number of the algorithm used to reconstruct the vertex.
void setToFTracks(const std::vector< AFPToFTrackLink_t > &newToFTracksVector)
Set vector of links to ToFTracks used for vertex reconstruction.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.