Jpp  17.0.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.
6 #include "JMath/JMathToolkit.hh"
7 
9 
10 /**
11  * Event selection.
12  *
13  * \param in input event
14  * \param event pointer to Monte Carlo event
15  * \return true if accepted; else false
16  */
17 extern "C" bool accept(const JEvt& in, const Evt* event)
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 }
Auxiliary methods for geometrical methods.
Definition of hit and track types and auxiliary methods for handling Monte Carlo data.
bool accept(const Trk &trk, const Evt &evt)
Event selection.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
Definition: JCanberra.sh:46
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Definition: Evt.hh:19