Jpp
test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
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
=
"filter"
;
54
}
55
};
56
}
57
58
#endif
Evt.hh
JDAQEvent.hh
JFunctionAdaptor.hh
JEvt.hh
JFIT::JEvt
Data structure for set of track fit results.
Definition
JReconstruction/JEvt.hh:378
KM3NETDAQ::JDAQEvent
DAQ Event.
Definition
JDAQEvent.hh:33
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition
JAAnetToolkit.hh:43
JRECONSTRUCTION
Model fits to data.
Definition
JARCAMuonReconstruction.hh:30
Evt
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Definition
Evt.hh:21
JEEP::JFunctionAdaptorHelper< void(*)(Args...)>::function
void(*)(Args...) function
Definition
JFunctionAdaptor.hh:291
JEEP::JFunctionAdaptorHelper< void(*)(Args...)>::symbol
std::string symbol
Definition
JFunctionAdaptor.hh:293
JEEP::JFunctionAdaptor
Function adaptor.
Definition
JFunctionAdaptor.hh:303
JRECONSTRUCTION::JEventSelector
Event selector.
Definition
JEventSelector.hh:32
JRECONSTRUCTION::JEventSelector::JEventSelector
JEventSelector()
Default constructor.
Definition
JEventSelector.hh:50
JRECONSTRUCTION::JEventSelector::select
static bool select(const JDAQEvent &tev, const JEvt &evt, const Evt *const pE)
Default event selection.
Definition
JEventSelector.hh:41
Generated by
1.12.0