ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODForward
xAODForward
versions
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):
22
#include "
AthContainers/AuxElement.h
"
23
#include "AthLinks/ElementLink.h"
24
25
// needed for forward declaration
26
#include "
AthContainers/DataVector.h
"
27
28
// Internal include(s):
29
#include "
xAODForward/AFPProtonContainer.h
"
30
#include "
xAODForward/AFPToFTrackContainer.h
"
31
32
namespace
xAOD
{
33
40
class
AFPVertex_v1
:
public
SG::AuxElement
41
{
42
public
:
43
45
typedef
ElementLink< AFPProtonContainer >
AFPProtonLink_t
;
46
48
typedef
ElementLink< AFPToFTrackContainer >
AFPToFTrackLink_t
;
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
"
187
SG_BASE
(
xAOD::AFPVertex_v1
,
SG::AuxElement
);
188
189
190
#endif
191
AFPProtonContainer.h
AFPToFTrackContainer.h
AuxElement.h
Base class for elements of a container that can have aux data.
SG_BASE
#define SG_BASE(D, B)
Declare that class D derives from class B.
Definition
Control/AthenaKernel/AthenaKernel/BaseInfo.h:243
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
BaseInfo.h
ElementLink< AFPProtonContainer >
xAOD::AFPVertex_v1
Class representing a vertex reconstructed in AFP.
Definition
AFPVertex_v1.h:41
xAOD::AFPVertex_v1::setDistA
void setDistA(float newDistA)
Set value of the prootn fit to the selected ToFTracks.
xAOD::AFPVertex_v1::setProtons
void setProtons(const std::vector< AFPProtonLink_t > &newProtonsVector)
Set vector of links to protons used for vertex reconstruction.
xAOD::AFPVertex_v1::position
float position() const
Vertex position .
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::protons
const std::vector< AFPProtonLink_t > & protons() const
Vector of links to protons that were used to reconstruct vertex.
xAOD::AFPVertex_v1::distC
float distC() const
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
xAOD::AFPVertex_v1::setAlgID
void setAlgID(int newIAlgID)
Set reconstruction algorithm identification number.
xAOD::AFPVertex_v1::distA
float distA() const
Distance of the proton to the selected ToFTracks.
xAOD::AFPVertex_v1::setDistC
void setDistC(float newDistC)
xAOD::AFPVertex_v1::AFPProtonLink_t
ElementLink< AFPProtonContainer > AFPProtonLink_t
Type of a link to the proton.
Definition
AFPVertex_v1.h:45
xAOD::AFPVertex_v1::setPosition
void setPosition(float newPosition)
Set vertex position.
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
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
xAOD::AFPVertex_v1::algID
int algID() const
Identification number of the algorithm used to reconstruct the vertex.
xAOD::AFPVertex_v1::setToFTracks
void setToFTracks(const std::vector< AFPToFTrackLink_t > &newToFTracksVector)
Set vector of links to ToFTracks used for vertex reconstruction.
SG::AuxElement
AuxElement(SG::AuxVectorData *container, size_t index)
Base class for elements of a container that can have aux data.
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
Generated on
for ATLAS Offline Software by
1.17.0