All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
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::TrackFitHitInfo
trackFitHitInfo
 
std::unique_ptr
< recob::SpacePoint
spacePoint
 

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 47 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 94 of file TrackMaker.h.

95  {
96  auto tmp = *spacePoint;
97  spacePoint.reset();
98  return tmp;
99  }
std::unique_ptr< recob::SpacePoint > spacePoint
Definition: TrackMaker.h:103
recob::TrackFitHitInfo trkmkr::OptionalPointElement::getTrackFitHitInfo ( )
inline

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

Definition at line 68 of file TrackMaker.h.

69  {
70  auto tmp = *trackFitHitInfo;
71  trackFitHitInfo.reset();
72  return tmp;
73  }
std::unique_ptr< recob::TrackFitHitInfo > trackFitHitInfo
Definition: TrackMaker.h:102
bool trkmkr::OptionalPointElement::isSpacePointSet ( )
inline

check if the recob::SpacePoint unique_ptr is set

Definition at line 88 of file TrackMaker.h.

89  {
90  return bool(spacePoint);
91  }
std::unique_ptr< recob::SpacePoint > spacePoint
Definition: TrackMaker.h:103
static constexpr bool
bool trkmkr::OptionalPointElement::isTrackFitInfoSet ( )
inline

check if the recob::TrackFitHitInfo unique_ptr is set

Definition at line 62 of file TrackMaker.h.

63  {
64  return bool(trackFitHitInfo);
65  }
static constexpr bool
std::unique_ptr< recob::TrackFitHitInfo > trackFitHitInfo
Definition: TrackMaker.h:102
void trkmkr::OptionalPointElement::setSpacePoint ( recob::SpacePoint &&  aSpacePoint)
inline

set the recob::SpacePoint unique_ptr

Definition at line 77 of file TrackMaker.h.

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

Definition at line 82 of file TrackMaker.h.

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

set the recob::TrackFitHitInfo unique_ptr

Definition at line 51 of file TrackMaker.h.

52  {
53  trackFitHitInfo = std::make_unique<recob::TrackFitHitInfo>(std::move(aTrackFitHitInfo));
54  }
std::unique_ptr< recob::TrackFitHitInfo > trackFitHitInfo
Definition: TrackMaker.h:102
void trkmkr::OptionalPointElement::setTrackFitHitInfo ( const recob::TrackFitHitInfo aTrackFitHitInfo)
inline

Definition at line 56 of file TrackMaker.h.

57  {
58  trackFitHitInfo = std::make_unique<recob::TrackFitHitInfo>(aTrackFitHitInfo);
59  }
std::unique_ptr< recob::TrackFitHitInfo > trackFitHitInfo
Definition: TrackMaker.h:102

Member Data Documentation

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

Definition at line 103 of file TrackMaker.h.

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

Definition at line 102 of file TrackMaker.h.


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