Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JTrigger3DMuon.hh
Go to the documentation of this file.
1 #ifndef __JTRIGGER__JTRIGGER3DMUON__
2 #define __JTRIGGER__JTRIGGER3DMUON__
3 
4 #include "JTools/JConstants.hh"
6 #include "JTrigger/JMatch3B.hh"
7 #include "JTrigger/JMatch1D.hh"
9 #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 JTOOLS;
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
1D match criterion.
Definition: JMatch1D.hh:31
Match operator for Cherenkov light from muon with given direction.
double TMaxExtra_ns
maximal extra time [ns]
double roadWidth_m
maximal road width [m]
int factoryLimit
maximal number of hits to apply trigger logic (above this limit, always trigger)
static const double PI
Constants.
Definition: JConstants.hh:20
double DMax_m
maximal distance between PMTs [m]
static JTrigger3N::JParameters getParameters(const JTrigger3DMuon_t::JParameters &input)
Convert trigger parameters.
Direction set covering (part of) solid angle.
Definition: JOmega3D.hh:64
General purpose muon trigger.
Definition: JTrigger3N.hh:41
double getSinThetaC()
Get average sine of Cherenkov angle of water.
Definition: JConstants.hh:155
const double getInverseSpeedOfLight()
Get inverse speed of light.
Definition: JConstants.hh:100
Constants.
Match operator for Cherenkov light from muon in any direction.
int numberOfHits
minimal number of hits to trigger event
int numberOfModules
minimal number of modules to trigger event
bool enabled
enabled status of trigger
double getTanThetaC()
Get average tangent of Cherenkov angle of water.
Definition: JConstants.hh:133
JTrigger3DMuon(const JTrigger3DMuon_t::JParameters &input)
Constructor.
3D match criterion with road width.
Definition: JMatch3B.hh:34