Jpp  18.5.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JReconstruction/event_selector.cc
Go to the documentation of this file.
7 #include "JMath/JMathToolkit.hh"
8 
9 namespace JRECONSTRUCTION {
10 
12 
13  /**
14  * Event selection.
15  *
16  * \param tev DAQ event
17  * \param evt input event
18  * \param pE pointer to Monte Carlo event
19  * \return true if selected; else false
20  */
21  extern "C" bool filter(const JDAQEvent& tev, const JEvt& evt, const Evt* const pE)
22  {
23  using namespace std;
24  using namespace JPP;
25  /*
26  if (!evt.empty() && evt[0].getQ() >= 100) {
27 
28  if (pE != NULL) {
29 
30  Trk muon;
31 
32  for (const auto& t1 : pE->mc_trks) {
33  if (is_muon(t1)) {
34  if (t1.E > muon.E) {
35  muon = t1;
36  }
37  }
38  }
39 
40  return (is_muon(muon) && getAngle(getDirection(event[0]), getDirection(muon)) > 5.0);
41  }
42  }
43  */
44  return true;
45  }
46 }
Auxiliary methods for geometrical methods.
Definition of hit and track types and auxiliary methods for handling Monte Carlo data.
Data structure for set of track fit results.
bool filter(const JDAQEvent &tev, const JEvt &evt, const Evt *const pE)
Event selection.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Definition: Evt.hh:20