Jpp  master_rocky
the software that should make you happy
JTrigger3DMuon.hh
Go to the documentation of this file.
1 #ifndef __JTRIGGER__JTRIGGER3DMUON__
2 #define __JTRIGGER__JTRIGGER3DMUON__
3 
4 #include "JPhysics/JConstants.hh"
6 #include "JTrigger/JMatch3B.hh"
7 #include "JTrigger/JMatch1D.hh"
8 #include "JTrigger/JTrigger3N.hh"
10 
11 
12 /**
13  * \author mdejong
14  */
15 
16 namespace JTRIGGER {}
17 namespace JPP { using namespace JTRIGGER; }
18 
19 namespace JTRIGGER {
20 
21  /**
22  * Muon trigger.
23  */
24  class JTrigger3DMuon :
25  public JTrigger3N
26  {
27  public:
28  /**
29  * Constructor.
30  *
31  * \param input trigger parameters
32  */
35  {}
36 
37 
38  /**
39  * Convert trigger parameters.
40  *
41  * \param input trigger parameters
42  * \return trigger parameters
43  */
45  {
46  using namespace JPP;
47 
48  const double TMaxEvent_ns = (sqrt((input.DMax_m + input.roadWidth_m*getSinThetaC()) *
49  (input.DMax_m - input.roadWidth_m*getSinThetaC())) +
51 
52  return JTrigger3N::JParameters(input.enabled,
53  input.numberOfHits,
54  input.numberOfModules,
55  TMaxEvent_ns + input.TMaxExtra_ns,
59  input.factoryLimit);
60  }
61  };
62 }
63 
64 #endif
Match operator for Cherenkov light from muon with given direction.
Match operator for Cherenkov light from muon in any direction.
Physics constants.
Direction set covering (part of) solid angle.
Definition: JOmega3D.hh:68
1D match criterion.
Definition: JMatch1D.hh:33
3D match criterion with road width.
Definition: JMatch3B.hh:36
double TMaxExtra_ns
maximal extra time [ns]
double DMax_m
maximal distance between PMTs [m]
double roadWidth_m
maximal road width [m]
int numberOfModules
minimal number of modules to trigger event
bool enabled
enabled status of trigger
int factoryLimit
maximal number of hits to apply trigger logic (above this limit, always trigger)
int numberOfHits
minimal number of hits to trigger event
static JTrigger3N::JParameters getParameters(const JTrigger3DMuon_t::JParameters &input)
Convert trigger parameters.
JTrigger3DMuon(const JTrigger3DMuon_t::JParameters &input)
Constructor.
General purpose muon trigger.
Definition: JTrigger3N.hh:43
static const double PI
Mathematical constants.
const double getInverseSpeedOfLight()
Get inverse speed of light.
double getTanThetaC()
Get average tangent of Cherenkov angle of water corresponding to group velocity.
double getSinThetaC()
Get average sine of Cherenkov angle of water corresponding to group velocity.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for triggering.