ATLAS Offline Software
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 
15 // xAOD include(s):
17 
18 // Local include(s):
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 
39  {
40  clustersAcc( *this ).push_back( link );
41  }
42 
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 }
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
AFPSiHitsClusterContainer_v1.h
Header file with typedef for class AFPSiHitsClusterContainer_v1.
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
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::AFPTrack_v2::toPersistent
void toPersistent()
Function making sure that the object is ready for persistification i.e. saving.
Definition: AFPTrack_v2.cxx:43
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
chi2
double chi2(TH1 *h0, TH1 *h1)
Definition: comparitor.cxx:522
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
AFPTrack_v2.h
Header file for the AFPTrack class.
RunTileMonitoring.clusters
clusters
Definition: RunTileMonitoring.py:133
xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1
Definition: CaloRings_v1.cxx:27