ATLAS Offline Software
Loading...
Searching...
No Matches
INav4MomToTrackParticleAssocs.h
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2018 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// STL includes
15
17#include "AthLinks/DataLink.h"
19// EventKernel includes
21
22// NavFourMom includes
25
26// TrackParticleIncludes
29// Forward declaration
30
31
32
33class INav4MomToTrackParticleAssocs : public AssociationMap< INavigable4MomentumCollection,
34 Rec::TrackParticleContainer >
35{
36
38 // Public methods:
40public:
41
44
47
50
54
56 // Const methods:
58
62 bool assocs( const INavigable4Momentum* object,
63 ConstDataVector<Rec::TrackParticleContainer>& associatedElems ) const;
64
68 bool getAssociations( const INav4MomLink& objectLink,
70 Rec::TrackParticleContainer >::asso_link >& associatedElementLinks ) const;
71
75 bool getAssociations( const INavigable4Momentum* object,
77 Rec::TrackParticleContainer >::asso_link >& associatedElementLinks ) const;
78
88
98
100
103 assocStore (const std::string& name) const;
104
106 size_t nAssocStores() const;
107
109 std::vector<DataLink<INav4MomToTrackParticleAssocs> > getAssocStores() const;
110
112 // Protected data:
114protected:
116 std::map<std::string, INav4MomToTrackParticleAssocsLink_t> m_assocStores;
117};
118
119
120
121// Destructor
125
127
128#endif //> PARTICLEEVENT_INAV4MOMTOTRACKPARTICLEASSOCS_H
129
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
~INav4MomToTrackParticleAssocs()
Constructor with parameters:
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)