ATLAS Offline Software
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
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
}
xAOD::iterator
JetConstituentVector::iterator iterator
Definition:
JetConstituentVector.cxx:68
xAOD::AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
TRTCalib_Extractor.hits
hits
Definition:
TRTCalib_Extractor.py:35
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition:
Control/AthContainers/AthContainers/Accessor.h:68
AuxStoreAccessorMacros.h
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
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition:
ICaloAffectedTool.h:24
AFPToFHitContainer_v1.h
mergePhysValFiles.end
end
Definition:
DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
AFPToFTrack_v1.h
Header file for the AFPToFTrack class.
xAOD::AFPToFTrack_v1::toPersistent
void toPersistent()
Function making sure that the object is ready for persistification i.e. saving.
Definition:
AFPToFTrack_v1.cxx:39
ElementLink
ElementLink implementation for ROOT usage.
Definition:
AthLinks/ElementLink.h:123
xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1
Definition:
CaloRings_v1.cxx:27
Generated on Tue Dec 24 2024 21:06:44 for ATLAS Offline Software by
1.8.18