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 114 of file TrackMaker.h.
typedef std::pair<recob::SpacePoint, art::Ptr<recob::Hit> > trkmkr::OptionalOutputs::SpHitPair |
Definition at line 116 of file TrackMaker.h.
|
inline |
add one OptionalPointElement
Definition at line 120 of file TrackMaker.h.
|
inline |
add one OptionalPointElement and the corresponding hit
Definition at line 128 of file TrackMaker.h.
|
inline |
initialize the output vector of SpHitPair
Definition at line 156 of file TrackMaker.h.
|
inline |
initialize the output vector of TrackFitHitInfos
Definition at line 150 of file TrackMaker.h.
|
inline |
check initialization of the output vector of SpHitPair
Definition at line 168 of file TrackMaker.h.
|
inline |
check initialization of the output vector of TrackFitHitInfos
Definition at line 162 of file TrackMaker.h.
|
inline |
reset the stored vectors
Definition at line 137 of file TrackMaker.h.
|
inline |
get the output vector of SpHitPair by releasing and moving
Definition at line 184 of file TrackMaker.h.
|
inline |
get the output vector of TrackFitHitInfos by releasing and moving
Definition at line 174 of file TrackMaker.h.
|
private |
Definition at line 195 of file TrackMaker.h.
|
private |
Definition at line 194 of file TrackMaker.h.