Loading [MathJax]/extensions/tex2jax.js
|
ATLAS Offline Software
|
Go to the documentation of this file.
23 #ifndef D3PDMAKERUTILS_INDEXMAP_HPP
24 #define D3PDMAKERUTILS_INDEXMAP_HPP
29 #include "GaudiKernel/IIncidentListener.h"
30 #include "GaudiKernel/ToolHandle.h"
33 #include <unordered_map>
39 class ICollectionGetterTool;
43 :
public implements<IIncidentListener>
55 const std::string& targetLabel,
56 ToolHandle<ICollectionGetterRegistryTool>&
registry,
57 const bool& allowMissing);
73 const std::string& targetLabel,
74 const std::vector<std::string>& targetLabels,
75 ToolHandle<ICollectionGetterRegistryTool>&
registry,
76 const bool& allowMissing);
86 ToolHandleArray<ICollectionGetterTool>& getters,
87 const bool& allowMissing);
116 virtual void handle (
const Incident &inc);
190 typedef std::unordered_multimap<const void*, std::pair<int, int> >
map_t;
205 #endif // not D3PDMAKERUTILS_INDEXMAP_HPP
ICollectionGetterTool * target()
Return the getter defining the first collection within which to index.
std::string formatLabels() const
Return list of all configured targets as a comma-separated string.
int findIndex(const void *p)
Find the index corresponding to an element.
INamedInterface * m_parent
The parent tool.
std::pair< int, int > findIndexPair(const void *p)
Find the (index,container) pair corresponding to an element.
Helper to convert pointers.
StatusCode reset()
Call before asking for an index. Rebuilds cache if needed.
int ntargets()
Return the number of valid targets.
StatusCode configureCommon()
Common part of configuration.
bool valid() const
Return the valid flag.
Block filler tool for noisy FEB information.
::StatusCode StatusCode
StatusCode definition for legacy code.
IndexMap(INamedInterface *parent, const std::string &targetLabel, ToolHandle< ICollectionGetterRegistryTool > ®istry, const bool &allowMissing)
Constructor: for a single target.
ToolHandleArray< ICollectionGetterTool > * m_getters
Property for a direct list of getters.
const std::vector< std::string > * m_targetLabels
Property for the label of the getter defining the list of target collections.
std::vector< ICollectionGetterTool * > m_targets
Getters defining the collections within which to index.
StatusCode configureD3PD()
Configure during initialization: type-check.
std::unordered_multimap< const void *, std::pair< int, int > > map_t
The pointer -> (index,target) map.
const bool & m_allowMissing
Property for the allowMissing flag.
bool m_valid
Flag if the map is valid.
const std::string * m_targetLabel
Property for the label of the getter defining the target collection.
std::vector< TypeConverter > m_converters
Converter for each target.
virtual void handle(const Incident &inc)
Incident handler.
ToolHandle< ICollectionGetterRegistryTool > * m_registry
Property for the ICollectionGetterRegistryTool instance.