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