Jpp
17.1.0
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
/**
8
* Event selection.
9
*
10
* \param trk track
11
* \param evt event
12
* \return true if accepted; else false
13
*/
14
extern
"C"
bool
accept
(
const
Trk
& trk,
const
Evt
& evt)
15
{
16
using namespace
std;
17
using namespace
JPP;
18
/*
19
if (has_muon(evt)) {
20
21
Trk muon;
22
23
for (const auto& t1 : evt.mc_trks) {
24
if (is_muon(t1)) {
25
if (t1.E > muon.E) {
26
muon = t1;
27
}
28
}
29
}
30
31
return (is_muon(muon) && getAngle(getDirection(trk), getDirection(muon)) > 5.0);
32
}
33
*/
34
return
true
;
35
}
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
accept
bool accept(const Trk &trk, const Evt &evt)
Event selection.
Definition:
JAAnet/event_selector.cc:14
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