Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
JTRIGGER::JMatch_t Struct Reference

Auxiliary class to check whether two consecutive hits should be joined. More...

#include <JHit.hh>

Public Member Functions

 JMatch_t (const double Tmax_ns)
 Constructor. More...
 
bool operator() (const JHit &first, const JHit &second) const
 Match function. More...
 

Public Attributes

double Tmax_ns
 

Detailed Description

Auxiliary class to check whether two consecutive hits should be joined.

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 275 of file JHit.hh.

Constructor & Destructor Documentation

JTRIGGER::JMatch_t::JMatch_t ( const double  Tmax_ns)
inline

Constructor.

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

Definition at line 281 of file JHit.hh.

281  :
283  {}
double Tmax_ns
Definition: JHit.hh:299

Member Function Documentation

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

Match function.

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 293 of file JHit.hh.

294  {
295  return (second.getT1() > first.getT1() &&
296  second.getT1() < first.getT2() + Tmax_ns);
297  }
double Tmax_ns
Definition: JHit.hh:299
double getT1() const
Get leading edge of hit.
Definition: JHit.hh:170
double getT2() const
Get trailing edge of hit.
Definition: JHit.hh:183

Member Data Documentation

double JTRIGGER::JMatch_t::Tmax_ns

Definition at line 299 of file JHit.hh.


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