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
examples
JAAnet
JAAnet/event_selector.cc
Go to the documentation of this file.
1
#include "
km3net-dataformat/offline/Evt.hh
"
2
#include "
km3net-dataformat/definitions/fitparameters.hh
"
3
#include "
km3net-dataformat/tools/reconstruction.hh
"
4
#include "
JAAnet/JAAnetToolkit.hh
"
5
#include "
JMath/JMathToolkit.hh
"
6
7
namespace
JAANET {
8
9
/**
10
* Event selection.
11
*
12
* \param trk track
13
* \param evt event
14
* \return true if selected; else false
15
*/
16
extern
"C"
bool
select
(
const
Trk
& trk,
const
Evt
& evt)
17
{
18
using namespace
std;
19
using namespace
JPP;
20
/*
21
if (has_muon(evt)) {
22
23
Trk muon;
24
25
for (const auto& t1 : evt.mc_trks) {
26
if (is_muon(t1)) {
27
if (t1.E > muon.E) {
28
muon = t1;
29
}
30
}
31
}
32
33
return (is_muon(muon) && getAngle(getDirection(trk), getDirection(muon)) > 5.0);
34
}
35
*/
36
return
true
;
37
}
38
}
JAANET::select
bool select(const Trk &trk, const Evt &evt)
Event selection.
Definition:
JAAnet/event_selector.cc:16
JMathToolkit.hh
Auxiliary methods for geometrical methods.
reconstruction.hh
Auxiliary methods for selection of reconstructed tracks.
JAAnetToolkit.hh
Definition of hit and track types and auxiliary methods for handling Monte Carlo data.
Evt.hh
fitparameters.hh
Trk
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
Definition:
Trk.hh:14
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