Struct holding optional TrackMaker outputs. More...
#include <TrackMaker.h>
Public Types | |
typedef std::pair < recob::SpacePoint, art::Ptr < recob::Hit > > | SpHitPair |
Public Member Functions | |
void | addPoint (OptionalPointElement &ope) |
add one OptionalPointElement More... | |
void | addPoint (OptionalPointElement &ope, art::Ptr< recob::Hit > hptr) |
add one OptionalPointElement and the corresponding hit More... | |
void | reset () |
reset the stored vectors More... | |
void | initTrackFitInfos () |
initialize the output vector of TrackFitHitInfos More... | |
void | initSpacePoints () |
initialize the output vector of SpHitPair More... | |
bool | isTrackFitInfosInit () |
check initialization of the output vector of TrackFitHitInfos More... | |
bool | isSpacePointsInit () |
check initialization of the output vector of SpHitPair More... | |
std::vector < recob::TrackFitHitInfo > | trackFitHitInfos () |
get the output vector of TrackFitHitInfos by releasing and moving More... | |
std::vector< SpHitPair > | spacePointHitPairs () |
get the output vector of SpHitPair by releasing and moving More... | |
Private Attributes | |
std::unique_ptr< std::vector < recob::TrackFitHitInfo > > | outTrackFitHitInfos |
std::unique_ptr< std::vector < SpHitPair > > | outSpacePointHitPairs |
Struct holding optional TrackMaker outputs.
This struct holds the optional outputs of track making and hides their details to the actual track making tools. In this way, adding a new optional output will affect only those tools that produce such new ouput.
It stores a unique_ptr to the vector of each optional output object (meant to be per-track). Track making tools need to init the outional outputs they will produce, so that only the unique_ptrs that are needed are actually created. Functions are provided (called addPoint) to add point-by-point elements (see OptionalPointElement). When the output objects are returned, the unique_ptr is reset, so that no new elements should be added and a new initialization is needed.
Definition at line 125 of file TrackMaker.h.
typedef std::pair<recob::SpacePoint, art::Ptr<recob::Hit> > trkmkr::OptionalOutputs::SpHitPair |
Definition at line 127 of file TrackMaker.h.
|
inline |
add one OptionalPointElement
Definition at line 131 of file TrackMaker.h.
|
inline |
add one OptionalPointElement and the corresponding hit
Definition at line 139 of file TrackMaker.h.
|
inline |
initialize the output vector of SpHitPair
Definition at line 167 of file TrackMaker.h.
|
inline |
initialize the output vector of TrackFitHitInfos
Definition at line 161 of file TrackMaker.h.
|
inline |
check initialization of the output vector of SpHitPair
Definition at line 179 of file TrackMaker.h.
|
inline |
check initialization of the output vector of TrackFitHitInfos
Definition at line 173 of file TrackMaker.h.
|
inline |
reset the stored vectors
Definition at line 148 of file TrackMaker.h.
|
inline |
get the output vector of SpHitPair by releasing and moving
Definition at line 195 of file TrackMaker.h.
|
inline |
get the output vector of TrackFitHitInfos by releasing and moving
Definition at line 185 of file TrackMaker.h.
|
private |
Definition at line 206 of file TrackMaker.h.
|
private |
Definition at line 205 of file TrackMaker.h.