Jpp  19.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
JAANET::JEvtEvaluator Struct Reference

Auxiliary class to determine value of Evt objects. More...

#include <JEvtEvaluator.hh>

Public Types

typedef double value_type
 Type definition of time value. More...
 

Public Member Functions

 JEvtEvaluator ()
 Default constructor. More...
 
value_type operator() (const Evt &event) const
 Get value of event. More...
 

Detailed Description

Auxiliary class to determine value of Evt objects.

Definition at line 21 of file JEvtEvaluator.hh.

Member Typedef Documentation

Type definition of time value.

Definition at line 25 of file JEvtEvaluator.hh.

Constructor & Destructor Documentation

JAANET::JEvtEvaluator::JEvtEvaluator ( )
inline

Default constructor.

Definition at line 31 of file JEvtEvaluator.hh.

32  {}

Member Function Documentation

value_type JAANET::JEvtEvaluator::operator() ( const Evt event) const
inline

Get value of event.

Parameters
eventevent
Returns
value

Definition at line 41 of file JEvtEvaluator.hh.

42  {
43  if (!event.mc_trks.empty())
44  return event.mc_trks[0].t;
45  else
46  return 0.0;
47  } // ()
std::vector< Trk > mc_trks
MC: list of MC truth tracks.
Definition: Evt.hh:49

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