ATLAS Offline Software
Loading...
Searching...
No Matches
INav4MomAssocs.h
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5*/
6
7// INav4MomAssocs.h
8// Header file for class INav4MomAssocs
9// Author: S.Binet<binet@cern.ch>
11#ifndef NAVFOURMOM_INAV4MOMASSOCS_H
12#define NAVFOURMOM_INAV4MOMASSOCS_H
13
14// STL includes
15
17#include "AthLinks/DataLink.h"
18
19// EventKernel includes
21
22// NavFourMom includes
27// Forward declaration
29
30class INav4MomAssocs : public AssociationMap< INavigable4MomentumCollection,
31 INavigable4MomentumCollection >
32
33{
34
36 // Public methods:
38 public:
39
43
47
51
55
59
62
66
68 // Const methods:
70
74 bool assocs ( const INavigable4Momentum* object,
76
80 bool getAssociations( const INav4MomLink& objectLink,
81 INav4MomLinkContainer& associatedElementLinks ) const;
82
86 bool getAssociations( const INavigable4Momentum* object,
87 INav4MomLinkContainer& associatedElementLinks ) const;
88
98
108
112 //template<typename CONT>
113 //CONT getAssociations(const INavigable4Momentum* object)const;
114
116 // Non-const methods:
118
124 void addAssocStore( const DataLink<INav4MomAssocs>& assocStore );
125
127 std::vector<DataLink<INav4MomAssocs> > getAssocStores() const;
128
130 // Protected data:
132 protected:
134 std::map<std::string, INav4MomAssocsLink_t> m_assocStores;
135};
136
140
141
142// Destructor
146
147CLASS_DEF( INav4MomAssocs, 94197919, 1 )
148
149#endif //> NAVFOURMOM_INAV4MOMASSOCS_H
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
Define macros for attributes used to control the static checker.
DataVector adapter that acts like it holds const pointers.
INav4MomAssocs()
Default constructor:
~INav4MomAssocs()
Constructor with parameters:
INav4MomAssocs & operator=(INav4MomAssocs &&rhs)
Move operator:
bool getAssociations(const AssociationMap< INavigable4MomentumCollection, INavigable4MomentumCollection >::object_type *objPointer, AssociationMap< INavigable4MomentumCollection, INavigable4MomentumCollection >::asso_list &assocs) const
Reimplement the method from the base class to not shaddow it.
std::map< std::string, INav4MomAssocsLink_t > m_assocStores
INav4MomAssocs(const INav4MomAssocs &rhs)
Copy constructor:
INav4MomAssocs(INav4MomAssocs &&rhs)
Move constructor:
bool getAssociations(const AssociationMap< INavigable4MomentumCollection, INavigable4MomentumCollection >::object_iterator &objIter, AssociationMap< INavigable4MomentumCollection, INavigable4MomentumCollection >::asso_list &assocs) const
Reimplement the method from the base class to not shaddow it.
bool assocs(const INavigable4Momentum *object, ConstDataVector< INavigable4MomentumCollection > &assocs) const
Retrieve all the associated-to objects which have been associated to the given.
DataLink< INav4MomAssocs > INav4MomAssocsLink_t
void addAssocStore(const DataLink< INav4MomAssocs > &assocStore)
Retrieve all the associated-to objects which have been associated to the given.
bool getAssociations(const INav4MomLink &objectLink, INav4MomLinkContainer &associatedElementLinks) const
Retrieve all the associated-to ElementLinks_to_objects which have been associated to the given.
std::vector< DataLink< INav4MomAssocs > > getAssocStores() const
Return links to all other association stores.
INav4MomAssocs & operator=(const INav4MomAssocs &rhs)
Assignment operator: