Jpp
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

◆ has_history()

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  {}

Member Function Documentation

◆ operator()()

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  }

Member Data Documentation

◆ type

const int JAANET::has_history::type

reconstruction type

Definition at line 717 of file JAAnetToolkit.hh.

◆ range

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:
Trk::rec_type
int rec_type
identifyer for the overall fitting algorithm/chain/strategy
Definition: Trk.hh:23
JAANET::has_history::type
const int type
reconstruction type
Definition: JAAnetToolkit.hh:717
JAANET::has_history::range
const JRange< int > range
range of application types
Definition: JAAnetToolkit.hh:718
Trk::rec_stages
std::vector< int > rec_stages
list of identifyers of succesfull fitting stages resulting in this track
Definition: Trk.hh:24