LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
trkmkr::OptionalPointElement Struct Reference

Struct holding point-by-point elements used in OptionalOutputs. More...

#include "TrackMaker.h"

Public Member Functions

void setTrackFitHitInfo (recob::TrackFitHitInfo &&aTrackFitHitInfo)
 set the recob::TrackFitHitInfo unique_ptr More...
 
void setTrackFitHitInfo (const recob::TrackFitHitInfo &aTrackFitHitInfo)
 
bool isTrackFitInfoSet ()
 check if the recob::TrackFitHitInfo unique_ptr is set More...
 
recob::TrackFitHitInfo getTrackFitHitInfo ()
 get the recob::TrackFitHitInfo object, and reset the unique_ptr More...
 
void setSpacePoint (recob::SpacePoint &&aSpacePoint)
 set the recob::SpacePoint unique_ptr More...
 
void setSpacePoint (const recob::SpacePoint &aSpacePoint)
 
bool isSpacePointSet ()
 check if the recob::SpacePoint unique_ptr is set More...
 
recob::SpacePoint getSpacePoint ()
 get the recob::SpacePoint object, and release the unique_ptr More...
 

Private Attributes

std::unique_ptr< recob::TrackFitHitInfotrackFitHitInfo
 
std::unique_ptr< recob::SpacePointspacePoint
 

Detailed Description

Struct holding point-by-point elements used in OptionalOutputs.

This struct holds the elements of OptionalOutputs that are added for each point (i.e. each hit).

It stores a unique_ptr to each optional output object element. Functions are provided to set the unique_ptr and to check if it set. When the elements are returned, the unique_ptr is reset.

Author
G. Cerati (FNAL, MicroBooNE)
Date
2017
Version
1.0

Definition at line 32 of file TrackMaker.h.

Member Function Documentation

recob::SpacePoint trkmkr::OptionalPointElement::getSpacePoint ( )
inline

get the recob::SpacePoint object, and release the unique_ptr

Definition at line 48 of file TrackMaker.h.

References spacePoint, and tmp.

Referenced by trkmkr::OptionalOutputs::addPoint().

48 { auto tmp = *spacePoint; spacePoint.reset(); return tmp; }
std::unique_ptr< recob::SpacePoint > spacePoint
Definition: TrackMaker.h:51
Float_t tmp
Definition: plot.C:37
recob::TrackFitHitInfo trkmkr::OptionalPointElement::getTrackFitHitInfo ( )
inline

get the recob::TrackFitHitInfo object, and reset the unique_ptr

Definition at line 40 of file TrackMaker.h.

References tmp, and trackFitHitInfo.

Referenced by trkmkr::OptionalOutputs::addPoint().

40 { auto tmp = *trackFitHitInfo; trackFitHitInfo.reset(); return tmp; }
Float_t tmp
Definition: plot.C:37
std::unique_ptr< recob::TrackFitHitInfo > trackFitHitInfo
Definition: TrackMaker.h:50
bool trkmkr::OptionalPointElement::isSpacePointSet ( )
inline

check if the recob::SpacePoint unique_ptr is set

Definition at line 46 of file TrackMaker.h.

References spacePoint.

Referenced by trkmkr::OptionalOutputs::addPoint().

46 { return bool(spacePoint); }
std::unique_ptr< recob::SpacePoint > spacePoint
Definition: TrackMaker.h:51
bool trkmkr::OptionalPointElement::isTrackFitInfoSet ( )
inline

check if the recob::TrackFitHitInfo unique_ptr is set

Definition at line 38 of file TrackMaker.h.

References trackFitHitInfo.

Referenced by trkmkr::OptionalOutputs::addPoint().

38 { return bool(trackFitHitInfo); }
std::unique_ptr< recob::TrackFitHitInfo > trackFitHitInfo
Definition: TrackMaker.h:50
void trkmkr::OptionalPointElement::setSpacePoint ( recob::SpacePoint &&  aSpacePoint)
inline

set the recob::SpacePoint unique_ptr

Definition at line 43 of file TrackMaker.h.

References spacePoint.

43 { spacePoint = std::make_unique< recob::SpacePoint >(aSpacePoint); }
std::unique_ptr< recob::SpacePoint > spacePoint
Definition: TrackMaker.h:51
void trkmkr::OptionalPointElement::setSpacePoint ( const recob::SpacePoint aSpacePoint)
inline

Definition at line 44 of file TrackMaker.h.

References spacePoint.

44 { spacePoint = std::make_unique< recob::SpacePoint >(aSpacePoint); }
std::unique_ptr< recob::SpacePoint > spacePoint
Definition: TrackMaker.h:51
void trkmkr::OptionalPointElement::setTrackFitHitInfo ( recob::TrackFitHitInfo &&  aTrackFitHitInfo)
inline

set the recob::TrackFitHitInfo unique_ptr

Definition at line 35 of file TrackMaker.h.

References trackFitHitInfo.

Referenced by trkf::TrackKalmanFitter::fillResult().

35 { trackFitHitInfo = std::make_unique< recob::TrackFitHitInfo >(aTrackFitHitInfo); }
std::unique_ptr< recob::TrackFitHitInfo > trackFitHitInfo
Definition: TrackMaker.h:50
void trkmkr::OptionalPointElement::setTrackFitHitInfo ( const recob::TrackFitHitInfo aTrackFitHitInfo)
inline

Definition at line 36 of file TrackMaker.h.

References trackFitHitInfo.

36 { trackFitHitInfo = std::make_unique< recob::TrackFitHitInfo >(aTrackFitHitInfo); }
std::unique_ptr< recob::TrackFitHitInfo > trackFitHitInfo
Definition: TrackMaker.h:50

Member Data Documentation

std::unique_ptr<recob::SpacePoint> trkmkr::OptionalPointElement::spacePoint
private

Definition at line 51 of file TrackMaker.h.

Referenced by getSpacePoint(), isSpacePointSet(), and setSpacePoint().

std::unique_ptr< recob::TrackFitHitInfo > trkmkr::OptionalPointElement::trackFitHitInfo
private

Definition at line 50 of file TrackMaker.h.

Referenced by getTrackFitHitInfo(), isTrackFitInfoSet(), and setTrackFitHitInfo().


The documentation for this struct was generated from the following file: