Jpp  19.1.0-rc.1
the software that should make you happy
JAAnet/event_selector.cc
Go to the documentation of this file.
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 }
Definition of hit and track types and auxiliary methods for handling Monte Carlo data.
Auxiliary methods for geometrical methods.
Extensions to Evt data format.
bool select(const Trk &trk, const Evt &evt)
Event selection.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition: JSTDTypes.hh:14
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Definition: Evt.hh:21
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
Definition: Trk.hh:15
Auxiliary methods for selection of reconstructed tracks.