Jpp  19.1.0
the software that should make you happy
JTrigger3DMuon_t.hh
Go to the documentation of this file.
1 #ifndef __JTRIGGER__JTRIGGER3DMUON_T__
2 #define __JTRIGGER__JTRIGGER3DMUON_T__
3 
4 #include "JROOT/JRoot.hh"
5 
6 
7 /**
8  * \author mdejong
9  */
10 
11 namespace JTRIGGER {}
12 namespace JPP { using namespace JTRIGGER; }
13 
14 namespace JTRIGGER {
15 
16  /**
17  * Muon trigger parameters.
18  */
20  {
21  /**
22  * Trigger parameters.
23  */
25  {
26  public:
27  /**
28  * Default constructor.
29  */
31  {
32  reset();
33  }
34 
35 
36  /**
37  * Constructor.
38  *
39  * \param enabled enabled status of trigger
40  * \param numberOfHits minimal number of hits to trigger event
41  * \param numberOfModules minimal number of modules to trigger event
42  * \param DMax_m maximal distance between PMTs [m]
43  * \param roadWidth_m maximal road width [m]
44  * \param gridAngle_deg grid angle [deg]
45  * \param TMaxExtra_ns maximal extra time [ns]
46  * \param factoryLimit maximal number of hits to apply trigger logic (above this limit, always trigger)
47  */
48  JParameters(const bool enabled,
49  const int numberOfHits,
50  const int numberOfModules,
51  const double DMax_m,
52  const double roadWidth_m,
53  const double gridAngle_deg,
54  const double TMaxExtra_ns,
55  const int factoryLimit)
56  {
57  this->enabled = enabled;
58  this->numberOfHits = numberOfHits;
59  this->numberOfModules = numberOfModules;
60  this->DMax_m = DMax_m;
61  this->roadWidth_m = roadWidth_m;
62  this->gridAngle_deg = gridAngle_deg;
63  this->TMaxExtra_ns = TMaxExtra_ns;
64  this->factoryLimit = factoryLimit;
65  }
66 
67 
68  /**
69  * Virtual destructor.
70  */
71  virtual ~JParameters()
72  {}
73 
74 
75  /**
76  * Reset trigger parameters.
77  */
78  void reset()
79  {
80  enabled = false;
81  numberOfHits = 5;
82  numberOfModules = 5;
83  DMax_m = 1000.0;
84  roadWidth_m = 120.0;
85  gridAngle_deg = 10.0;
86  TMaxExtra_ns = 20.0;
87  factoryLimit = 100;
88  }
89 
90 
91  /**
92  * Equality
93  *
94  * \param parameters trigger parameters
95  * \return true if equals; else false
96  */
97  bool equals(const JParameters& parameters) const
98  {
99  return (enabled == parameters.enabled &&
100  numberOfHits == parameters.numberOfHits &&
101  numberOfModules == parameters.numberOfModules &&
102  DMax_m == parameters.DMax_m &&
103  roadWidth_m == parameters.roadWidth_m &&
104  gridAngle_deg == parameters.gridAngle_deg &&
105  TMaxExtra_ns == parameters.TMaxExtra_ns &&
106  factoryLimit == parameters.factoryLimit);
107  }
108 
109 
111 
112 
113  bool enabled; ///< enabled status of trigger
114  int numberOfHits; ///< minimal number of hits to trigger event
115  int numberOfModules; ///< minimal number of modules to trigger event
116  double DMax_m; ///< maximal distance between PMTs [m]
117  double roadWidth_m; ///< maximal road width [m]
118  double gridAngle_deg; ///< grid angle [deg]
119  double TMaxExtra_ns; ///< maximal extra time [ns]
120  int factoryLimit; ///< maximal number of hits to apply trigger logic (above this limit, always trigger)
121  };
122  };
123 }
124 
125 #endif
This include file serves the purpose of hiding ROOT dependencies and circumphere namespace problems w...
bool equals(const JParameters &parameters) const
Equality.
void reset()
Reset trigger parameters.
double TMaxExtra_ns
maximal extra time [ns]
double DMax_m
maximal distance between PMTs [m]
virtual ~JParameters()
Virtual destructor.
double roadWidth_m
maximal road width [m]
int numberOfModules
minimal number of modules to trigger event
JParameters(const bool enabled, const int numberOfHits, const int numberOfModules, const double DMax_m, const double roadWidth_m, const double gridAngle_deg, const double TMaxExtra_ns, const int factoryLimit)
Constructor.
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
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for triggering.
Muon trigger parameters.