Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JEventSelector.hh
Go to the documentation of this file.
1#ifndef __JRECONSTRUCTION__JEVENTSELECTOR__
2#define __JRECONSTRUCTION__JEVENTSELECTOR__
3
6
8
10
11/**
12 * \author mdejong
13 */
14
15namespace JRECONSTRUCTION {}
16namespace JPP { using namespace JRECONSTRUCTION; }
17
18namespace JRECONSTRUCTION {
19
22
23
24 /**
25 * Event selector.
26 *
27 * The default constructor will select all events.\n
28 * A different method can dynamically be loaded from a shared library via JEEP::JFunctionAdaptor.
29 */
31 public JFunctionAdaptor<bool, const JDAQEvent&, const JEvt&, const Evt* const>
32 {
33 /**
34 * Default event selection.
35 *
36 * \param tev DAQ event
37 * \param evt input event
38 * \param pE pointer to Monte Carlo event
39 * \return true
40 */
41 static inline bool select(const JDAQEvent& tev, const JEvt& evt, const Evt* const pE)
42 {
43 return true;
44 }
45
46
47 /**
48 * Default constructor.
49 */
51 {
52 this->function = select;
53 this->symbol = "filter";
54 }
55 };
56}
57
58#endif
Data structure for set of track fit results.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Model fits to data.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Definition Evt.hh:21
JEventSelector()
Default constructor.
static bool select(const JDAQEvent &tev, const JEvt &evt, const Evt *const pE)
Default event selection.