Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
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.
 

Public Member Functions

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

Detailed Description

Auxiliary class to determine value of Evt objects.

Definition at line 21 of file JEvtEvaluator.hh.

Member Typedef Documentation

◆ value_type

Type definition of time value.

Definition at line 25 of file JEvtEvaluator.hh.

Constructor & Destructor Documentation

◆ JEvtEvaluator()

JAANET::JEvtEvaluator::JEvtEvaluator ( )
inline

Default constructor.

Definition at line 31 of file JEvtEvaluator.hh.

32 {}

Member Function Documentation

◆ operator()()

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: