ATLAS Offline Software
Loading...
Searching...
No Matches
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
13
14
15// xAOD include(s):
17
18// Local include(s):
20
21
22namespace xAOD
23{
24 AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPSiHitsCluster_v1, int, stationID, setStationID)
25 AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPSiHitsCluster_v1, int, pixelLayerID, setPixelLayerID)
27 AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPSiHitsCluster_v1, float, xLocalErr, setXLocalErr)
29 AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPSiHitsCluster_v1, float, yLocalErr, setYLocalErr)
31 AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPSiHitsCluster_v1, float, zLocalErr, setZLocalErr)
32 AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPSiHitsCluster_v1, float, depositedCharge, setDepositedCharge)
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}
Header file for AFPSiHitsCluster_v1 class representing a cluster of hits in AFP tracking detector pla...
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
#define AUXSTORE_OBJECT_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of complex auxiliary properties.
static const uint32_t nHits
Class representing a cluster of AFP pixel hits.
void toPersistent()
Function making sure that the object is ready for persistification i.e. saving.
void addHitLink(const AFPHitLink_t &newHit)
Add a link to a pixel in this cluster.
ElementLink< AFPSiHitContainer > AFPHitLink_t
Type of a link to the hit.
Forward declaration.
STL namespace.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
static const SG::AuxElement::Accessor< std::vector< AFPSiHitsCluster_v1::AFPHitLink_t > > hitsLinksAcc("hitsLinks")