Jpp  17.3.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
has_history Struct Reference

Auxiliary class to test whether given track has specified history. More...

#include <reconstruction.hh>

Public Member Functions

 has_history (const int type, const rec_stages_range range)
 Constructor. More...
 
bool operator() (const Trk &track) const
 

Public Attributes

const int type
 reconstruction type More...
 
const rec_stages_range range
 range of application types More...
 

Detailed Description

Auxiliary class to test whether given track has specified history.


The history of a track consists of a reconstruction type and a range of application types.

Definition at line 109 of file tools/reconstruction.hh.

Constructor & Destructor Documentation

has_history::has_history ( const int  type,
const rec_stages_range  range 
)
inline

Constructor.

Parameters
typereconstruction type
rangerange of application types

Definition at line 116 of file tools/reconstruction.hh.

116  :
117  type (type),
118  range(range)
119  {}
const int type
reconstruction type
const rec_stages_range range
range of application types

Member Function Documentation

bool has_history::operator() ( const Trk track) const
inline
Parameters
tracktrack
Returns
true if given track has specified history; else false

Definition at line 125 of file tools/reconstruction.hh.

126  {
127  if (track.rec_type == type)
128  return std::find_if(track.rec_stages.begin(), track.rec_stages.end(), range) != track.rec_stages.end();
129  else
130  return false;
131  }
const int type
reconstruction type
std::vector< int > rec_stages
list of identifyers of succesfull fitting stages resulting in this track
Definition: Trk.hh:26
const rec_stages_range range
range of application types
int rec_type
identifier of the fitting algorithm/chain/strategy, see km3net-dataformat/definitions/reconstruction...
Definition: Trk.hh:25

Member Data Documentation

const int has_history::type

reconstruction type

Definition at line 133 of file tools/reconstruction.hh.

const rec_stages_range has_history::range

range of application types

Definition at line 134 of file tools/reconstruction.hh.


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