|
| MuonSegPatAssMap () |
|
virtual | ~MuonSegPatAssMap () |
|
|
- 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 |
|
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_type | m_associationMap |
| internal store More...
|
|
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...
|
|
Class stores associations between a MuonPatternCombination and a MuonSegmentCombination.
- Author
- Niels van Eldik niels.nosp@m..van.nosp@m..eldi.nosp@m.k@ce.nosp@m.rn.ch
MuonSegPatAssMap Usage
Creating a new map:
int patCombiIndex = ....;
int segCombiIndex = ....;
if( m_storeGate->record(assMap,"MyMuonSegPatAssociations").isSuccess() ){
}else{
}
Using the map:
StatusCode sc = m_storeGate->retrieve(assMap,
"MyMuonSegPatAssociations");
log << MSG::ERROR <<
" Could not find MuonSegPatAssociations at " <<
"MyMuonSegPatAssociations" <<
endmsg;
return StatusCode::SUCCESS;
}else{
log << MSG::INFO <<
" Retrieved MuonSegPatAssociations " <<
endmsg;
}
std::cout << " found association " << assos.size() << std::endl;
for( ; assit != assos.end(); ++ assit ){
std::cout << " segCombi " << segCombi << " patCombi " << *assit << std::endl;
}
std::cout << " found association " << assos.size() << std::endl;
for( ; assit != assos.end(); ++ assit ){
std::cout << " patCombi " << patCombi << " segCombi " << *assit << std::endl;
}
Definition at line 102 of file MuonSegPatAssMap.h.