ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODForward
Root
AFPTrack_v2.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
13
14
15
// xAOD include(s):
16
#include "
xAODCore/AuxStoreAccessorMacros.h
"
17
18
// Local include(s):
19
#include "
xAODForward/versions/AFPSiHitsClusterContainer_v1.h
"
20
#include "
xAODForward/versions/AFPTrack_v2.h
"
21
22
namespace
xAOD
23
{
24
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPTrack_v2
,
int
, stationID, setStationID)
25
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPTrack_v2
,
float
, xLocal, setXLocal)
26
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPTrack_v2
,
float
, yLocal, setYLocal)
27
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPTrack_v2
,
float
, zLocal, setZLocal)
28
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPTrack_v2
,
float
, xSlope, setXSlope)
29
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPTrack_v2
,
float
, ySlope, setYSlope)
30
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPTrack_v2
,
unsigned
int
, nHoles, setNHoles)
31
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPTrack_v2
,
int
, nClusters, setNClusters)
32
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPTrack_v2
,
float
,
chi2
, setChi2)
33
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPTrack_v2
,
int
, algID, setAlgID)
34
35
AUXSTORE_OBJECT_SETTER_AND_GETTER
(
AFPTrack_v2
, std::vector< AFPTrack_v2::AFPClusterLink_t >, clusters, setClusters)
36
static
const
SG
::AuxElement::Accessor<
std
::
vector
<
AFPTrack_v2
::AFPClusterLink_t> >
clustersAcc
(
"clusters"
);
37
38
void
AFPTrack_v2
::
addCluster
(
const
AFPClusterLink_t
& link )
39
{
40
clustersAcc
( *this ).push_back( link );
41
}
42
43
void
AFPTrack_v2::toPersistent
() {
44
// Prepare the clusters links for persistification:
45
if
(
clustersAcc
.isAvailableWritable( *
this
) ) {
46
std::vector<AFPTrack_v2::AFPClusterLink_t>::iterator end =
clustersAcc
( *this ).end();
47
for
(std::vector<AFPTrack_v2::AFPClusterLink_t>::iterator itr =
clustersAcc
( *this ).begin(); itr != end; ++itr )
48
itr->toPersistent();
49
50
}
51
}
52
53
}
AFPSiHitsClusterContainer_v1.h
Header file with typedef for class AFPSiHitsClusterContainer_v1.
AFPTrack_v2.h
Header file for the AFPTrack class.
AuxStoreAccessorMacros.h
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
Definition
AuxStoreAccessorMacros.h:36
AUXSTORE_OBJECT_SETTER_AND_GETTER
#define AUXSTORE_OBJECT_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of complex auxiliary properties.
Definition
AuxStoreAccessorMacros.h:88
vector
Definition
MultiHisto.h:13
xAOD::AFPTrack_v2
Class representing a track reconstructed in AFP.
Definition
AFPTrack_v2.h:37
xAOD::AFPTrack_v2::AFPClusterLink_t
ElementLink< AFPSiHitsClusterContainer > AFPClusterLink_t
Type of a link to the cluster.
Definition
AFPTrack_v2.h:40
xAOD::AFPTrack_v2::toPersistent
void toPersistent()
Function making sure that the object is ready for persistification i.e. saving.
Definition
AFPTrack_v2.cxx:43
xAOD::AFPTrack_v2::addCluster
void addCluster(const AFPClusterLink_t &newCluster)
Add a link to a cluster used to reconstruct the track.
Definition
AFPTrack_v2.cxx:38
chi2
double chi2(TH1 *h0, TH1 *h1)
Definition
comparitor.cxx:525
const
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
std
STL namespace.
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::clustersAcc
static const SG::AuxElement::Accessor< std::vector< AFPTrack_v2::AFPClusterLink_t > > clustersAcc("clusters")
Generated on
for ATLAS Offline Software by
1.17.0