Jpp  17.3.0-rc.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
JAAnet/event_selector.cc File Reference
#include "km3net-dataformat/offline/Evt.hh"
#include "km3net-dataformat/definitions/fitparameters.hh"
#include "km3net-dataformat/tools/reconstruction.hh"
#include "JAAnet/JAAnetToolkit.hh"
#include "JMath/JMathToolkit.hh"

Go to the source code of this file.

Functions

bool accept (const Trk &trk, const Evt &evt)
 Event selection. More...
 

Function Documentation

bool accept ( const Trk trk,
const Evt evt 
)

Event selection.

Parameters
trktrack
evtevent
Returns
true if accepted; else false

Definition at line 14 of file JAAnet/event_selector.cc.

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 }