Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JEvtEvaluator.hh
Go to the documentation of this file.
1#ifndef __JEVTEVALUATOR__
2#define __JEVTEVALUATOR__
3
5
8
9/**
10 * \author mlincetto
11 */
12
13namespace JAANET {}
14namespace JPP { using namespace JAANET; }
15
16namespace JAANET {
17
18 /**
19 * Auxiliary class to determine value of Evt objects.
20 */
22 /**
23 * Type definition of time value.
24 */
25 typedef double value_type;
26
27
28 /**
29 * Default constructor.
30 */
33
34
35 /**
36 * Get value of event.
37 *
38 * \param event event
39 * \return value
40 */
41 inline value_type operator()(const Evt& event) const
42 {
43 if (!event.mc_trks.empty())
44 return event.mc_trks[0].t;
45 else
46 return 0.0;
47 } // ()
48
49 }; // struct JEvtEvaluator
50
51 /**
52 * Function object for evaluation of DAQ objects.
53 */
55
56} // namespace
57
58#endif
Definition of hit and track types and auxiliary methods for handling Monte Carlo data.
Extensions to Evt data format.
static const JEvtEvaluator getEvtValue
Function object for evaluation of DAQ objects.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Definition Evt.hh:21
std::vector< Trk > mc_trks
MC: list of MC truth tracks.
Definition Evt.hh:49
Auxiliary class to determine value of Evt objects.
value_type operator()(const Evt &event) const
Get value of event.
double value_type
Type definition of time value.
JEvtEvaluator()
Default constructor.