ATLAS Offline Software
|
Interface for handling the mapping between Trk::Track and Trk::PrepRawData. More...
#include <IPRDtoTrackMapTool.h>
Public Types | |
typedef std::set< const Track * > | TrackSet |
Public Member Functions | |
DeclareInterfaceID (IPRDtoTrackMapTool, 1, 0) | |
virtual std::unique_ptr< Trk::PRDtoTrackMap > | createPRDtoTrackMap () const =0 |
Create a structure which holds the PRD to track map. More... | |
virtual std::unique_ptr< Trk::PRDtoTrackMap > | reduceToStorableMap (std::unique_ptr< Trk::PRDtoTrackMap > &&obj_in) const =0 |
Return an object which is storeable. More... | |
virtual StatusCode | addPRDs (Trk::PRDtoTrackMap &prd_to_track_map, const Track &track) const =0 |
Add the PRDs from this track to the store. More... | |
virtual std::vector< const PrepRawData * > | getPrdsOnTrack (Trk::PRDtoTrackMap &prd_to_track_map, const Track &track) const =0 |
returns a vector of PRDs belonging to the passed track. More... | |
virtual TrackSet | findConnectedTracks (Trk::PRDtoTrackMap &prd_to_track_map, const Track &track) const =0 |
Return transient sets of connected and disconnected tracks, AND remove disconnected tracks from this tool. More... | |
Interface for handling the mapping between Trk::Track and Trk::PrepRawData.
The tool is used to keep track of a collection of PrepRawData belonging to Tracks. The user is responsible for informing the tool about the Tracks in question, by using :
Once the information is in the store, various methods can be used to query the relationship between tracks and the prep raw data - for example, isShared().
Currently, reset() should be used to clear the tool before use.
Definition at line 37 of file IPRDtoTrackMapTool.h.
typedef std::set<const Track*> Trk::IPRDtoTrackMapTool::TrackSet |
Definition at line 42 of file IPRDtoTrackMapTool.h.
|
pure virtual |
Add the PRDs from this track to the store.
|
pure virtual |
Create a structure which holds the PRD to track map.
@TODO should take event context as an argument.
Trk::IPRDtoTrackMapTool::DeclareInterfaceID | ( | IPRDtoTrackMapTool | , |
1 | , | ||
0 | |||
) |
|
pure virtual |
Return transient sets of connected and disconnected tracks, AND remove disconnected tracks from this tool.
i.e. get (transient) set of tracks which share/don't share PrepRawData, and remove those tracks that are disconnected from this tool's caches.
|
pure virtual |
returns a vector of PRDs belonging to the passed track.
It's basically for the convenience of users and is created purely from the passed track. i.e. there is no caching if you do it multiple times on the same track, you're being inefficient!!
track | will be iterated through and all PrepRawData added to a vector |
|
pure virtual |
Return an object which is storeable.
May create a new object which is stripped off data that is not to be stored.