Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JTriggerNB_t.hh
Go to the documentation of this file.
1#ifndef __JTRIGGER__JTRIGGERNB_T__
2#define __JTRIGGER__JTRIGGERNB_T__
3
7
8
9/**
10 * \author rgruiz
11 */
12
13namespace JTRIGGER {}
14namespace JPP { using namespace JTRIGGER; }
15
16namespace JTRIGGER {
17
18 /**
19 * Nano-beacon trigger parameters.
20 */
22 {
23 /**
24 * Trigger parameters.
25 */
27 {
28 public:
29 /**
30 * Default constructor.
31 */
33 {
34 reset();
35 }
36
37
38 /**
39 * Virtual destructor.
40 */
41 virtual ~JParameters()
42 {}
43
44
45 /**
46 * Reset trigger parameters.
47 *
48 * Note that this method set the default reference PMTs with the wildcard for the module identifier.
49 */
50 void reset()
51 {
52 enabled = false;
53 write = 1;
54
55 pmts.clear();
56
57 pmts.push_back(JPMTIdentifier_t(-1, 0));
58 pmts.push_back(JPMTIdentifier_t(-1, 3));
59 pmts.push_back(JPMTIdentifier_t(-1, 4));
60
61 DMax_m = 100;
62 }
63
64
65 /**
66 * Equality
67 *
68 * \param parameters trigger parameters
69 * \return true if equals; else false
70 */
71 bool equals(const JParameters& parameters) const
72 {
73 return (enabled == parameters.enabled &&
74 write.equals (parameters.write) &&
75 pmts == parameters.pmts &&
76 DMax_m == parameters.DMax_m);
77 }
78
79
81
82 bool enabled; ///< enabled status of trigger
84 JPMTSelector pmts; ///< PMT selection
85 double DMax_m; ///< maximal distance between PMTs [m]
86 };
87 };
88}
89
90#endif
Auxiliary class for prescaling.
Definition JPrescaler.hh:25
bool equals(const JPrescaler &prescaler) const
Equality.
Definition JPrescaler.hh:60
JParameters()
Default constructor.
bool enabled
enabled status of trigger
double DMax_m
maximal distance between PMTs [m]
void reset()
Reset trigger parameters.
JPMTSelector pmts
PMT selection.
bool equals(const JParameters &parameters) const
Equality.
virtual ~JParameters()
Virtual destructor.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for triggering.
Auxiliary data structure for set of PMT identifiers.
Nano-beacon trigger parameters.