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::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 36 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 83 of file TrackMaker.h.

84  {
85  auto tmp = *spacePoint;
86  spacePoint.reset();
87  return tmp;
88  }
std::unique_ptr< recob::SpacePoint > spacePoint
Definition: TrackMaker.h:92
string tmp
Definition: languages.py:63
recob::TrackFitHitInfo trkmkr::OptionalPointElement::getTrackFitHitInfo ( )
inline

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

Definition at line 57 of file TrackMaker.h.

58  {
59  auto tmp = *trackFitHitInfo;
60  trackFitHitInfo.reset();
61  return tmp;
62  }
std::unique_ptr< recob::TrackFitHitInfo > trackFitHitInfo
Definition: TrackMaker.h:91
string tmp
Definition: languages.py:63
bool trkmkr::OptionalPointElement::isSpacePointSet ( )
inline

check if the recob::SpacePoint unique_ptr is set

Definition at line 77 of file TrackMaker.h.

78  {
79  return bool(spacePoint);
80  }
std::unique_ptr< recob::SpacePoint > spacePoint
Definition: TrackMaker.h:92
int bool
Definition: qglobal.h:345
bool trkmkr::OptionalPointElement::isTrackFitInfoSet ( )
inline

check if the recob::TrackFitHitInfo unique_ptr is set

Definition at line 51 of file TrackMaker.h.

52  {
53  return bool(trackFitHitInfo);
54  }
std::unique_ptr< recob::TrackFitHitInfo > trackFitHitInfo
Definition: TrackMaker.h:91
int bool
Definition: qglobal.h:345
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:92
void trkmkr::OptionalPointElement::setSpacePoint ( const recob::SpacePoint aSpacePoint)
inline

Definition at line 71 of file TrackMaker.h.

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

set the recob::TrackFitHitInfo unique_ptr

Definition at line 40 of file TrackMaker.h.

41  {
42  trackFitHitInfo = std::make_unique<recob::TrackFitHitInfo>(std::move(aTrackFitHitInfo));
43  }
std::unique_ptr< recob::TrackFitHitInfo > trackFitHitInfo
Definition: TrackMaker.h:91
def move(depos, offset)
Definition: depos.py:107
void trkmkr::OptionalPointElement::setTrackFitHitInfo ( const recob::TrackFitHitInfo aTrackFitHitInfo)
inline

Definition at line 45 of file TrackMaker.h.

46  {
47  trackFitHitInfo = std::make_unique<recob::TrackFitHitInfo>(aTrackFitHitInfo);
48  }
std::unique_ptr< recob::TrackFitHitInfo > trackFitHitInfo
Definition: TrackMaker.h:91

Member Data Documentation

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

Definition at line 92 of file TrackMaker.h.

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

Definition at line 91 of file TrackMaker.h.


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