ATLAS Offline Software
AFPTrack_v1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 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 (AFPTrack_v1, int, stationID, setStationID)
25  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPTrack_v1, float, xLocal, setXLocal)
26  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPTrack_v1, float, yLocal, setYLocal)
27  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPTrack_v1, float, zLocal, setZLocal)
28  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPTrack_v1, float, xSlope, setXSlope)
29  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPTrack_v1, float, ySlope, setYSlope)
30  // AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPTrack_v1, float, zSlope, setZSlope)
31  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPTrack_v1, unsigned int, nHoles, setNHoles)
32  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPTrack_v1, int, nHits, setNHits)
33  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPTrack_v1, float, chi2, setChi2)
34  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPTrack_v1, int, algID, setAlgID)
35 
36  AUXSTORE_OBJECT_SETTER_AND_GETTER (AFPTrack_v1, std::vector< AFPTrack_v1::AFPHitLink_t >, hits, setHits)
38 
39  void AFPTrack_v1::addHit( const AFPHitLink_t& link )
40  {
41  hitsAcc( *this ).push_back( link );
42  }
43 
45  // Prepare the hits links for persistification:
46  if( hitsAcc.isAvailableWritable( *this ) ) {
47  std::vector<AFPHitLink_t>::iterator end = hitsAcc( *this ).end();
48  for(std::vector<AFPHitLink_t>::iterator itr = hitsAcc( *this ).begin(); itr != end; ++itr )
49  itr->toPersistent();
50 
51  }
52 
53  return;
54  }
55 
56 
57 }
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::AFPTrack_v1::toPersistent
void toPersistent()
Function making sure that the object is ready for persistification i.e. saving.
Definition: AFPTrack_v1.cxx:44
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
chi2
double chi2(TH1 *h0, TH1 *h1)
Definition: comparitor.cxx:522
AFPTrack_v1.h
Header file for the AFPTrack class.
AFPSiHitContainer_v1.h
Header file with typedef for class AFPSiHitContainer_v1.
xAOD::AFPTrack_v1::addHit
void addHit(const AFPHitLink_t &newHit)
Add a link to a pixel used to reconstruct the track.
Definition: AFPTrack_v1.cxx:39
xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1
Definition: CaloRings_v1.cxx:27