LArSoft
v09_90_00
Liquid Argon Software toolkit - https://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 108 of file TrackMaker.h.
typedef std::pair<recob::SpacePoint, art::Ptr<recob::Hit> > trkmkr::OptionalOutputs::SpHitPair |
Definition at line 110 of file TrackMaker.h.
|
inline |
add one OptionalPointElement
Definition at line 113 of file TrackMaker.h.
References trkmkr::OptionalPointElement::getTrackFitHitInfo(), and trkmkr::OptionalPointElement::isTrackFitInfoSet().
Referenced by trkmkr::TrackCreationBookKeeper::addPoint().
|
inline |
add one OptionalPointElement and the corresponding hit
Definition at line 120 of file TrackMaker.h.
References trkmkr::OptionalPointElement::getSpacePoint(), and trkmkr::OptionalPointElement::isSpacePointSet().
|
inline |
initialize the output vector of SpHitPair
Definition at line 145 of file TrackMaker.h.
Referenced by TrackProducerFromTrack::produce(), TrackProducerFromTrackTrajectory::produce(), and TrackProducerFromPFParticle::produce().
|
inline |
initialize the output vector of TrackFitHitInfos
Definition at line 140 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 149 of file TrackMaker.h.
|
inline |
check initialization of the output vector of TrackFitHitInfos
Definition at line 147 of file TrackMaker.h.
Referenced by trkf::TrackKalmanFitter::fillResult(), and trkmkr::KalmanFilterFitTrackMaker::restoreInputPoints().
|
inline |
reset the stored vectors
Definition at line 128 of file TrackMaker.h.
Referenced by trkmkr::TrackCreationBookKeeper::TrackCreationBookKeeper().
|
inline |
get the output vector of SpHitPair by releasing and moving
Definition at line 160 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 151 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 171 of file TrackMaker.h.
|
private |
Definition at line 170 of file TrackMaker.h.