Jpp
Public Types | Public Member Functions | Public Attributes | Private Attributes | List of all members
JTRIGGER::JMatch3G< JHit_t > Class Template Reference

3G match criterion. More...

#include <JMatch3G.hh>

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

Public Types

typedef JClonable< JClonable_t >::clone_type clone_type
 

Public Member Functions

 JMatch3G (const double Dmax_m, const double Tmax_ns=0.0)
 Constructor. More...
 
virtual bool operator() (const JHit_t &first, const JHit_t &second) const
 Match operator. More...
 
virtual clone_type clone () const
 Get clone of this object. More...
 

Public Attributes

double DMax_m
 
double TMax_ns
 
double TMaxExtra_ns
 

Private Attributes

double x
 
double y
 
double z
 
double d
 
double t
 

Detailed Description

template<class JHit_t>
class JTRIGGER::JMatch3G< JHit_t >

3G match criterion.

This match algorithm is intented for shower signals.

Definition at line 29 of file JMatch3G.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

◆ JMatch3G()

template<class JHit_t>
JTRIGGER::JMatch3G< JHit_t >::JMatch3G ( const double  Dmax_m,
const double  Tmax_ns = 0.0 
)
inline

Constructor.

Parameters
Dmax_mmaximal distance traveled by photon [m]
Tmax_nsmaximal extra time [ns]

Definition at line 39 of file JMatch3G.hh.

40  :
41  DMax_m (Dmax_m),
42  TMaxExtra_ns(Tmax_ns)
43  {
45  }

Member Function Documentation

◆ operator()()

template<class JHit_t>
virtual bool JTRIGGER::JMatch3G< JHit_t >::operator() ( const JHit_t &  first,
const JHit_t &  second 
) const
inlinevirtual

Match operator.

Parameters
firsthit
secondhit
Returns
match result

Definition at line 55 of file JMatch3G.hh.

56  {
57  t = fabs(first.getT() - second.getT());
58 
59  if (t > TMax_ns) {
60  return false;
61  }
62 
63  x = first.getX() - second.getX();
64  y = first.getY() - second.getY();
65  z = first.getZ() - second.getZ();
66  d = sqrt(x*x + y*y + z*z);
67 
68  if (d <= 0.5 * DMax_m)
70  else if (d <= DMax_m)
72 
73  return false;
74  }

◆ clone()

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

Member Data Documentation

◆ DMax_m

template<class JHit_t>
double JTRIGGER::JMatch3G< JHit_t >::DMax_m

Definition at line 77 of file JMatch3G.hh.

◆ TMax_ns

template<class JHit_t>
double JTRIGGER::JMatch3G< JHit_t >::TMax_ns

Definition at line 78 of file JMatch3G.hh.

◆ TMaxExtra_ns

template<class JHit_t>
double JTRIGGER::JMatch3G< JHit_t >::TMaxExtra_ns

Definition at line 79 of file JMatch3G.hh.

◆ x

template<class JHit_t>
double JTRIGGER::JMatch3G< JHit_t >::x
mutableprivate

Definition at line 82 of file JMatch3G.hh.

◆ y

template<class JHit_t>
double JTRIGGER::JMatch3G< JHit_t >::y
mutableprivate

Definition at line 83 of file JMatch3G.hh.

◆ z

template<class JHit_t>
double JTRIGGER::JMatch3G< JHit_t >::z
mutableprivate

Definition at line 84 of file JMatch3G.hh.

◆ d

template<class JHit_t>
double JTRIGGER::JMatch3G< JHit_t >::d
mutableprivate

Definition at line 85 of file JMatch3G.hh.

◆ t

template<class JHit_t>
double JTRIGGER::JMatch3G< JHit_t >::t
mutableprivate

Definition at line 86 of file JMatch3G.hh.


The documentation for this class was generated from the following file:
JTRIGGER::JMatch3G::y
double y
Definition: JMatch3G.hh:83
JTRIGGER::JMatch3G::x
double x
Definition: JMatch3G.hh:82
JTRIGGER::JMatch3G::z
double z
Definition: JMatch3G.hh:84
JTRIGGER::JMatch3G::TMaxExtra_ns
double TMaxExtra_ns
Definition: JMatch3G.hh:79
JTRIGGER::JMatch3G::TMax_ns
double TMax_ns
Definition: JMatch3G.hh:78
JTOOLS::getInverseSpeedOfLight
const double getInverseSpeedOfLight()
Get inverse speed of light.
Definition: JConstants.hh:100
JTOOLS::getIndexOfRefraction
double getIndexOfRefraction()
Get average index of refraction of water.
Definition: JConstants.hh:111
JTRIGGER::JMatch3G::t
double t
Definition: JMatch3G.hh:86
JTRIGGER::JMatch3G::d
double d
Definition: JMatch3G.hh:85
JTRIGGER::JMatch3G::DMax_m
double DMax_m
Definition: JMatch3G.hh:77