Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JTriggerMXShower_t.hh
Go to the documentation of this file.
1#ifndef __JTRIGGER__JTRIGGERMXSHOWER_T__
2#define __JTRIGGER__JTRIGGERMXSHOWER_T__
3
4#include <TObject.h>
5
6
7/**
8 * \author mdejong
9 */
10
11namespace JTRIGGER {}
12namespace JPP { using namespace JTRIGGER; }
13
14namespace JTRIGGER {
15
16 /**
17 * Shower 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 TMaxExtra_ns maximal extra time [ns]
44 * \param RMax_m maximal distance of generated vertices to root hit [m]
45 * \param Xv_m step size for generation of vertices [m]
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 TMaxExtra_ns,
53 const double RMax_m,
54 const double Xv_m,
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->TMaxExtra_ns = TMaxExtra_ns;
62 this->RMax_m = RMax_m;
63 this->Xv_m = Xv_m;
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 = 8;
83 DMax_m = 43.0;
84 TMaxExtra_ns = 20.0;
85 RMax_m = 0.0;
86 Xv_m = 0.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 TMaxExtra_ns == parameters.TMaxExtra_ns &&
104 RMax_m == parameters.RMax_m &&
105 Xv_m == parameters.Xv_m &&
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 TMaxExtra_ns; ///< maximal extra time [ns]
118 double RMax_m; ///< maximal distance of generated vertices to root hit [m]
119 double Xv_m; ///< step size for generation of vertices [m]
120 int factoryLimit; ///< maximal number of hits to apply trigger logic (above this limit, always trigger)
121 };
122 };
123}
124
125#endif
double Xv_m
step size for generation of vertices [m]
double DMax_m
maximal distance between PMTs [m]
int factoryLimit
maximal number of hits to apply trigger logic (above this limit, always trigger)
int numberOfHits
minimal number of hits to trigger event
bool equals(const JParameters &parameters) const
Equality.
double RMax_m
maximal distance of generated vertices to root hit [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 TMaxExtra_ns, const double RMax_m, const double Xv_m, const int factoryLimit)
Constructor.
void reset()
Reset trigger parameters.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for triggering.
Shower trigger parameters.