Jpp
18.2.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
examples
JReconstruction
JReconstruction/event_selector.cc
Go to the documentation of this file.
1
#include "
km3net-dataformat/offline/Evt.hh
"
2
#include "
km3net-dataformat/online/JDAQEvent.hh
"
3
#include "
km3net-dataformat/definitions/fitparameters.hh
"
4
#include "
JReconstruction/JEvt.hh
"
5
#include "
JReconstruction/JEvtToolkit.hh
"
6
#include "
JAAnet/JAAnetToolkit.hh
"
7
#include "
JMath/JMathToolkit.hh
"
8
9
namespace
JRECONSTRUCTION {
10
11
using
KM3NETDAQ::JDAQEvent
;
12
13
/**
14
* Event selection.
15
*
16
* \param tev DAQ event
17
* \param evt input event
18
* \param pE pointer to Monte Carlo event
19
* \return true if selected; else false
20
*/
21
extern
"C"
bool
filter
(
const
JDAQEvent
& tev,
const
JEvt
& evt,
const
Evt
*
const
pE)
22
{
23
using namespace
std;
24
using namespace
JPP;
25
/*
26
if (!evt.empty() && evt[0].getQ() >= 100) {
27
28
if (pE != NULL) {
29
30
Trk muon;
31
32
for (const auto& t1 : pE->mc_trks) {
33
if (is_muon(t1)) {
34
if (t1.E > muon.E) {
35
muon = t1;
36
}
37
}
38
}
39
40
return (is_muon(muon) && getAngle(getDirection(event[0]), getDirection(muon)) > 5.0);
41
}
42
}
43
*/
44
return
true
;
45
}
46
}
JMathToolkit.hh
Auxiliary methods for geometrical methods.
JDAQEvent.hh
JEvt.hh
KM3NETDAQ::JDAQEvent
DAQ Event.
Definition:
JDAQEvent.hh:30
JAAnetToolkit.hh
Definition of hit and track types and auxiliary methods for handling Monte Carlo data.
JFIT::JEvt
Data structure for set of track fit results.
Definition:
JReconstruction/JEvt.hh:376
Evt.hh
JEvtToolkit.hh
fitparameters.hh
JRECONSTRUCTION::filter
bool filter(const JDAQEvent &tev, const JEvt &evt, const Evt *const pE)
Event selection.
Definition:
JReconstruction/event_selector.cc:21
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