#include <TrackParticleAssocs.h>
|
| | TrackParticleAssocs () |
| | Default constructor: More...
|
| |
| | TrackParticleAssocs (const TrackParticleAssocs &rhs) |
| | Copy constructor:
More...
|
| |
| TrackParticleAssocs & | operator= (const TrackParticleAssocs &rhs) |
| | Assignment operator:
More...
|
| |
| | ~TrackParticleAssocs () |
| | Constructor with parameters:
More...
|
| |
| bool | assocs (const Rec::TrackParticle *object, ConstDataVector< Rec::TrackParticleContainer > &associatedElems) const |
| | Retrieve all the associated-to objects which have been associated to the given. More...
|
| |
| 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. More...
|
| |
| 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. More...
|
| |
| void | addAssocStore (const DataLink< TrackParticleAssocs > &assocStore) |
| |
| DataLink< TrackParticleAssocs > | assocStore (const std::string &name) const |
| | Look up an associated store. For testing. More...
|
| |
| size_t | nAssocStores () const |
| | Number of associated stores. More...
|
| |
| std::vector< DataLink< TrackParticleAssocs > > | getAssocStores () const |
| | Return links to all other association stores. More...
|
| |
|
- Parameters
-
| objectContainer | - pointer to the object container |
| objectIndex | - index of object in container |
| objectPointer | - pointer to object |
| assoContainer | - container of potentially associated objects |
| assoIndex | - index of associated object in container |
| assoPointer | - pointer to associated object |
|
| void | addAssociation (const object_container_type *objectContainer, const object_index_type &objectIndex, const asso_container_type *assoContainer, const asso_index_type &assoIndex) |
| |
| void | addAssociation (const object_container_type *objectContainer, const object_type *objectPointer, const asso_container_type *assoContainer, const asso_type *assoPointer) |
| |
| void | addAssociation (const object_link &objectLink, const asso_link &assoLink) |
| |
|
- Parameters
-
| objectContainer | - pointer to the object container |
| objectIndex | - index of object in container |
| objectPointer | - pointer to object |
| assoContainer | - container of potentially associated objects |
| assoIndex | - index of associated object in container |
| assoPointer | - pointer to associated object |
|
| void | addAssociation (const object_container_type *objectContainer, const object_index_type &objectIndex, const asso_container_type *assoContainer, const asso_index_type &assoIndex) |
| |
| void | addAssociation (const object_container_type *objectContainer, const object_type *objectPointer, const asso_container_type *assoContainer, const asso_type *assoPointer) |
| |
| void | addAssociation (const object_link &objectLink, const asso_link &assoLink) |
| |
|
The association iterators are returned for a given object, which can either be referenced by its pointer or its iterator in the internal store.
- Parameters
-
| objectPointer | - pointer to a given object |
| objectIter | - iterator to a given object |
|
| store_type | m_associationMap |
| | internal store More...
|
| |
| object_iterator | beginObject () const |
| | begin iterator for objects More...
|
| |
| object_iterator | endObject () const |
| | end iterator for objects More...
|
| |
| asso_iterator | beginAssociation (const object_type *objectPointer) const |
| | begin iterator for associations More...
|
| |
| asso_iterator | beginAssociation (const object_iterator &objectIter) const |
| |
| asso_iterator | endAssociation (const object_type *objectPointer) const |
| | end iterator for associations More...
|
| |
| asso_iterator | endAssociation (const object_iterator &objectIter) const |
| |
| const object_type * | getObject (const object_iterator &objectIter) const |
| | get association iterators by object iterator More...
|
| |
| object_iterator | findObject (const object_type *theObject) const |
| | finding an object with allocation More...
|
| |
| bool | containsObject (const object_type *theObject) const |
| | testing if object is in store More...
|
| |
| size_t | getNumberOfObjects () const |
| | retrieve number of objects in store More...
|
| |
| const asso_type * | getAssociation (asso_iterator assoIter) const |
| | associations iterator access More...
|
| |
| asso_iterator | findAssociation (const object_iterator &objectIter, const asso_type *assoPointer) const |
| | find association More...
|
| |
| asso_iterator | findAssociation (const object_type *objectPointer, const asso_type *assoPointer) const |
| |
| bool | containsAssociation (const object_iterator &objectIter, const asso_type *assoPointer) const |
| | containment check More...
|
| |
| bool | containsAssociation (const object_type *objectPointer, const asso_type *assoPointer) const |
| |
| bool | containsAssociation (const asso_type *assoPointer) const |
| |
| bool | getObjects (const asso_type *assoPointer, object_list &theObjects) const |
| | get all objects for a given association More...
|
| |
| bool | getObjects (const asso_iterator &assoIter, object_list &theObjects) const |
| | get all objects for a given association More...
|
| |
| bool | getAssociations (const object_type *objPointer, asso_list &assocs) const |
| | get all associations for a given object More...
|
| |
| bool | getAssociations (const object_iterator &objIter, asso_list &assocs) const |
| | get all associations for a given object More...
|
| |
| size_t | size () |
| | get number of associations More...
|
| |
| size_t | size () const |
| | get number of associations More...
|
| |
| size_t | size (const object_type *objectPointer) const |
| |
| size_t | size (const object_iterator &objectIter) const |
| |
| size_t | getNumberOfAssociations (const object_type *objectPointer) const |
| |
| size_t | getNumberOfAssociations (const object_iterator &objectIter) const |
| |
| store_iterator_type | internalFind (const object_link &objectLink, const asso_link &assoLink) |
| | internally used find method More...
|
| |
| bool | addToStore (const object_link &objectLink, const asso_link &assoLink) |
| | internally used function to add links to store More...
|
| |
Definition at line 25 of file TrackParticleAssocs.h.
◆ asso_container_type
◆ asso_index_type
◆ asso_iterator
◆ asso_link
◆ asso_list
◆ asso_store
◆ asso_store_iterator
◆ asso_type
◆ object_container_type
◆ object_index_type
◆ object_iterator
◆ object_link
◆ object_list
◆ object_type
◆ store_iterator_type
◆ store_type
◆ TrackParticleAssocsLink_t
◆ TrackParticleAssocs() [1/2]
| TrackParticleAssocs::TrackParticleAssocs |
( |
| ) |
|
◆ TrackParticleAssocs() [2/2]
◆ ~TrackParticleAssocs()
| TrackParticleAssocs::~TrackParticleAssocs |
( |
| ) |
|
|
inline |
◆ addAssociation() [1/3]
◆ addAssociation() [2/3]
◆ addAssociation() [3/3]
◆ addAssocStore()
◆ addToStore()
internally used function to add links to store
◆ assocs()
Retrieve all the associated-to objects which have been associated to the given.
- Parameters
-
Definition at line 47 of file TrackParticleAssocs.cxx.
55 bool contained =
false;
59 if ( itr->second->assocs(
object, associatedElems) ) {
◆ assocStore()
Look up an associated store. For testing.
Definition at line 94 of file TrackParticleAssocs.cxx.
96 std::map<std::string, TrackParticleAssocsLink_t>::const_iterator
i =
◆ beginAssociation() [1/2]
◆ beginAssociation() [2/2]
begin iterator for associations
◆ beginObject()
begin iterator for objects
◆ containsAssociation() [1/3]
◆ containsAssociation() [2/3]
containment check
Definition at line 165 of file AssociationMap.h.
167 {
return objectIter.containsAssociation(assoPointer); }
◆ containsAssociation() [3/3]
◆ containsObject()
◆ endAssociation() [1/2]
◆ endAssociation() [2/2]
end iterator for associations
◆ endObject()
◆ findAssociation() [1/2]
find association
Definition at line 158 of file AssociationMap.h.
160 {
return objectIter.findAssociation(assoPointer); }
◆ findAssociation() [2/2]
◆ findObject()
◆ getAssociation()
associations iterator access
The associations are accessed as function of the row key (the object).
Definition at line 154 of file AssociationMap.h.
155 {
return *assoIter; }
◆ getAssociations() [1/4]
◆ getAssociations() [2/4]
◆ getAssociations() [3/4]
◆ getAssociations() [4/4]
get all associations for a given object
◆ getAssocStores()
Return links to all other association stores.
Definition at line 110 of file TrackParticleAssocs.cxx.
112 std::vector<DataLink<TrackParticleAssocs> > ret;
115 ret.push_back (
p.second);
◆ getNumberOfAssociations() [1/2]
◆ getNumberOfAssociations() [2/2]
◆ getNumberOfObjects()
◆ getObject()
get association iterators by object iterator
type-safe retrieval of object pointer from iterator
Definition at line 135 of file AssociationMap.h.
136 {
return (*objectIter).getObject(); }
◆ getObjects() [1/2]
◆ getObjects() [2/2]
get all objects for a given association
◆ internalFind()
internally used find method
Definition at line 210 of file AssociationMap.h.
221 if ( iMap->first.cptr() == objectLink.cptr() ) {
229 if (
std::find((foundIter->second).begin(),
230 (foundIter->second).end(),
232 (foundIter->second).end() )
233 {
return foundIter; }
◆ nAssocStores()
| size_t TrackParticleAssocs::nAssocStores |
( |
| ) |
const |
◆ operator=()
◆ size() [1/4]
◆ size() [2/4]
◆ size() [3/4]
Definition at line 198 of file AssociationMap.h.
199 {
return objectIter.getNumberOfAssociations(); }
◆ size() [4/4]
◆ m_associationMap
◆ m_assocStores
◆ s_dum_asso_store
The documentation for this class was generated from the following files:
vecmem::edm::container< TrackParticleInterface, vecmem::edm::type::vector< float >, vecmem::edm::type::vector< float >, vecmem::edm::type::vector< float > > TrackParticleContainer
SoA, GPU friendly TrackParticleContainer.
bool assocs(const Rec::TrackParticle *object, ConstDataVector< Rec::TrackParticleContainer > &associatedElems) const
Retrieve all the associated-to objects which have been associated to the given.
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 > assocStore(const std::string &name) const
Look up an associated store. For testing.
std::map< std::string, TrackParticleAssocsLink_t > m_assocStores