ATLAS Offline Software
AFPSiHitsCluster_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):
20 
21 
22 namespace xAOD
23 {
24  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPSiHitsCluster_v1, int, stationID, setStationID)
25  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPSiHitsCluster_v1, int, pixelLayerID, setPixelLayerID)
26  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPSiHitsCluster_v1, float, xLocal, setXLocal)
27  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPSiHitsCluster_v1, float, xLocalErr, setXLocalErr)
28  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPSiHitsCluster_v1, float, yLocal, setYLocal)
29  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPSiHitsCluster_v1, float, yLocalErr, setYLocalErr)
30  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPSiHitsCluster_v1, float, zLocal, setZLocal)
31  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPSiHitsCluster_v1, float, zLocalErr, setZLocalErr)
32  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPSiHitsCluster_v1, float, depositedCharge, setDepositedCharge)
33  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPSiHitsCluster_v1, int, nHits, setNHits)
34  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPSiHitsCluster_v1, int, clusterAlgID, setClusterAlgID )
35 
36  AUXSTORE_OBJECT_SETTER_AND_GETTER (AFPSiHitsCluster_v1, std::vector<AFPSiHitsCluster_v1::AFPHitLink_t>, hitsLinks, setHitsLinks)
37 
38  const static SG::AuxElement::Accessor< std::vector<AFPSiHitsCluster_v1::AFPHitLink_t> > hitsLinksAcc( "hitsLinks" );
39 
41  {
42  hitsLinksAcc( *this ).push_back( link );
43  }
44 
46  // Prepare the hits links for persistification:
47  if ( hitsLinksAcc.isAvailableWritable( *this ) )
48  for (AFPHitLink_t hitLink : hitsLinksAcc( *this ) )
49  hitLink.toPersistent();
50  }
51 
52 }
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:68
AuxStoreAccessorMacros.h
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
AFPSiHitsCluster_v1.h
Header file for AFPSiHitsCluster_v1 class representing a cluster of hits in AFP tracking detector pla...
xAOD::AFPSiHitsCluster_v1::addHitLink
void addHitLink(const AFPHitLink_t &newHit)
Add a link to a pixel in this cluster.
Definition: AFPSiHitsCluster_v1.cxx:40
xAOD::AFPSiHitsCluster_v1::toPersistent
void toPersistent()
Function making sure that the object is ready for persistification i.e. saving.
Definition: AFPSiHitsCluster_v1.cxx:45
xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1
Definition: CaloRings_v1.cxx:27