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

Go to the source code of this file.

Functions

bool accept (const JEvt &in, const Evt *event)
 Event selection. More...
 

Function Documentation

bool accept ( const JEvt &  in,
const Evt event 
)

Event selection.

Parameters
ininput event
eventpointer to Monte Carlo event
Returns
true if accepted; else false

Definition at line 17 of file JReconstruction/event_selector.cc.

18 {
19  using namespace std;
20  using namespace JPP;
21  /*
22  if (!in.empty() && in[0].getQ() >= 100) {
23 
24  if (event != NULL) {
25 
26  Trk muon;
27 
28  for (const auto& t1 : event->mc_trks) {
29  if (is_muon(t1)) {
30  if (t1.E > muon.E) {
31  muon = t1;
32  }
33  }
34  }
35 
36  return (is_muon(muon) && getAngle(getDirection(in[0]), getDirection(muon)) > 5.0);
37  }
38  }
39  */
40  return true;
41 }