ATLAS Offline Software
Loading...
Searching...
No Matches
INav4MomToTrackParticleAssocs.h
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5*/
6
7// INav4MomToTrackParticleAssocs.h
8// Header file for class INav4MomToTrackParticleAssocs.h
9// Author: Karsten Koeneke
11#ifndef PARTICLEEVENT_INAV4MOMTOTRACKPARTICLEASSOCS_H
12#define PARTICLEEVENT_INAV4MOMTOTRACKPARTICLEASSOCS_H
13
14
16#include "AthLinks/DataLink.h"
18// EventKernel includes
20
21// NavFourMom includes
24
25// TrackParticleIncludes
28
29
30
31class INav4MomToTrackParticleAssocs : public AssociationMap< INavigable4MomentumCollection,
32 Rec::TrackParticleContainer >
33{
34
36 // Public methods:
38public:
39
42
45
51
53 // Const methods:
55
59 bool assocs( const INavigable4Momentum* object,
60 ConstDataVector<Rec::TrackParticleContainer>& associatedElems ) const;
61
65 bool getAssociations( const INav4MomLink& objectLink,
67 Rec::TrackParticleContainer >::asso_link >& associatedElementLinks ) const;
68
72 bool getAssociations( const INavigable4Momentum* object,
74 Rec::TrackParticleContainer >::asso_link >& associatedElementLinks ) const;
75
85
95
97
100 assocStore (const std::string& name) const;
101
103 size_t nAssocStores() const;
104
106 std::vector<DataLink<INav4MomToTrackParticleAssocs> > getAssocStores() const;
107
109 // Protected data:
111protected:
113 std::map<std::string, INav4MomToTrackParticleAssocsLink_t> m_assocStores;
114};
115
116
117
118// Destructor
122
124
125#endif //> PARTICLEEVENT_INAV4MOMTOTRACKPARTICLEASSOCS_H
126
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< INavigable4Momentum > INavigable4MomentumCollection
DataVector adapter that acts like it holds const pointers.
bool getAssociations(const AssociationMap< INavigable4MomentumCollection, Rec::TrackParticleContainer >::object_iterator &objIter, AssociationMap< INavigable4MomentumCollection, 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.
INav4MomToTrackParticleAssocs & operator=(const INav4MomToTrackParticleAssocs &rhs)
Assignment operator:
bool getAssociations(const AssociationMap< INavigable4MomentumCollection, Rec::TrackParticleContainer >::object_type *objPointer, AssociationMap< INavigable4MomentumCollection, Rec::TrackParticleContainer >::asso_list &assocs) const
Reimplement the method from the base class to not shaddow it.
std::map< std::string, INav4MomToTrackParticleAssocsLink_t > m_assocStores
bool assocs(const INavigable4Momentum *object, ConstDataVector< Rec::TrackParticleContainer > &associatedElems) const
Retrieve all the associated-to objects which have been associated to the given.
DataLink< INav4MomToTrackParticleAssocs > INav4MomToTrackParticleAssocsLink_t
bool getAssociations(const INav4MomLink &objectLink, std::vector< AssociationMap< INavigable4MomentumCollection, Rec::TrackParticleContainer >::asso_link > &associatedElementLinks) const
Retrieve all the associated-to ElementLinks_to_objects which have been associated to the given.
std::vector< DataLink< INav4MomToTrackParticleAssocs > > getAssocStores() const
Return links to all other association stores.
DataLink< INav4MomToTrackParticleAssocs > assocStore(const std::string &name) const
Look up an associated store. For testing.
void addAssocStore(const DataLink< INav4MomToTrackParticleAssocs > &assocStore)