Jpp
Classes | Typedefs | Functions | Variables
JTRIGGER Namespace Reference

Checksum. More...

Classes

struct  JAssertBit
 This class will generate a compiler error if trigger bit is out of range. More...
 
struct  JAssertBit< N, true >
 Implementation of a valid trigger bit. More...
 
struct  JAttributes
 Module attributes. More...
 
class  JBinder2nd
 Auxiliary class to convert binary JMatch operator and given hit to unary match operator. More...
 
struct  JBuild
 Auxiliary base class for hit building. More...
 
struct  JBuildHelper
 Auxiliary class to extend hit building functionality to all DAQ data types. More...
 
class  JBuildL0
 Template L0 hit builder. More...
 
class  JBuildL0< JHitL0 >
 Template specialisation of L0 builder for JHitL0 data type. More...
 
class  JBuildL0< JHitR0 >
 Template specialisation of L0 builder for JHitR0 data type. More...
 
class  JBuildL1
 Template L1 hit builder. More...
 
class  JBuildL1< JHitL1 >
 Template specialisation of L1 builder for JHitL1 data type. More...
 
class  JBuildL1< JHitR1 >
 Template specialisation of L1 builder for JHitR1 data type. More...
 
struct  JBuildL1Parameters
 Auxiliary data structure for L1 build parameters. More...
 
class  JBuildL2
 Template L2 builder. More...
 
class  JBuildL2< JHitL2 >
 Template specialisation of L2 builder for JHitL2 data type. More...
 
class  JBuildL2< JHitR2 >
 Template specialisation of L2 builder for JHitR2 data type. More...
 
struct  JChecksum
 Auxiliary class to perform check-sum on raw data. More...
 
class  JClone
 Clone of a container. More...
 
class  JDOMToPMTMaskMap
 
class  JEvent
 Triggered event. More...
 
class  JEventOverlap
 Match of two events considering overlap in time. More...
 
class  JFrame
 Data frame for calibrated hits of one PMT. More...
 
class  JFrameClone
 Clone of JFrame. More...
 
struct  JGetRiseTime
 Auxiliary class for rise time evaluation. More...
 
class  JHit
 Hit data structure. More...
 
class  JHitL0
 Data structure for L0 hit. More...
 
class  JHitL1
 Data structure for L1 hit. More...
 
class  JHitR0
 Reduced data structure for L0 hit. More...
 
class  JHitR1
 Reduced data structure for L1 hit. More...
 
struct  JHitToolkit
 Template definition of hit toolkit. More...
 
struct  JHitToolkit< JHit, false >
 Template specialisation of hit toolkit for JHit class. More...
 
struct  JHitToolkit< JHit_t, true >
 Template specialisation of hit toolkit for any primitive data type. More...
 
struct  JHitToolkit< JHitR0, false >
 Template specialisation of hit toolkit for JHit class. More...
 
struct  JL2Parameters
 Data structure for L2 parameters. More...
 
class  JMatch
 Function object interface for hit matching. More...
 
class  JMatch1D
 1D match criterion. More...
 
class  JMatch3B
 3D match criterion with road width. More...
 
class  JMatch3D
 3D match criterion. More...
 
class  JMatch3G
 3G match criterion. More...
 
class  JMatchHelper
 Auxiliary class to handle pointer to match function. More...
 
class  JMatchL0
 L0 match criterion. More...
 
struct  JModuleCounter
 Auxiliary class for counting unique modules. More...
 
struct  JModuleHeader
 Header for Module. More...
 
struct  JParametersHelper
 Wrapper class to share parameters. More...
 
struct  JPMTHeader
 Header for PMT. More...
 
class  JPMTIdentifier_t
 
class  JPMTMask
 Auxiliary class for pmt mask. More...
 
struct  JPMTSelector
 Auxiliary data structure for set of PMT identifiers. More...
 
struct  JPreprocessor
 Auxiliary class for specifying the way of pre-processing of hits. More...
 
class  JPrescaler
 Auxiliary class for prescaling. More...
 
struct  JRunByRun
 Auxiliary class to handle run by run options. More...
 
class  JSummaryRouter
 Router for fast addressing of summary data in JDAQSummaryslice data structure as a function of the optical module identifier. More...
 
class  JSuperFrame1D
 1-dimensional frame with time calibrated data from one optical module. More...
 
class  JSuperFrame2D
 2-dimensional frame with time calibrated data from one optical module. More...
 
class  JSuperFrameClone1D
 Clone of JSuperFrame1D. More...
 
class  JSuperFrameClone2D
 Clone of JSuperFrame2D. More...
 
class  JTimeConverter
 Auxiliary class to convert DAQ/trigger hit time to/from Monte Carlo hit time. More...
 
class  JTimeslice
 Time slice with calibrated data. More...
 
class  JTimesliceClone
 Clone of JTimeslice. More...
 
class  JTimesliceL1
 Auxiliary class to build JDAQTimeslice for L1 timeslice. More...
 
class  JTimesliceRouter
 Router for fast addressing of hits in KM3NETDAQ::JDAQTimeslice data structure as a function of the optical module identifier and time. More...
 
class  JTrigger3D
 General purpose majority trigger. More...
 
class  JTrigger3DMuon
 Muon trigger. More...
 
struct  JTrigger3DMuon_t
 Muon trigger parameters. More...
 
class  JTrigger3DShower
 Shower trigger. More...
 
struct  JTrigger3DShower_t
 Shower trigger parameters. More...
 
class  JTrigger3N
 General purpose muon trigger. More...
 
struct  JTriggerBit
 This class is used to map trigger class to trigger bit. More...
 
class  JTriggeredEvent
 Auxiliary class to build JDAQEvent for a triggered event. More...
 
class  JTriggeredHit
 Data structure for triggered hit. More...
 
class  JTriggerException
 General exception. More...
 
class  JTriggerInput
 Data structure for input to trigger algorithm. More...
 
class  JTriggerInterface
 Trigger interface. More...
 
class  JTriggerMXShower
 Shower trigger. More...
 
struct  JTriggerMXShower_t
 Shower trigger parameters. More...
 
class  JTriggerNB
 Nano-beacon trigger. More...
 
struct  JTriggerNB_t
 Nano-beacon trigger parameters. More...
 
class  JTriggerOutput
 Set of triggered events. More...
 
class  JTriggerParameters
 Data structure for all trigger parameters. More...
 

Typedefs

typedef JHitL1 JHitL2
 Type definition of L2 hit. More...
 
typedef JHitR1 JHitR2
 Type definition of R2 hit. More...
 
typedef unsigned int JPMTMask_t
 Type definition of pmt mask. More...
 
typedef unsigned int JTriggerbit_t
 Type definition of trigger bit. More...
 

Functions

template<class JHitIterator_t , class JHit_t >
JHitIterator_t clusterize (JHitIterator_t __begin, JHitIterator_t __end, const JMatch< JHit_t > &match, const int Nmin=1)
 Partition data according given binary match operator. More...
 
template<class JHitIterator_t , class JHit_t >
JHitIterator_t clusterize (JHitIterator_t __begin, JHitIterator_t __end, const JMatch< JHit_t > &match, const int Nmin, std::random_access_iterator_tag)
 Implementation of method clusterize for random access iterators. More...
 
template<class JHitIterator_t , class JHit_t >
JHitIterator_t reverse_clusterize (JHitIterator_t __begin, JHitIterator_t __end, const JMatch< JHit_t > &match)
 Partition data according given binary match operator. More...
 
template<class JHitIterator_t , class JHit_t >
JHitIterator_t reverse_clusterize (JHitIterator_t __begin, JHitIterator_t __end, const JMatch< JHit_t > &match, std::random_access_iterator_tag)
 Implementation of method reverse_clusterize for random access iterators. More...
 
template<class JHitIterator_t , class JComparator_t , class JHit_t >
JHitIterator_t clusterize (JHitIterator_t __begin, JHitIterator_t __end, JComparator_t comparator, const JMatch< JHit_t > &match)
 Select best root hit according given comparator and partition remaining data according given binary match operator and this root hit. More...
 
template<class JHitIterator_t , class JHit_t >
JHitIterator_t clusterizeWeight (JHitIterator_t __begin, JHitIterator_t __end, const JMatch< JHit_t > &match)
 Partition data according given binary match operator. More...
 
template<class JHitIterator_t , class JHit_t >
JHitIterator_t clusterizeWeight (JHitIterator_t __begin, JHitIterator_t __end, const JMatch< JHit_t > &match, std::random_access_iterator_tag)
 Implementation of method clusterizeWeight for random access iterators. More...
 
template<class JHit_t >
bool weightSorter (const JHit_t &first, const JHit_t &second)
 Compare two hits by weight. More...
 
template<class JHit_t >
bool timeSorter (const JHit_t &first, const JHit_t &second)
 Compare two hits by weight. More...
 
template<class JHit_t >
JBinder2nd< JHit_t > JBind2nd (const JMatch< JHit_t > &match, const JHit_t &second)
 Auxiliary method to create JBinder2nd object. More...
 
bool operator< (const JEvent &first, const JEvent &second)
 Less than operator for events. More...
 
JTimeRange getTimeRange (const JEvent &event)
 Get time range (i.e. More...
 
bool operator< (const JHit &first, const JHit &second)
 Less than operator for hits. More...
 
bool operator< (const JHit &hit, const double t1)
 Less than operator for hits. More...
 
bool operator== (const JHit &first, const JHit &second)
 Equal operator for hits. More...
 
double getTime (const JDAQHit &hit, const JCalibration &cal)
 Get calibrated time of DAQ hit. More...
 
double getToT (const JDAQHit &hit, const JCalibration &cal)
 Get calibrated time-over-threshold of DAQ hit. More...
 
template<class JHit_t >
JMatchHelper< JHit_t > make_match (bool(*match)(const JHit_t &, const JHit_t &))
 Auxiliary method to make JMatch object based on pointer to match function. More...
 
bool operator== (const JPMTIdentifier_t &first, const JPMTIdentifier_t &second)
 Equal operator for PMT identifiers. More...
 
bool operator< (const JPMTIdentifier_t &first, const JPMTIdentifier_t &second)
 Less than operator for PMT identifiers. More...
 
JPMTMask_t getPMTMask (const unsigned int bit)
 Convert pmt bit to pmt mask. More...
 
 setTriggerBit (JTrigger3DShower, JTRIGGER3DSHOWER)
 
 setTriggerBit (JTriggerMXShower, JTRIGGERMXSHOWER)
 
 setTriggerBit (JTrigger3DMuon, JTRIGGER3DMUON)
 
 setTriggerBit (JTriggerNB, JTRIGGERNB)
 
bool operator< (const JTriggeredHit &first, const JTriggeredHit &second)
 Less than operator for triggered hits. More...
 
bool operator== (const JTriggeredHit &first, const JTriggeredHit &second)
 Equal operator for triggered hits. More...
 
template<class JTrigger_t >
JTriggerbit_t getTriggerBit ()
 Get the trigger bit. More...
 
template<class JTrigger_t >
JTriggerbit_t getTriggerBit (const JTrigger_t &event)
 Get the trigger bit. More...
 
const char * getTriggerName (JTriggerbit_t bit)
 Get trigger name. More...
 
void setAttributes (const JModule &first, const JModule &second, JAttributes &attributes)
 Set module attributes. More...
 
void randomize (JTrigger3DMuon_t::JParameters *p)
 Randomize trigger parameters. More...
 
void randomize (JTrigger3DShower_t::JParameters *p)
 Randomize trigger parameters. More...
 
void randomize (JTriggerMXShower_t::JParameters *p)
 Randomize trigger parameters. More...
 
void randomize (JTriggerNB_t::JParameters *p)
 Randomize trigger parameters. More...
 
void randomize (JTriggerParameters *p)
 Randomize trigger parameters. More...
 
JTimeRange getTimeRange (const JTriggerParameters &parameters)
 Get time range of snapshot. More...
 
JTimeRange getTimeRange (const JTriggerNB_t::JParameters &parameters)
 Get time range of snapshot. More...
 

Variables

static const JChecksum checksum
 Function object to perform check-sum of raw data. More...
 
static const JGetRiseTime getRiseTime
 Function object for rise time evaluation. More...
 
static const unsigned int NUMBER_OF_PMT_BITS = 31
 Number of pmt bits. More...
 

Detailed Description

Checksum.

Trigger algorithms and support classes.

Author
mdejong
rbruijn
rgruiz

Typedef Documentation

◆ JHitL2

Type definition of L2 hit.

Definition at line 20 of file JHitL2.hh.

◆ JHitR2

Type definition of R2 hit.

Definition at line 20 of file JHitR2.hh.

◆ JPMTMask_t

typedef unsigned int JTRIGGER::JPMTMask_t

Type definition of pmt mask.

Definition at line 30 of file JPMTMask.hh.

◆ JTriggerbit_t

typedef unsigned int JTRIGGER::JTriggerbit_t

Type definition of trigger bit.

Definition at line 29 of file JTriggerInterface.hh.

Function Documentation

◆ clusterize() [1/3]

template<class JHitIterator_t , class JHit_t >
JHitIterator_t JTRIGGER::clusterize ( JHitIterator_t  __begin,
JHitIterator_t  __end,
const JMatch< JHit_t > &  match,
const int  Nmin = 1 
)
inline

Partition data according given binary match operator.

The underlying algorithm is known in literature as 'clique'. The result is (likely to be) the maximal sub-set with all elements matched to each other. The complexity is quadratic, i.e. at most (number of elements x number of elements) operations. The algorithm will sort the data such that all clusterized hits are at the front. The return value points the first non clusterized hit.

The template argument JHit_t refers to a data structure which should have the following member methods:

  • double getX(); // [m]
  • double getY(); // [m]
  • double getZ(); // [m]
  • double getT(); // [ns]
Parameters
__beginbegin of data
__endend of data
matchbinary match operator
Nminminimum cluster size
Returns
end of data

Definition at line 45 of file JAlgorithm.hh.

49  {
50  return clusterize(__begin, __end, match, Nmin, typename std::iterator_traits<JHitIterator_t>::iterator_category());
51  }

◆ clusterize() [2/3]

template<class JHitIterator_t , class JHit_t >
JHitIterator_t JTRIGGER::clusterize ( JHitIterator_t  __begin,
JHitIterator_t  __end,
const JMatch< JHit_t > &  match,
const int  Nmin,
std::random_access_iterator_tag   
)
inline

Implementation of method clusterize for random access iterators.

Definition at line 58 of file JAlgorithm.hh.

63  {
64  const int N = std::distance(__begin, __end);
65 
66  if (N >= Nmin) {
67 
68  int i, j;
69  int n = N;
70 
71  JHitIterator_t buffer = __begin;
72 
73  // Determine number of associated hits for each hit.
74 
75  std::vector<int> count(N, 1); // Assume always a match with itself.
76 
77  for (i = 0; i != N; ++i) {
78 
79  for (j = i; ++j != N; ) {
80 
81  if (match(buffer[i], buffer[j])) {
82 
83  ++count[i];
84  ++count[j];
85 
86  } else if (n == Nmin) {
87 
88  return __begin;
89  }
90  }
91 
92  if (count[i] < Nmin) {
93 
94  --n;
95 
96  if (n < Nmin) {
97  return __begin;
98  }
99  }
100  }
101 
102  n = N;
103 
104  // Remove hit with the smallest number of associated hits.
105  // This procedure stops when the number of associated hits
106  // is equal to the number of (remaining) hits.
107 
108  for ( ; n >= Nmin; ) {
109 
110  j = 0;
111 
112  for (i = 1; i != n; ++i) {
113  if (count[i] < count[j]) {
114  j = i;
115  }
116  }
117 
118  // Ready?
119 
120  if (count[j] == n) {
121  break;
122  }
123 
124  // Reduce effective size.
125 
126  --n;
127 
128  // Swap the selected hit to end.
129 
130  std::swap(buffer[j], buffer[n]);
131  std::swap(count [j], count [n]);
132 
133  // Decrease number of associated hits for each associated hit.
134 
135  for (i = 0; i != n; ++i) {
136  if (match(buffer[i], buffer[n])) {
137  --count[i];
138  }
139  }
140  }
141 
142  if (n >= Nmin)
143  return __begin + n;
144  else
145  return __begin;
146  }
147 
148  return __begin;
149  }

◆ reverse_clusterize() [1/2]

template<class JHitIterator_t , class JHit_t >
JHitIterator_t JTRIGGER::reverse_clusterize ( JHitIterator_t  __begin,
JHitIterator_t  __end,
const JMatch< JHit_t > &  match 
)
inline

Partition data according given binary match operator.

The underlying algorithm is known in literature as reverse 'clique'. The result is (likely to be) the maximal sub-set with all elements matched to each other. The complexity is quadratic, i.e. at most (number of elements x number of elements) operations. The algorithm will sort the data such that all clusterized hits are at the front. The return value points the first non clusterized hit.

The template argument JHit_t refers to a data structure which should have the following member methods:

  • double getX(); // [m]
  • double getY(); // [m]
  • double getZ(); // [m]
  • double getT(); // [ns]
Parameters
__beginbegin of data
__endend of data
matchbinary match operator
Returns
end of data

Definition at line 173 of file JAlgorithm.hh.

176  {
177  return reverse_clusterize(__begin, __end, match, typename std::iterator_traits<JHitIterator_t>::iterator_category());
178  }

◆ reverse_clusterize() [2/2]

template<class JHitIterator_t , class JHit_t >
JHitIterator_t JTRIGGER::reverse_clusterize ( JHitIterator_t  __begin,
JHitIterator_t  __end,
const JMatch< JHit_t > &  match,
std::random_access_iterator_tag   
)
inline

Implementation of method reverse_clusterize for random access iterators.

Definition at line 185 of file JAlgorithm.hh.

189  {
190  const int N = std::distance(__begin, __end);
191 
192  if (N != 0) {
193 
194  int i, j;
195 
196  JHitIterator_t buffer = __begin;
197 
198  // Determine number of associated hits for each hit.
199 
200  std::vector<int> count(N, 1); // Assume always a match with itself.
201 
202  for (i = 0; i != N; ++i) {
203 
204  for (j = 0; j != i; ++j) {
205  if (match(buffer[i], buffer[j])) {
206  ++count[i];
207  ++count[j];
208  }
209  }
210  }
211 
212  // Keep hit with the largest number of associated hits.
213  // This procedure stops when the number of associated hits is equal to one.
214 
215  for (int k = 0; ; ) {
216 
217  j = k;
218 
219  for (i = j; ++i != N; ) {
220  if (count[i] > count[j]) {
221  j = i;
222  }
223  }
224 
225  // Ready?
226 
227  if (count[j] == 1) {
228  return __begin + k;
229  }
230 
231  // Swap the selected hit to begin.
232 
233  std::swap(buffer[j], buffer[k]);
234  std::swap(count [j], count [k]);
235 
236  // Decrease number of associated hits for each associated hit.
237 
238  for (i = k; ++i != N; ) {
239  if (match(buffer[i], buffer[k])) {
240  --count[i];
241  }
242  }
243 
244  // Increase effective size.
245 
246  ++k;
247  }
248  }
249 
250  return __begin;
251  }

◆ clusterize() [3/3]

template<class JHitIterator_t , class JComparator_t , class JHit_t >
JHitIterator_t JTRIGGER::clusterize ( JHitIterator_t  __begin,
JHitIterator_t  __end,
JComparator_t  comparator,
const JMatch< JHit_t > &  match 
)
inline

Select best root hit according given comparator and partition remaining data according given binary match operator and this root hit.

The complexity is linear, i.e. at most number of elements operations. The complexity is quadratic, i.e. at most (number of elements x number of elements) operations. The algorithm will sort the data such that all clusterized hits are at the front.

Parameters
__beginbegin of data
__endend of data
comparatorcomparator
matchbinary match operator
Returns
end of data

Definition at line 268 of file JAlgorithm.hh.

272  {
273  if (__begin != __end) {
274 
275  std::sort(__begin, __end, comparator);
276 
277  const JHit_t& root = *__begin;
278 
279  return std::partition(++__begin, __end, JBind2nd(match, root));
280 
281  } else {
282 
283  return __end;
284  }
285  }

◆ clusterizeWeight() [1/2]

template<class JHitIterator_t , class JHit_t >
JHitIterator_t JTRIGGER::clusterizeWeight ( JHitIterator_t  __begin,
JHitIterator_t  __end,
const JMatch< JHit_t > &  match 
)
inline

Partition data according given binary match operator.

The underlying algorithm is known in literature as reverse 'clique'. The result is (likely to be) the maximal sub-set with all elements matched to each other. The complexity is quadratic, i.e. at most (number of elements x number of elements) operations. The algorithm will sort the data such that all clusterized hits are at the front. The return value points the first non clusterized hit.

The template argument JHit_t refers to a data structure which should have the following member methods:

  • double getX(); // [m]
  • double getY(); // [m]
  • double getZ(); // [m]
  • double getT(); // [ns]
  • double getW(); // [au]
Parameters
__beginbegin of data
__endend of data
matchbinary match operator
Returns
end of data

Definition at line 310 of file JAlgorithm.hh.

313  {
314  return clusterizeWeight(__begin, __end, match, typename std::iterator_traits<JHitIterator_t>::iterator_category());
315  }

◆ clusterizeWeight() [2/2]

template<class JHitIterator_t , class JHit_t >
JHitIterator_t JTRIGGER::clusterizeWeight ( JHitIterator_t  __begin,
JHitIterator_t  __end,
const JMatch< JHit_t > &  match,
std::random_access_iterator_tag   
)
inline

Implementation of method clusterizeWeight for random access iterators.

Definition at line 322 of file JAlgorithm.hh.

326  {
327  if (__begin != __end) {
328 
329  const int N = std::distance(__begin, __end);
330 
331  int i, j;
332 
333  // Determine weight of each hit.
334 
335  std::vector<double> weight(N, 0.0);
336 
337  JHitIterator_t buffer = __begin;
338 
339  for (i = 0; i != N; ++i) {
340 
341  weight[i] += buffer[i].getW();
342 
343  for (j = i; ++j != N; ) {
344 
345  if (match(buffer[i], buffer[j])) {
346 
347  weight[i] += buffer[j].getW();
348  weight[j] += buffer[i].getW();
349  }
350  }
351  }
352 
353  // Remove hit with the smallest weight of associated hits.
354  // This procedure stops when the weight of associated hits
355  // is equal to the maximal weight of (remaining) hits.
356 
357  int n = N;
358  double W;
359 
360  for ( ; ; ) {
361 
362  j = 0;
363  W = weight[j];
364 
365  for (i = 1; i != n; ++i) {
366 
367  if (weight[i] < weight[j]) {
368  j = i;
369  }
370 
371  if (weight[i] > W) {
372  W = weight[i];
373  }
374  }
375 
376  // Ready?
377 
378  if (weight[j] == W) {
379  break;
380  }
381 
382  // Reduce effective size.
383 
384  --n;
385 
386  // Swap the selected hit to end.
387 
388  std::swap(buffer[j], buffer[n]);
389  std::swap(weight[j], weight[n]);
390 
391  // Decrease weight of associated hits for each associated hit.
392 
393  for (i = 0; i != n; ++i) {
394  if (match(buffer[i], buffer[n])) {
395  weight[i] -= buffer[n].getW();
396  }
397  }
398  }
399 
400  return __begin + n;
401 
402  } else {
403 
404  return __end;
405  }
406  }

◆ weightSorter()

template<class JHit_t >
bool JTRIGGER::weightSorter ( const JHit_t &  first,
const JHit_t &  second 
)
inline

Compare two hits by weight.

The template argument JHit_t refers to a data structure which should have the following member methods:

  • double getW(); // [a.u.]
Parameters
firstfirst hit
secondsecond hit
Returns
true if first hit has larger weight than second; else false

Definition at line 420 of file JAlgorithm.hh.

421  {
422  return first.getW() > second.getW();
423  }

◆ timeSorter()

template<class JHit_t >
bool JTRIGGER::timeSorter ( const JHit_t &  first,
const JHit_t &  second 
)
inline

Compare two hits by weight.

The template argument JHit_t refers to a data structure which should have the following member methods:

  • double getT(); // [a.u.]
Parameters
firstfirst hit
secondsecond hit
Returns
true if first hit earlier than second; else false

Definition at line 437 of file JAlgorithm.hh.

438  {
439  return first.getT() < second.getT();
440  }

◆ JBind2nd()

template<class JHit_t >
JBinder2nd<JHit_t> JTRIGGER::JBind2nd ( const JMatch< JHit_t > &  match,
const JHit_t &  second 
)
inline

Auxiliary method to create JBinder2nd object.

Parameters
matchmatch operator
secondsecond hit
Returns
JBinder2nd

Definition at line 70 of file JBind2nd.hh.

71  {
72  return JBinder2nd<JHit_t>(match, second);
73  }

◆ operator<() [1/5]

bool JTRIGGER::operator< ( const JEvent first,
const JEvent second 
)
inline

Less than operator for events.

The less than operator is applied to the first hit in the events.

Parameters
firstfirst event
secondsecond event
Returns
true if first event earliear than second; else false

Definition at line 214 of file JEvent.hh.

215  {
216  if (first.empty() || second.empty()) {
217  throw JTriggerException("Comparison with empty event(s).");
218  }
219 
220  return first.begin()->getT() < second.begin()->getT();
221  }

◆ getTimeRange() [1/3]

JTimeRange JTRIGGER::getTimeRange ( const JEvent event)
inline

Get time range (i.e.

earlist and latest hit time) of triggered event.

Parameters
eventevent
Returns
time range

Definition at line 26 of file JEventToolkit.hh.

27  {
28  if (!event.empty())
29  return JTimeRange(event.begin()->getT(), event.rbegin()->getT());
30  else
31  return JTimeRange::DEFAULT_RANGE;
32  }

◆ operator<() [2/5]

bool JTRIGGER::operator< ( const JHit first,
const JHit second 
)
inline

Less than operator for hits.

The less than operator is applied to the time of the hits.

Parameters
firstfirst hit
secondsecond hit
Returns
true if first hit earlier; else false

Definition at line 231 of file JHit.hh.

232  {
233  return first.getT() < second.getT();
234  }

◆ operator<() [3/5]

bool JTRIGGER::operator< ( const JHit hit,
const double  t1 
)
inline

Less than operator for hits.

The less than operator is applied to the time of the hits.

Parameters
hithit
t1time [ns]
Returns
true if hit earlier than t; else false

Definition at line 246 of file JHit.hh.

247  {
248  return hit.getT() < t1;
249  }

◆ operator==() [1/3]

bool JTRIGGER::operator== ( const JHit first,
const JHit second 
)
inline

Equal operator for hits.

The equal operator is applied to the time of the hits.

Parameters
firsthit
secondhit
Returns
true if first hit time equal to second hit time; else false

Definition at line 261 of file JHit.hh.

262  {
263  return first.getT() == second.getT();
264  }

◆ getTime()

double JTRIGGER::getTime ( const JDAQHit hit,
const JCalibration cal 
)
inline

Get calibrated time of DAQ hit.

Parameters
hitDAQ hit
calcalibration
Returns
time [ns]

Definition at line 34 of file JHitToolkit.hh.

35  {
36  return getTime(hit.getT(), cal);
37  }

◆ getToT()

double JTRIGGER::getToT ( const JDAQHit hit,
const JCalibration cal 
)
inline

Get calibrated time-over-threshold of DAQ hit.

Parameters
hitDAQ hit
calcalibration
Returns
time-over-threshold [ns]

Definition at line 47 of file JHitToolkit.hh.

48  {
49  return getToT(hit.getToT(), cal);
50  }

◆ make_match()

template<class JHit_t >
JMatchHelper<JHit_t> JTRIGGER::make_match ( bool(*)(const JHit_t &, const JHit_t &)  match)

Auxiliary method to make JMatch object based on pointer to match function.

Parameters
matchpointer to match function
Returns
match object

Definition at line 92 of file JMatch.hh.

93  {
94  return JMatchHelper<JHit_t>(match);
95  }

◆ operator==() [2/3]

bool JTRIGGER::operator== ( const JPMTIdentifier_t first,
const JPMTIdentifier_t second 
)
inline

Equal operator for PMT identifiers.

Parameters
firstPMT identifier
secondPMT identifier
Returns
true if first PMT equal second PMT; else false

Definition at line 169 of file JPMTIdentifier_t.hh.

170  {
171  return (first.getModuleID() == second.getModuleID() &&
172  first.getPMTAddress() == second.getPMTAddress());
173  }

◆ operator<() [4/5]

bool JTRIGGER::operator< ( const JPMTIdentifier_t first,
const JPMTIdentifier_t second 
)
inline

Less than operator for PMT identifiers.

The less than operator is applied first to the module identifer and then to the PMT address.

Parameters
firstPMT identifier
secondPMT identifier
Returns
true if first PMT lower than second PMT; else false

Definition at line 185 of file JPMTIdentifier_t.hh.

186  {
187  if (first.getModuleID() == second.getModuleID())
188  return first.getPMTAddress() < second.getPMTAddress();
189  else
190  return first.getModuleID() < second.getModuleID();
191  }

◆ getPMTMask()

JPMTMask_t JTRIGGER::getPMTMask ( const unsigned int  bit)
inline

Convert pmt bit to pmt mask.

Parameters
bitpmt bit
Returns
pmt mask

Definition at line 45 of file JPMTMask.hh.

46  {
47  if (bit < NUMBER_OF_PMT_BITS)
48  return JPMTMask_t(1) << bit;
49  else
50  return 0;
51  }

◆ setTriggerBit() [1/4]

JTRIGGER::setTriggerBit ( JTrigger3DShower  ,
JTRIGGER3DSHOWER   
)

◆ setTriggerBit() [2/4]

JTRIGGER::setTriggerBit ( JTriggerMXShower  ,
JTRIGGERMXSHOWER   
)

◆ setTriggerBit() [3/4]

JTRIGGER::setTriggerBit ( JTrigger3DMuon  ,
JTRIGGER3DMUON   
)

◆ setTriggerBit() [4/4]

JTRIGGER::setTriggerBit ( JTriggerNB  ,
JTRIGGERNB   
)

◆ operator<() [5/5]

bool JTRIGGER::operator< ( const JTriggeredHit first,
const JTriggeredHit second 
)
inline

Less than operator for triggered hits.

The less than operator is applied first to JTRIGGER::JHit and then to the KM3NETDAQ::JDAQPMTIdentifier. Hence, the ordering by JTRIGGER::JHit is maintained. This allows for the use of STL sort() and set_union() algorithms.

Parameters
firstfirst hit
secondsecond hit
Returns
true if first hit earlier or lower PMT identifier if equal; else false

Definition at line 86 of file JTriggeredHit.hh.

87  {
88  if (std::equal_to<JHit>()(first,second))
89  return std::less<JDAQPMTIdentifier>()(first,second);
90  else
91  return std::less<JHit> ()(first,second);
92  }

◆ operator==() [3/3]

bool JTRIGGER::operator== ( const JTriggeredHit first,
const JTriggeredHit second 
)
inline

Equal operator for triggered hits.

The equal operator is applied to JTRIGGER::JHit and to the KM3NETDAQ::JDAQPMTIdentifier.

Parameters
firstfirst hit
secondsecond hit
Returns
true if first hit equal second hit; else false

Definition at line 104 of file JTriggeredHit.hh.

105  {
106  return (std::equal_to<JDAQPMTIdentifier>()(first,second) &&
107  std::equal_to<JHit> ()(first,second));
108  }

◆ getTriggerBit() [1/2]

template<class JTrigger_t >
JTriggerbit_t JTRIGGER::getTriggerBit ( )
inline

Get the trigger bit.

Returns
trigger bit

Definition at line 212 of file JTriggerInterface.hh.

213  {
215  }

◆ getTriggerBit() [2/2]

template<class JTrigger_t >
JTriggerbit_t JTRIGGER::getTriggerBit ( const JTrigger_t &  event)
inline

Get the trigger bit.

Parameters
eventtriggered event
Returns
trigger bit

Definition at line 225 of file JTriggerInterface.hh.

226  {
228  }

◆ getTriggerName()

const char* JTRIGGER::getTriggerName ( JTriggerbit_t  bit)
inline

Get trigger name.

param bit trigger bit

Returns
trigger name

Definition at line 237 of file JTriggerInterface.hh.

238  {
240  }

◆ setAttributes()

void JTRIGGER::setAttributes ( const JModule first,
const JModule second,
JAttributes attributes 
)
inline

Set module attributes.

Parameters
firstfirst module
secondsecond module
attributesmodule attributes

Definition at line 46 of file JTriggerMXShower.hh.

49  {
50  using namespace JMATH;
51  using namespace JTOOLS;
52 
53  typedef JTriggerMXShower_t::JParameters JParameters_t;
54 
55  // get trigger parameters
56 
57  const JParameters_t& parameters = JParametersHelper<JParameters_t>::getParameters();
58 
59  const double d = getDistance(first, second);
60 
61  double t1 = 0.0;
62 
63  if (d <= 0.5 * parameters.DMax_m)
64  t1 = d * getIndexOfRefraction() * getInverseSpeedOfLight() + parameters.TMaxExtra_ns;
65  else if (d <= parameters.DMax_m)
66  t1 = (parameters.DMax_m - d) * getIndexOfRefraction() * getInverseSpeedOfLight() + parameters.TMaxExtra_ns;
67 
68  attributes.Tmin_ns = -t1;
69  attributes.Tmax_ns = +t1;
70  }

◆ randomize() [1/5]

void JTRIGGER::randomize ( JTrigger3DMuon_t::JParameters p)
inline

Randomize trigger parameters.

Parameters
ppointer to valid object

Definition at line 26 of file JTriggerTestkit.hh.

27  {
28  p->enabled = getRandom<bool>();
29  p->numberOfHits = getRandom<int>(1, 10);
30  p->numberOfModules = getRandom<int>(1, 10);
31  p->DMax_m = getRandom<double>( 0.0, 999.0, 1.0);
32  p->roadWidth_m = getRandom<double>(50.0, 250.0, 1.0);
33  p->gridAngle_deg = getRandom<double>( 1.0, 10.0, 1.0);
34  p->TMaxExtra_ns = getRandom<double>(10.0, 50.0, 1.0);
35  p->factoryLimit = getRandom<double>(100, 200);
36  }

◆ randomize() [2/5]

void JTRIGGER::randomize ( JTrigger3DShower_t::JParameters p)
inline

Randomize trigger parameters.

Parameters
ppointer to valid object

Definition at line 44 of file JTriggerTestkit.hh.

45  {
46  p->enabled = getRandom<bool>();
47  p->numberOfHits = getRandom<int>(1, 10);
48  p->numberOfModules = getRandom<int>(1, 10);
49  p->DMax_m = getRandom<double>( 0.0, 999.0, 1.0);
50  p->TMaxExtra_ns = getRandom<double>(10.0, 50.0, 1.0);
51  p->factoryLimit = getRandom<double>(100, 200);
52  }

◆ randomize() [3/5]

void JTRIGGER::randomize ( JTriggerMXShower_t::JParameters p)
inline

Randomize trigger parameters.

Parameters
ppointer to valid object

Definition at line 60 of file JTriggerTestkit.hh.

61  {
62  p->enabled = getRandom<bool>();
63  p->numberOfHits = getRandom<int>(1, 10);
64  p->numberOfModules = getRandom<int>(1, 10);
65  p->DMax_m = getRandom<double>( 0.0, 999.0, 1.0);
66  p->TMaxExtra_ns = getRandom<double>(10.0, 50.0, 1.0);
67  p->factoryLimit = getRandom<double>(100, 200);
68  }

◆ randomize() [4/5]

void JTRIGGER::randomize ( JTriggerNB_t::JParameters p)
inline

Randomize trigger parameters.

Parameters
ppointer to valid object

Definition at line 76 of file JTriggerTestkit.hh.

77  {
78  p->enabled = getRandom<bool>();
79 
80  p->pmts.clear();
81 
82  for (int i = getRandom<int>(1, 10); i != 0; --i) {
83  p->pmts.push_back(JPMTIdentifier_t(getRandom<int>(-1, 100),
84  getRandom<int>(-1, 30)));
85  }
86  }

◆ randomize() [5/5]

void JTRIGGER::randomize ( JTriggerParameters p)
inline

Randomize trigger parameters.

Parameters
ppointer to valid object

Definition at line 94 of file JTriggerTestkit.hh.

95  {
96  p->highRateVeto_Hz = getRandom<double>(1.0e3, 1.0e4, 1.0);
97  p->L2Min = getRandom<int>(2, 3);
98  p->ctMin = getRandom<double>( -1.0, +1.0, 0.1);
99  p->TMaxLocal_ns = getRandom<double>( 10.0, 20.0, 1.0);
100  p->TMaxEvent_ns = getRandom<double>(100.0, 999.0, 1.0);
101  p->numberOfBins = getRandom<int>(100, 1000);
102  p->combineL1 = getRandom<bool>();
103 
104  p->trigger3DMuon = getRandom<JTrigger3DMuon_t ::JParameters>();
105  p->trigger3DShower = getRandom<JTrigger3DShower_t::JParameters>();
106  p->triggerMXShower = getRandom<JTriggerMXShower_t::JParameters>();
107  p->triggerNB = getRandom<JTriggerNB_t ::JParameters>();
108 
109  p->writeSummary = getRandom<long long int>(0, 100);
110  p->writeL0 = getRandom<long long int>(0, 100);
111  p->writeL1 = getRandom<long long int>(0, 100);
112  p->writeL2 = getRandom<long long int>(0, 100);
113  p->writeSN = getRandom<long long int>(0, 100);
114  }

◆ getTimeRange() [2/3]

JTimeRange JTRIGGER::getTimeRange ( const JTriggerParameters parameters)
inline

Get time range of snapshot.

Parameters
parameterstrigger parameters
Returns
time range [ns]

Definition at line 28 of file JTriggerToolkit.hh.

29  {
30  return JTimeRange(-parameters.TMaxEvent_ns, +parameters.TMaxEvent_ns);
31  }

◆ getTimeRange() [3/3]

JTimeRange JTRIGGER::getTimeRange ( const JTriggerNB_t::JParameters parameters)
inline

Get time range of snapshot.

Parameters
parameterstrigger parameters
Returns
time range [ns]

Definition at line 39 of file JTriggerToolkit.hh.

40  {
42  }

Variable Documentation

◆ checksum

const JChecksum JTRIGGER::checksum
static

Function object to perform check-sum of raw data.

Definition at line 161 of file JChecksum.hh.

◆ getRiseTime

const JGetRiseTime JTRIGGER::getRiseTime
static

Function object for rise time evaluation.

Definition at line 313 of file JGetRiseTime.hh.

◆ NUMBER_OF_PMT_BITS

const unsigned int JTRIGGER::NUMBER_OF_PMT_BITS = 31
static

Number of pmt bits.

Definition at line 36 of file JPMTMask.hh.

JTRIGGER::JTrigger3DShower_t::JParameters::numberOfModules
int numberOfModules
minimal number of modules to trigger event
Definition: JTrigger3DShower_t.hh:104
JTRIGGER::JBind2nd
JBinder2nd< JHit_t > JBind2nd(const JMatch< JHit_t > &match, const JHit_t &second)
Auxiliary method to create JBinder2nd object.
Definition: JBind2nd.hh:70
JTRIGGER::JTriggerNB_t::JParameters::enabled
bool enabled
enabled status of trigger
Definition: JTriggerNB_t.hh:81
JTRIGGER::JTriggerParameters::combineL1
bool combineL1
combine multiple L1s in many-fold coincidence
Definition: JTriggerParameters.hh:325
JTRIGGER::JTriggerMXShower_t::JParameters
Trigger parameters.
Definition: JTriggerMXShower_t.hh:24
JTRIGGER::JTriggerParameters::numberOfBins
int numberOfBins
number of bins for lookup table of timeslice
Definition: JTriggerParameters.hh:324
JTRIGGER::getTime
double getTime(const JDAQHit &hit, const JCalibration &cal)
Get calibrated time of DAQ hit.
Definition: JHitToolkit.hh:34
JTRIGGER::JTriggerParameters::L2Min
int L2Min
minimal number of L0 hits for L2
Definition: JTriggerParameters.hh:320
JTRIGGER::JTriggerNB_t::JParameters::pmts
JPMTSelector pmts
PMT selection.
Definition: JTriggerNB_t.hh:82
JTRIGGER::JTrigger3DShower_t::JParameters::factoryLimit
int factoryLimit
maximal number of hits to apply trigger logic (above this limit, always trigger
Definition: JTrigger3DShower_t.hh:107
JTRIGGER::JBinder2nd
Auxiliary class to convert binary JMatch operator and given hit to unary match operator.
Definition: JBind2nd.hh:26
JTRIGGER::JMatchHelper
Auxiliary class to handle pointer to match function.
Definition: JMatch.hh:51
JTRIGGER::JPMTIdentifier_t::getPMTAddress
int getPMTAddress() const
Get PMT address.
Definition: JPMTIdentifier_t.hh:82
JTRIGGER::JAttributes::Tmin_ns
double Tmin_ns
minimal time difference [ns]
Definition: JTriggerMXShower.hh:34
JTRIGGER::JTriggerMXShower_t::JParameters::DMax_m
double DMax_m
maximal distance between PMTs [m]
Definition: JTriggerMXShower_t.hh:106
JTRIGGER::JAttributes::Tmax_ns
double Tmax_ns
maximal time difference [ns]
Definition: JTriggerMXShower.hh:35
JTRIGGER::JTriggerParameters::TMaxLocal_ns
double TMaxLocal_ns
maximal time difference between L0 hits for L1
Definition: JTriggerParameters.hh:322
JTRIGGER::JTriggerParameters::triggerNB
JTriggerNB_t::JParameters triggerNB
Definition: JTriggerParameters.hh:314
JTRIGGER::JTriggerParameters::TMaxEvent_ns
double TMaxEvent_ns
maximal time before and after event for snapshot
Definition: JTriggerParameters.hh:323
JTOOLS::n
const int n
Definition: JPolint.hh:628
JTRIGGER::JTriggerParameters::triggerMXShower
JTriggerMXShower_t::JParameters triggerMXShower
Definition: JTriggerParameters.hh:312
std::vector< int >
JTOOLS::j
int j
Definition: JPolint.hh:634
distance
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
Definition: PhysicsEvent.hh:434
JTRIGGER::reverse_clusterize
JHitIterator_t reverse_clusterize(JHitIterator_t __begin, JHitIterator_t __end, const JMatch< JHit_t > &match, std::random_access_iterator_tag)
Implementation of method reverse_clusterize for random access iterators.
Definition: JAlgorithm.hh:185
JTRIGGER::JTriggerParameters::trigger3DShower
JTrigger3DShower_t::JParameters trigger3DShower
Definition: JTriggerParameters.hh:311
JTRIGGER::JTriggerMXShower_t::JParameters::factoryLimit
int factoryLimit
maximal number of hits to apply trigger logic (above this limit, always trigger)
Definition: JTriggerMXShower_t.hh:108
JTRIGGER::JTriggerParameters::ctMin
double ctMin
this parameter has been deprecated
Definition: JTriggerParameters.hh:321
JTRIGGER::JTriggerNB_t::JParameters::DMax_m
double DMax_m
maximal distance between PMTs [m]
Definition: JTriggerNB_t.hh:83
JTOOLS::JTimeRange
JRange< double > JTimeRange
Type definition for time range.
Definition: JTools/JTimeRange.hh:19
JTRIGGER::JHit::getT
double getT() const
Get calibrated time of hit.
Definition: JHit.hh:143
JTRIGGER::clusterize
JHitIterator_t clusterize(JHitIterator_t __begin, JHitIterator_t __end, JComparator_t comparator, const JMatch< JHit_t > &match)
Select best root hit according given comparator and partition remaining data according given binary m...
Definition: JAlgorithm.hh:268
JTRIGGER::JTriggerException
General exception.
Definition: JTriggerException.hh:23
KM3NETDAQ::JDAQHit::getT
JTDC_t getT() const
Get time.
Definition: JDAQHit.hh:86
JTRIGGER::JTriggerParameters::writeL2
JPrescaler writeL2
write JDAQTimeslice with L2 data
Definition: JTriggerParameters.hh:334
JTOOLS::getInverseSpeedOfLight
const double getInverseSpeedOfLight()
Get inverse speed of light.
Definition: JConstants.hh:100
JTRIGGER::JTrigger3DShower_t::JParameters::numberOfHits
int numberOfHits
minimal number of hits to trigger event
Definition: JTrigger3DShower_t.hh:103
JTRIGGER::JTrigger3DMuon_t::JParameters::roadWidth_m
double roadWidth_m
maximal road width [m]
Definition: JTrigger3DMuon_t.hh:117
JTOOLS::getIndexOfRefraction
double getIndexOfRefraction()
Get average index of refraction of water.
Definition: JConstants.hh:111
JTRIGGER::JTrigger3DMuon_t::JParameters::TMaxExtra_ns
double TMaxExtra_ns
maximal extra time [ns]
Definition: JTrigger3DMuon_t.hh:119
KM3NETDAQ::JDAQHit::getToT
JTOT_t getToT() const
Get time-over-threshold.
Definition: JDAQHit.hh:97
JMATH::getDistance
double getDistance(const JFirst_t &first, const JSecond_t &second)
Get distance between objects.
Definition: JMathToolkit.hh:116
JMATH
Auxiliary classes and methods for mathematical operations.
Definition: JCalculator.hh:9
JTRIGGER::JTrigger3DMuon_t::JParameters::numberOfModules
int numberOfModules
minimal number of modules to trigger event
Definition: JTrigger3DMuon_t.hh:115
JTRIGGER::JTriggerMXShower_t::JParameters::TMaxExtra_ns
double TMaxExtra_ns
maximal extra time [ns]
Definition: JTriggerMXShower_t.hh:107
JTRIGGER::JTrigger3DMuon_t::JParameters::enabled
bool enabled
enabled status of trigger
Definition: JTrigger3DMuon_t.hh:113
JTRIGGER::JTrigger3DMuon_t::JParameters::numberOfHits
int numberOfHits
minimal number of hits to trigger event
Definition: JTrigger3DMuon_t.hh:114
JTRIGGER::JTriggerMXShower_t::JParameters::numberOfHits
int numberOfHits
minimal number of hits to trigger event
Definition: JTriggerMXShower_t.hh:104
JTRIGGER::JTriggerParameters::writeSummary
JPrescaler writeSummary
write JDAQSummaryslice
Definition: JTriggerParameters.hh:331
JTRIGGER::JTriggerParameters::highRateVeto_Hz
double highRateVeto_Hz
high-rate veto [Hz]
Definition: JTriggerParameters.hh:319
JTRIGGER::JTriggerMXShower_t::JParameters::enabled
bool enabled
enabled status of trigger
Definition: JTriggerMXShower_t.hh:103
JTRIGGER::JTrigger3DShower_t::JParameters::DMax_m
double DMax_m
maximal distance between PMTs [m]
Definition: JTrigger3DShower_t.hh:105
JTRIGGER::JTriggerParameters::writeSN
JPrescaler writeSN
write JDAQTimeslice with SN data
Definition: JTriggerParameters.hh:335
JTRIGGER::JPMTIdentifier_t::getModuleID
int getModuleID() const
Get module identifier.
Definition: JPMTIdentifier_t.hh:71
JTRIGGER::JTrigger3DMuon_t::JParameters::DMax_m
double DMax_m
maximal distance between PMTs [m]
Definition: JTrigger3DMuon_t.hh:116
JTRIGGER::JTriggerMXShower_t::JParameters::numberOfModules
int numberOfModules
minimal number of modules to trigger event
Definition: JTriggerMXShower_t.hh:105
JTRIGGER::JPMTIdentifier_t
Definition: JPMTIdentifier_t.hh:21
JTRIGGER::getTriggerName
const char * getTriggerName(JTriggerbit_t bit)
Get trigger name.
Definition: JTriggerInterface.hh:237
JTRIGGER::JTriggerParameters::trigger3DMuon
JTrigger3DMuon_t::JParameters trigger3DMuon
Definition: JTriggerParameters.hh:313
JTRIGGER::JTriggerBit
This class is used to map trigger class to trigger bit.
Definition: JTriggerInterface.hh:203
JTRIGGER::NUMBER_OF_PMT_BITS
static const unsigned int NUMBER_OF_PMT_BITS
Number of pmt bits.
Definition: JPMTMask.hh:36
JTRIGGER::JTriggerParameters::writeL1
JPrescaler writeL1
write JDAQTimeslice with L1 data
Definition: JTriggerParameters.hh:333
JTRIGGER::JTrigger3DShower_t::JParameters::TMaxExtra_ns
double TMaxExtra_ns
maximal extra time [ns]
Definition: JTrigger3DShower_t.hh:106
JTRIGGER::clusterizeWeight
JHitIterator_t clusterizeWeight(JHitIterator_t __begin, JHitIterator_t __end, const JMatch< JHit_t > &match, std::random_access_iterator_tag)
Implementation of method clusterizeWeight for random access iterators.
Definition: JAlgorithm.hh:322
JTOOLS
Auxiliary classes and methods for multi-dimensional interpolations and histograms.
Definition: JAbstractCollection.hh:9
JTRIGGER::JTrigger3DMuon_t::JParameters::factoryLimit
int factoryLimit
maximal number of hits to apply trigger logic (above this limit, always trigger)
Definition: JTrigger3DMuon_t.hh:120
JTRIGGER::JTriggerParameters::writeL0
JPrescaler writeL0
write JDAQTimeslice with L0 data
Definition: JTriggerParameters.hh:332
JTRIGGER::getToT
double getToT(const JDAQHit &hit, const JCalibration &cal)
Get calibrated time-over-threshold of DAQ hit.
Definition: JHitToolkit.hh:47
JTRIGGER::JPMTMask_t
unsigned int JPMTMask_t
Type definition of pmt mask.
Definition: JPMTMask.hh:30
JTRIGGER::JTrigger3DMuon_t::JParameters::gridAngle_deg
double gridAngle_deg
grid angle [deg]
Definition: JTrigger3DMuon_t.hh:118
JTRIGGER::JTrigger3DShower_t::JParameters::enabled
bool enabled
enabled status of trigger
Definition: JTrigger3DShower_t.hh:102
JTRIGGER::JParametersHelper
Wrapper class to share parameters.
Definition: JParametersHelper.hh:19