![]() |
ATLAS Offline Software
|
Small wrapper around hit collection map to facilitate accessing the hit collection. More...
#include <HitCollectionMap.h>
Public Types | |
| using | Storage = std::unordered_map<std::string, std::unique_ptr<HitsVectorBase>> |
| using | StorageIterator = typename Storage::iterator |
Public Member Functions | |
| std::pair< StorageIterator, bool > | Insert (std::string const &hitCollectionName, std::unique_ptr< HitsVectorBase > hitCollection) |
| Insert the hit collection for a given SDs. | |
| template<class HitCollectionT, class... CollectionArgs> | |
| std::pair< StorageIterator, bool > | Emplace (std::string const &hitCollectionName, CollectionArgs &&... args) |
| Insert a container in the map with in-place construction. | |
| template<class T> | |
| T * | Find (std::string const &hitCollectionName) |
| Get the hit collection for a given SDs. | |
| template<class T> | |
| std::unique_ptr< T > | Extract (std::string const &hitCollectionName) |
| Extract the hit collection for a given SDs downcasted to the template parameter. | |
| template<class T> | |
| void | Record (std::string const &sgKey, std::string const &hitCollectionName, EventContext const &ctx) |
| Record the hit collection hitCollectionName to the StoreGate sgKey. | |
| template<class T> | |
| void | Record (std::string const &hitCollectionName) |
| Overload for Record with the same name for the SG key and hit collection name. | |
| template<class T> | |
| void | TransformAndRecord (std::string const &sgKey, std::string const &hitCollectionName, EventContext const &ctx, std::function< void(T &)> transform) |
| Record the hit collection hitCollectionName to the StoreGate sgKey, applying a transformation function to the hit collection before recording it. | |
| template<class T> | |
| void | TransformAndRecord (std::string const &hitCollectionName, std::function< void(T &)> transform) |
| Overload for TransformAndRecord with the same name for the SG key and hit collection name. | |
Private Attributes | |
| Storage | m_outputCollections |
Small wrapper around hit collection map to facilitate accessing the hit collection.
Definition at line 20 of file HitCollectionMap.h.
| using HitCollectionMap::Storage = std::unordered_map<std::string, std::unique_ptr<HitsVectorBase>> |
Definition at line 23 of file HitCollectionMap.h.
| using HitCollectionMap::StorageIterator = typename Storage::iterator |
Definition at line 24 of file HitCollectionMap.h.
|
inline |
Insert a container in the map with in-place construction.
Definition at line 38 of file HitCollectionMap.h.
|
inline |
Extract the hit collection for a given SDs downcasted to the template parameter.
Definition at line 66 of file HitCollectionMap.h.
|
inline |
Get the hit collection for a given SDs.
Definition at line 50 of file HitCollectionMap.h.
|
inline |
Insert the hit collection for a given SDs.
Definition at line 29 of file HitCollectionMap.h.
|
inline |
Overload for Record with the same name for the SG key and hit collection name.
Definition at line 91 of file HitCollectionMap.h.
|
inline |
Record the hit collection hitCollectionName to the StoreGate sgKey.
Definition at line 82 of file HitCollectionMap.h.
|
inline |
Overload for TransformAndRecord with the same name for the SG key and hit collection name.
Definition at line 115 of file HitCollectionMap.h.
|
inline |
Record the hit collection hitCollectionName to the StoreGate sgKey, applying a transformation function to the hit collection before recording it.
Definition at line 100 of file HitCollectionMap.h.
|
private |
Definition at line 121 of file HitCollectionMap.h.