Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JTrigger3DShower_t.hh
Go to the documentation of this file.
1#ifndef __JTRIGGER__JTRIGGER3DSHOWER_T__
2#define __JTRIGGER__JTRIGGER3DSHOWER_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 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 * Virtual destructor.
63 */
64 virtual ~JParameters()
65 {}
66
67
68 /**
69 * Reset trigger parameters.
70 */
71 void reset()
72 {
73 enabled = false;
74 numberOfHits = 5;
76 DMax_m = 250.0;
77 TMaxExtra_ns = 20.0;
78 factoryLimit = 100;
79 }
80
81
82 /**
83 * Equality
84 *
85 * \param parameters trigger parameters
86 * \return true if equals; else false
87 */
88 bool equals(const JParameters& parameters) const
89 {
90 return (enabled == parameters.enabled &&
91 numberOfHits == parameters.numberOfHits &&
92 numberOfModules == parameters.numberOfModules &&
93 DMax_m == parameters.DMax_m &&
94 TMaxExtra_ns == parameters.TMaxExtra_ns &&
95 factoryLimit == parameters.factoryLimit);
96 }
97
98
100
101
102 bool enabled; ///< enabled status of trigger
103 int numberOfHits; ///< minimal number of hits to trigger event
104 int numberOfModules; ///< minimal number of modules to trigger event
105 double DMax_m; ///< maximal distance between PMTs [m]
106 double TMaxExtra_ns; ///< maximal extra time [ns]
107 int factoryLimit; ///< maximal number of hits to apply trigger logic (above this limit, always trigger
108 };
109 };
110}
111
112#endif
int factoryLimit
maximal number of hits to apply trigger logic (above this limit, always trigger
double DMax_m
maximal distance between PMTs [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 int factoryLimit)
Constructor.
int numberOfHits
minimal number of hits to trigger event
void reset()
Reset trigger parameters.
bool equals(const JParameters &parameters) const
Equality.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for triggering.
Shower trigger parameters.