Jpp  18.4.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 }
bool select(const Trk &trk, const Evt &evt)
Event selection.
Auxiliary methods for geometrical methods.
Auxiliary methods for selection of reconstructed tracks.
Definition of hit and track types and auxiliary methods for handling Monte Carlo data.
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
Definition: Trk.hh:14
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Definition: Evt.hh:20