Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JTRIGGER::JMatch3D< JHit_t > Class Template Reference

3D match criterion. More...

#include <JMatch3D.hh>

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

Public Types

typedef JClonable< JClonable_t >::clone_type clone_type
 

Public Member Functions

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

Public Attributes

double TMaxExtra_ns
 

Private Attributes

double x
 
double y
 
double z
 
double d
 
double t
 

Detailed Description

template<class JHit_t>
class JTRIGGER::JMatch3D< JHit_t >

3D match criterion.

This match algorithm is intented for muon or shower signals.

Definition at line 29 of file JMatch3D.hh.

Member Typedef Documentation

◆ clone_type

template<class JClonable_t , class JDerived_t >
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

◆ JMatch3D()

template<class JHit_t >
JTRIGGER::JMatch3D< JHit_t >::JMatch3D ( const double Tmax_ns = 0.0)
inline

Constructor.

Parameters
Tmax_nsmaximal extra time [ns]

Definition at line 38 of file JMatch3D.hh.

38 :
39 TMaxExtra_ns(Tmax_ns),
40 x(0.0),
41 y(0.0),
42 z(0.0),
43 d(0.0),
44 t(0.0)
45 {}

Member Function Documentation

◆ operator()()

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

Match operator.

Parameters
firsthit
secondhit
Returns
match result

Definition at line 55 of file JMatch3D.hh.

56 {
57 x = first.getX() - second.getX();
58 y = first.getY() - second.getY();
59 z = first.getZ() - second.getZ();
60 d = sqrt(x*x + y*y + z*z);
61 t = fabs(first.getT() - second.getT());
62
63 return t <= d * getIndexOfRefraction() * getInverseSpeedOfLight() + TMaxExtra_ns;
64 }

◆ clone()

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

Member Data Documentation

◆ TMaxExtra_ns

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

Definition at line 67 of file JMatch3D.hh.

◆ x

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

Definition at line 70 of file JMatch3D.hh.

◆ y

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

Definition at line 71 of file JMatch3D.hh.

◆ z

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

Definition at line 72 of file JMatch3D.hh.

◆ d

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

Definition at line 73 of file JMatch3D.hh.

◆ t

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

Definition at line 74 of file JMatch3D.hh.


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