LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
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 73 of file TrackMaker.h.
typedef std::pair<recob::SpacePoint, art::Ptr<recob::Hit> > trkmkr::OptionalOutputs::SpHitPair |
Definition at line 75 of file TrackMaker.h.
|
inline |
add one OptionalPointElement
Definition at line 78 of file TrackMaker.h.
References trkmkr::OptionalPointElement::getTrackFitHitInfo(), and trkmkr::OptionalPointElement::isTrackFitInfoSet().
|
inline |
add one OptionalPointElement and the corresponding hit
Definition at line 84 of file TrackMaker.h.
References trkmkr::OptionalPointElement::getSpacePoint(), and trkmkr::OptionalPointElement::isSpacePointSet().
|
inline |
initialize the output vector of SpHitPair
Definition at line 106 of file TrackMaker.h.
Referenced by TrackProducerFromTrack::produce(), TrackProducerFromTrackTrajectory::produce(), and TrackProducerFromPFParticle::produce().
|
inline |
initialize the output vector of TrackFitHitInfos
Definition at line 102 of file TrackMaker.h.
Referenced by TrackProducerFromTrack::produce(), TrackProducerFromTrackTrajectory::produce(), TrackProducerFromPFParticle::produce(), trkf::KalmanFilterTrajectoryFitter::produce(), and trkf::KalmanFilterFinalTrackFitter::produce().
|
inline |
check initialization of the output vector of SpHitPair
Definition at line 112 of file TrackMaker.h.
|
inline |
check initialization of the output vector of TrackFitHitInfos
Definition at line 110 of file TrackMaker.h.
Referenced by trkf::TrackKalmanFitter::fillResult(), and trkmkr::KalmanFilterFitTrackMaker::restoreInputPoints().
|
inline |
reset the stored vectors
Definition at line 91 of file TrackMaker.h.
|
inline |
get the output vector of SpHitPair by releasing and moving
Definition at line 119 of file TrackMaker.h.
References tmp.
Referenced by TrackProducerFromTrack::produce(), TrackProducerFromTrackTrajectory::produce(), and TrackProducerFromPFParticle::produce().
|
inline |
get the output vector of TrackFitHitInfos by releasing and moving
Definition at line 114 of file TrackMaker.h.
References tmp.
Referenced by TrackProducerFromTrack::produce(), TrackProducerFromTrackTrajectory::produce(), TrackProducerFromPFParticle::produce(), trkf::KalmanFilterTrajectoryFitter::produce(), and trkf::KalmanFilterFinalTrackFitter::produce().
|
private |
Definition at line 125 of file TrackMaker.h.
|
private |
Definition at line 124 of file TrackMaker.h.