Jpp
|
Trigger algorithms and support classes. More...
Classes | |
class | JBinder2nd |
Auxiliary class to convert binary JMatch operator and given hit to unary match operator. 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... | |
struct | JBuildL1Parameters |
Auxiliary data structure for L1 build parameters. 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... | |
class | JBuildL2 |
Template L2 builder. More... | |
class | JBuildL2< JHitL2 > |
Template specialisation of L2 builder for JHitL1 data type. More... | |
class | JBuildL2< JHitR2 > |
Template specialisation of L2 builder for JHitR1 data type. 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... | |
struct | JMatch_t |
Auxiliary class to check whether two consecutive hits should be joined. 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< JHitR0, 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... | |
class | JMatch |
Function object interface for hit matching. More... | |
class | JMatchHelper |
Auxiliary class to handle pointer to match function. 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... | |
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 | JPMTMask |
Auxiliary class for pmt mask. 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... | |
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... | |
struct | JTriggerBit |
This class is used to map trigger class to trigger bit. More... | |
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 | JTriggerMXShower |
Shower trigger. More... | |
struct | JTriggerMXShower_t |
Shower trigger parameters. More... | |
class | JTriggerOutput |
Set of triggered events. More... | |
struct | JL2Parameters |
Data structure for L2 parameters. 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... | |
JPMTMask_t | getPMTMask (const unsigned int bit) |
Convert pmt bit to pmt mask. More... | |
setTriggerBit (JTrigger3DShower, 1) | |
setTriggerBit (JTriggerMXShower, 2) | |
setTriggerBit (JTrigger3DMuon, 4) | |
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... | |
std::ostream & | operator<< (std::ostream &out, const JTriggerException &exception) |
Print error message of JTriggerException. 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... | |
JTimeRange | getTimeRange (const JTriggerParameters ¶meters) |
Get time range of snapshot. More... | |
Variables | |
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... | |
Trigger algorithms and support classes.
typedef JHitL1 JTRIGGER::JHitL2 |
typedef JHitR1 JTRIGGER::JHitR2 |
typedef unsigned int JTRIGGER::JPMTMask_t |
Type definition of pmt mask.
Definition at line 30 of file JPMTMask.hh.
typedef unsigned int JTRIGGER::JTriggerbit_t |
Type definition of trigger bit.
Definition at line 29 of file JTriggerInterface.hh.
|
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:
__begin | begin of data |
__end | end of data |
match | binary match operator |
Nmin | minimum cluster size |
Definition at line 45 of file JAlgorithm.hh.
|
inline |
Implementation of method clusterize for random access iterators.
Definition at line 58 of file JAlgorithm.hh.
|
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:
__begin | begin of data |
__end | end of data |
match | binary match operator |
Definition at line 173 of file JAlgorithm.hh.
|
inline |
Implementation of method reverse_clusterize for random access iterators.
Definition at line 185 of file JAlgorithm.hh.
|
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.
__begin | begin of data |
__end | end of data |
comparator | comparator |
match | binary match operator |
Definition at line 268 of file JAlgorithm.hh.
|
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:
__begin | begin of data |
__end | end of data |
match | binary match operator |
Definition at line 310 of file JAlgorithm.hh.
|
inline |
Implementation of method clusterizeWeight for random access iterators.
Definition at line 322 of file JAlgorithm.hh.
|
inline |
Compare two hits by weight.
The template argument JHit_t
refers to a data structure which should have the following member methods:
first | first hit |
second | second hit |
Definition at line 420 of file JAlgorithm.hh.
|
inline |
Compare two hits by weight.
The template argument JHit_t
refers to a data structure which should have the following member methods:
first | first hit |
second | second hit |
Definition at line 437 of file JAlgorithm.hh.
|
inline |
Auxiliary method to create JBinder2nd object.
match | match operator |
second | second hit |
Definition at line 70 of file JBind2nd.hh.
|
inline |
Get time range (i.e.
earlist and latest hit time) of triggered event.
event | event |
Definition at line 26 of file JEventToolkit.hh.
|
inline |
|
inline |
Get calibrated time of DAQ hit.
hit | DAQ hit |
cal | calibration |
Definition at line 34 of file JHitToolkit.hh.
|
inline |
Get calibrated time-over-threshold of DAQ hit.
hit | DAQ hit |
cal | calibration |
Definition at line 47 of file JHitToolkit.hh.
JMatchHelper<JHit_t> JTRIGGER::make_match | ( | bool(*)(const JHit_t &, const JHit_t &) | match | ) |
|
inline |
Convert pmt bit to pmt mask.
bit | pmt bit |
Definition at line 45 of file JPMTMask.hh.
JTRIGGER::setTriggerBit | ( | JTrigger3DShower | , |
1 | |||
) |
JTRIGGER::setTriggerBit | ( | JTriggerMXShower | , |
2 | |||
) |
JTRIGGER::setTriggerBit | ( | JTrigger3DMuon | , |
4 | |||
) |
|
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.
first | first hit |
second | second hit |
Definition at line 86 of file JTriggeredHit.hh.
|
inline |
Equal operator for triggered hits.
The equal operator is applied to JTRIGGER::JHit and to the KM3NETDAQ::JDAQPMTIdentifier.
first | first hit |
second | second hit |
Definition at line 104 of file JTriggeredHit.hh.
|
inline |
Print error message of JTriggerException.
out | output stream |
exception | JTriggerException |
Definition at line 60 of file JTriggerException.hh.
|
inline |
Get the trigger bit.
Definition at line 212 of file JTriggerInterface.hh.
|
inline |
Get the trigger bit.
event | triggered event |
Definition at line 225 of file JTriggerInterface.hh.
|
inline |
Get trigger name.
param bit trigger bit
Definition at line 237 of file JTriggerInterface.hh.
|
inline |
Set module attributes.
first | first module |
second | second module |
attributes | module attributes |
Definition at line 46 of file JTriggerMXShower.hh.
|
inline |
Get time range of snapshot.
parameters | trigger parameters |
Definition at line 29 of file JTriggerToolkit.hh.
|
static |
Function object for rise time evaluation.
Definition at line 77 of file JGetRiseTime.hh.
|
static |
Number of pmt bits.
Definition at line 36 of file JPMTMask.hh.