Jpp master_rocky-44-g75b7c4f75
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 "JROOT/JRoot.hh"
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 factoryLimit maximal number of hits to apply trigger logic (above this limit, always trigger)
45 */
46 JParameters(const bool enabled,
47 const int numberOfHits,
48 const int numberOfModules,
49 const double DMax_m,
50 const double TMaxExtra_ns,
51 const int factoryLimit)
52 {
53 this->enabled = enabled;
54 this->numberOfHits = numberOfHits;
55 this->numberOfModules = numberOfModules;
56 this->DMax_m = DMax_m;
57 this->TMaxExtra_ns = TMaxExtra_ns;
58 this->factoryLimit = factoryLimit;
59 }
60
61
62 /**
63 * Virtual destructor.
64 */
65 virtual ~JParameters()
66 {}
67
68
69 /**
70 * Reset trigger parameters.
71 */
72 void reset()
73 {
74 enabled = false;
75 numberOfHits = 8;
77 DMax_m = 43.0;
78 TMaxExtra_ns = 20.0;
79 factoryLimit = 100;
80 }
81
82
83 /**
84 * Equality
85 *
86 * \param parameters trigger parameters
87 * \return true if equals; else false
88 */
89 bool equals(const JParameters& parameters) const
90 {
91 return (enabled == parameters.enabled &&
92 numberOfHits == parameters.numberOfHits &&
93 numberOfModules == parameters.numberOfModules &&
94 DMax_m == parameters.DMax_m &&
95 TMaxExtra_ns == parameters.TMaxExtra_ns &&
96 factoryLimit == parameters.factoryLimit);
97 }
98
99
101
102
103 bool enabled; ///< enabled status of trigger
104 int numberOfHits; ///< minimal number of hits to trigger event
105 int numberOfModules; ///< minimal number of modules to trigger event
106 double DMax_m; ///< maximal distance between PMTs [m]
107 double TMaxExtra_ns; ///< maximal extra time [ns]
108 int factoryLimit; ///< maximal number of hits to apply trigger logic (above this limit, always trigger)
109 };
110 };
111}
112
113#endif
This include file serves the purpose of hiding ROOT dependencies and circumphere namespace problems w...
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
JParameters(const bool enabled, const int numberOfHits, const int numberOfModules, const double DMax_m, const double TMaxExtra_ns, const int factoryLimit)
Constructor.
bool equals(const JParameters &parameters) const
Equality.
int numberOfModules
minimal number of modules to trigger event
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.