ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODForward
Root
AFPToFTrack_v1.cxx
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
// xAOD include(s):
16
#include "
xAODCore/AuxStoreAccessorMacros.h
"
17
18
// Local include(s):
19
#include "
xAODForward/versions/AFPToFHitContainer_v1.h
"
20
#include "
xAODForward/versions/AFPToFTrack_v1.h
"
21
22
namespace
xAOD
23
{
24
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPToFTrack_v1
,
int
, stationID, setStationID)
25
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPToFTrack_v1
,
int
, trainID, setTrainID)
26
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPToFTrack_v1
,
float
, trainTime, setTrainTime)
27
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPToFTrack_v1
,
int
, trainSize, setTrainSize)
28
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPToFTrack_v1
,
int
, trainNSat, setTrainNSat)
29
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPToFTrack_v1
,
int
, algID, setAlgID)
30
31
AUXSTORE_OBJECT_SETTER_AND_GETTER
(
AFPToFTrack_v1
, std::vector< AFPToFTrack_v1::AFPToFHitLink_t >, hits, setHits)
32
static
const
SG
::AuxElement::Accessor<
std
::
vector
<
AFPToFTrack_v1
::AFPToFHitLink_t> >
hitsAcc
(
"bars"
);
33
34
void
AFPToFTrack_v1
::
addBar
(
const
AFPToFHitLink_t
& link )
35
{
36
hitsAcc
( *this ).push_back( link );
37
}
38
39
void
AFPToFTrack_v1::toPersistent
() {
40
// Prepare the hits links for persistification:
41
if
(
hitsAcc
.isAvailableWritable( *
this
) ) {
42
std::vector<AFPToFTrack_v1::AFPToFHitLink_t>::iterator end =
hitsAcc
( *this ).end();
43
for
(std::vector<AFPToFTrack_v1::AFPToFHitLink_t>::iterator itr =
hitsAcc
( *this ).begin(); itr != end; ++itr )
44
itr->toPersistent();
45
46
}
47
}
48
49
}
AFPToFHitContainer_v1.h
AFPToFTrack_v1.h
Header file for the AFPToFTrack 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::AFPToFTrack_v1
Class representing a track reconstructed in AFP ToF.
Definition
AFPToFTrack_v1.h:36
xAOD::AFPToFTrack_v1::toPersistent
void toPersistent()
Function making sure that the object is ready for persistification i.e. saving.
Definition
AFPToFTrack_v1.cxx:39
xAOD::AFPToFTrack_v1::addBar
void addBar(const AFPToFHitLink_t &newHit)
Add a link to a bar used to reconstruct the track.
Definition
AFPToFTrack_v1.cxx:34
xAOD::AFPToFTrack_v1::AFPToFHitLink_t
ElementLink< AFPToFHitContainer > AFPToFHitLink_t
Type of a link to the hit.
Definition
AFPToFTrack_v1.h:39
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::hitsAcc
static const SG::AuxElement::Accessor< std::vector< AFPToFTrack_v1::AFPToFHitLink_t > > hitsAcc("bars")
Generated on
for ATLAS Offline Software by
1.17.0