ATLAS Offline Software
Loading...
Searching...
No Matches
TrackParticleAssocs.h
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5*/
6
7// TrackParticleAssocs.h
8// Header file for class TrackParticleAssocs.h
9// Author: C.Anastopoulos
11#ifndef PARTICLEEVENT_TRACKPARTICLEASSOCS_H
12#define PARTICLEEVENT_TRACKPARTICLEASSOCS_H
13
14// STL includes
15
17#include "AthLinks/DataLink.h"
19
20// TrackParticleIncludes
23// Forward declaration
24
25class TrackParticleAssocs : public AssociationMap< Rec::TrackParticleContainer,
26 Rec::TrackParticleContainer >
27
28{
29
31 // Public methods:
33public:
34
36
38
41
44
48
50 // Const methods:
52
56 bool assocs( const Rec::TrackParticle* object,
57 ConstDataVector<Rec::TrackParticleContainer>& associatedElems ) const;
58
68
78
80
81
84 assocStore (const std::string& name) const;
85
87 size_t nAssocStores() const;
88
90 std::vector<DataLink<TrackParticleAssocs> > getAssocStores() const;
91
93 // Protected data:
95protected:
97 std::map<std::string, TrackParticleAssocsLink_t> m_assocStores;
98};
99
100
101
102// Destructor
106
107CLASS_DEF(TrackParticleAssocs, 94197921, 1 )
108
109 #endif //> PARTICLEEVENT_TRACKPARTICLEASSOCS_H
110
DataVector adapter that acts like it holds const pointers.
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
DataVector adapter that acts like it holds const pointers.
std::vector< DataLink< TrackParticleAssocs > > getAssocStores() const
Return links to all other association stores.
DataLink< TrackParticleAssocs > assocStore(const std::string &name) const
Look up an associated store. For testing.
bool getAssociations(const AssociationMap< Rec::TrackParticleContainer, Rec::TrackParticleContainer >::object_type *objPointer, AssociationMap< Rec::TrackParticleContainer, Rec::TrackParticleContainer >::asso_list &assocs) const
Reimplement the method from the base class to not shaddow it.
DataLink< TrackParticleAssocs > TrackParticleAssocsLink_t
void addAssocStore(const DataLink< TrackParticleAssocs > &assocStore)
TrackParticleAssocs()
Default constructor:
~TrackParticleAssocs()
Constructor with parameters:
bool assocs(const Rec::TrackParticle *object, ConstDataVector< Rec::TrackParticleContainer > &associatedElems) const
Retrieve all the associated-to objects which have been associated to the given.
std::map< std::string, TrackParticleAssocsLink_t > m_assocStores
bool getAssociations(const AssociationMap< Rec::TrackParticleContainer, Rec::TrackParticleContainer >::object_iterator &objIter, AssociationMap< Rec::TrackParticleContainer, Rec::TrackParticleContainer >::asso_list &assocs) const
Reimplement the method from the base class to not shaddow it.
size_t nAssocStores() const
Number of associated stores.
TrackParticleAssocs & operator=(const TrackParticleAssocs &rhs)
Assignment operator: