Jpp  19.1.0
the software that should make you happy
Public Types | Public Member Functions | Public Attributes | List of all members
JTRIGGER::JMatchL0< JHit_t > Class Template Reference

L0 match criterion. More...

#include <JMatchL0.hh>

Inheritance diagram for JTRIGGER::JMatchL0< JHit_t >:
JLANG::JClonable< JClonable_t, JDerived_t >

Public Types

typedef JClonable< JClonable_t >::clone_type clone_type
 

Public Member Functions

 JMatchL0 (const double Tmax_ns)
 Constructor. More...
 
bool operator() (const JHit_t &first, const JHit_t &second) const
 Match function. More...
 
virtual clone_type clone () const override
 Get clone of this object. More...
 

Public Attributes

double Tmax_ns
 

Detailed Description

template<class JHit_t>
class JTRIGGER::JMatchL0< JHit_t >

L0 match criterion.

The maximal time difference between trailing and leading edge of two consecutive hits can be interpreted as the effective two-hit resolution of a PMT/TDC.

Note that the hits should be time ordered.

Definition at line 27 of file JMatchL0.hh.

Member Typedef Documentation

◆ clone_type

template<class JClonable_t , class JDerived_t >
typedef JClonable<JClonable_t>::clone_type JLANG::JClonable< JClonable_t, JDerived_t >::clone_type
inherited

Definition at line 61 of file JClonable.hh.

Constructor & Destructor Documentation

◆ JMatchL0()

template<class JHit_t >
JTRIGGER::JMatchL0< JHit_t >::JMatchL0 ( const double  Tmax_ns)
inline

Constructor.

Parameters
Tmax_nsmaximal time difference between trailing and leading edge [ns]

Definition at line 36 of file JMatchL0.hh.

36  :
38  {}

Member Function Documentation

◆ operator()()

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

Match function.

The template should provide for the following member methods:

   double getT1() const;   // time of leading edge
   double getT2() const;   // time of traling edge
Parameters
firstfirst hit
secondsecond hit
Returns
true if time difference between trailing edge and leading edge less than specified time; else false

Definition at line 54 of file JMatchL0.hh.

55  {
56  return (second.getT1() > first.getT1() &&
57  second.getT1() < first.getT2() + Tmax_ns);
58  }

◆ clone()

template<class JClonable_t , class JDerived_t >
virtual clone_type JLANG::JClonable< JClonable_t, JDerived_t >::clone ( ) const
inlineoverridevirtualinherited

Member Data Documentation

◆ Tmax_ns

template<class JHit_t >
double JTRIGGER::JMatchL0< JHit_t >::Tmax_ns

Definition at line 60 of file JMatchL0.hh.


The documentation for this class was generated from the following file: