LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 44 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 77 of file TrackMaker.h.

References tmp.

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

78  {
79  auto tmp = *spacePoint;
80  spacePoint.reset();
81  return tmp;
82  }
std::unique_ptr< recob::SpacePoint > spacePoint
Definition: TrackMaker.h:86
Float_t tmp
Definition: plot.C:35
recob::TrackFitHitInfo trkmkr::OptionalPointElement::getTrackFitHitInfo ( )
inline

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

Definition at line 58 of file TrackMaker.h.

References tmp.

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

59  {
60  auto tmp = *trackFitHitInfo;
61  trackFitHitInfo.reset();
62  return tmp;
63  }
Float_t tmp
Definition: plot.C:35
std::unique_ptr< recob::TrackFitHitInfo > trackFitHitInfo
Definition: TrackMaker.h:85
bool trkmkr::OptionalPointElement::isSpacePointSet ( )
inline

check if the recob::SpacePoint unique_ptr is set

Definition at line 75 of file TrackMaker.h.

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

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

check if the recob::TrackFitHitInfo unique_ptr is set

Definition at line 56 of file TrackMaker.h.

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

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

set the recob::SpacePoint unique_ptr

Definition at line 66 of file TrackMaker.h.

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

Definition at line 70 of file TrackMaker.h.

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

set the recob::TrackFitHitInfo unique_ptr

Definition at line 47 of file TrackMaker.h.

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

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

Definition at line 51 of file TrackMaker.h.

52  {
53  trackFitHitInfo = std::make_unique<recob::TrackFitHitInfo>(aTrackFitHitInfo);
54  }
std::unique_ptr< recob::TrackFitHitInfo > trackFitHitInfo
Definition: TrackMaker.h:85

Member Data Documentation

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

Definition at line 86 of file TrackMaker.h.

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

Definition at line 85 of file TrackMaker.h.


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