ATLAS Offline Software
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):
17 
18 // Local include(s):
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)
33 
35  {
36  hitsAcc( *this ).push_back( link );
37  }
38 
40  // Prepare the hits links for persistification:
41  if( hitsAcc.isAvailableWritable( *this ) ) {
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
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:66
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
LArG4ShowerLibProcessing.hits
hits
Definition: LArG4ShowerLibProcessing.py:136
xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1
Definition: CaloRings_v1.cxx:27