Jpp  17.2.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 /**
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 }
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.
bool accept(const Trk &trk, const Evt &evt)
Event selection.
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