Jpp
18.2.0-rc.1
the software that should make you happy
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
software
JReconstruction
JEventSelector.hh
Go to the documentation of this file.
1
#ifndef __JRECONSTRUCTION__JEVENTSELECTOR__
2
#define __JRECONSTRUCTION__JEVENTSELECTOR__
3
4
#include "
km3net-dataformat/offline/Evt.hh
"
5
#include "
km3net-dataformat/online/JDAQEvent.hh
"
6
7
#include "
JReconstruction/JEvt.hh
"
8
9
#include "
Jeep/JFunctionAdaptor.hh
"
10
11
/**
12
* \author mdejong
13
*/
14
15
namespace
JRECONSTRUCTION {}
16
namespace
JPP {
using namespace
JRECONSTRUCTION; }
17
18
namespace
JRECONSTRUCTION {
19
20
using
KM3NETDAQ::JDAQEvent
;
21
using
JEEP::JFunctionAdaptor
;
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
*/
30
struct
JEventSelector
:
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
*/
50
JEventSelector
()
51
{
52
this->
function
=
select
;
53
this->
symbol
=
"select"
;
54
}
55
};
56
}
57
58
#endif
JRECONSTRUCTION::JEventSelector::select
static bool select(const JDAQEvent &tev, const JEvt &evt, const Evt *const pE)
Default event selection.
Definition:
JEventSelector.hh:41
JDAQEvent.hh
JRECONSTRUCTION::JEventSelector::JEventSelector
JEventSelector()
Default constructor.
Definition:
JEventSelector.hh:50
JFunctionAdaptor.hh
JEvt.hh
KM3NETDAQ::JDAQEvent
DAQ Event.
Definition:
JDAQEvent.hh:30
JRECONSTRUCTION::JEventSelector
Event selector.
Definition:
JEventSelector.hh:30
JFIT::JEvt
Data structure for set of track fit results.
Definition:
JReconstruction/JEvt.hh:376
Evt.hh
JEEP::JFunctionAdaptorHelper< JReturn_t(*)(Args...)>::symbol
std::string symbol
Definition:
JFunctionAdaptor.hh:293
JEEP::JFunctionAdaptor
Function adaptor.
Definition:
JFunctionAdaptor.hh:301
Evt
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Definition:
Evt.hh:20
Generated by
1.8.5