Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
JAANET::has_history Struct Reference

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

#include <JAAnetToolkit.hh>

Public Member Functions

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

Public Attributes

const int type
 reconstruction type More...
 
const JRange< int > 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 693 of file JAAnetToolkit.hh.

Constructor & Destructor Documentation

JAANET::has_history::has_history ( const int  type,
const JRange< int >  range 
)
inline

Constructor.

Parameters
typereconstruction type
rangerange of application types

Definition at line 700 of file JAAnetToolkit.hh.

700  :
701  type (type),
702  range(range)
703  {}
const int type
reconstruction type
const JRange< int > range
range of application types

Member Function Documentation

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

Definition at line 709 of file JAAnetToolkit.hh.

710  {
711  if (track.rec_type == type)
712  return std::find_if(track.rec_stages.begin(), track.rec_stages.end(), range) != track.rec_stages.end();
713  else
714  return false;
715  }
const int type
reconstruction type
const JRange< int > range
range of application types

Member Data Documentation

const int JAANET::has_history::type

reconstruction type

Definition at line 717 of file JAAnetToolkit.hh.

const JRange<int> JAANET::has_history::range

range of application types

Definition at line 718 of file JAAnetToolkit.hh.


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