Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | Private Attributes | List of all members
JTRIGGER::JMatch3D< JHit_t > Class Template Reference

3D match criterion. More...

#include <JMatch3D.hh>

Inheritance diagram for JTRIGGER::JMatch3D< JHit_t >:
JTRIGGER::JMatch< JHit_t > JLANG::JClonable< JClass_t >

Public Types

typedef JClass_t * clone_type
 Type definition of return value of method clone(). More...
 

Public Member Functions

 JMatch3D (const double Tmax_ns=0.0)
 Constructor. More...
 
JMatch< JHit_t > * clone () const
 Clone object. More...
 
virtual bool operator() (const JHit_t &first, const JHit_t &second) const
 Match operator. More...
 

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

template<class JClass_t>
typedef JClass_t* JLANG::JClonable< JClass_t >::clone_type
inherited

Type definition of return value of method clone().

Definition at line 25 of file JClonable.hh.

Constructor & Destructor Documentation

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  {}
double TMaxExtra_ns
Definition: JMatch3D.hh:73

Member Function Documentation

template<class JHit_t>
JMatch<JHit_t>* JTRIGGER::JMatch3D< JHit_t >::clone ( ) const
inlinevirtual

Clone object.

Returns
match result

Implements JLANG::JClonable< JClass_t >.

Definition at line 48 of file JMatch3D.hh.

49  {
50  return new JMatch3D<JHit_t>(*this);
51  }
3D match criterion.
Definition: JMatch3D.hh:29
template<class JHit_t>
virtual bool JTRIGGER::JMatch3D< JHit_t >::operator() ( const JHit_t &  first,
const JHit_t &  second 
) const
inlinevirtual

Match operator.

Parameters
firsthit
secondhit
Returns
match result

Implements JTRIGGER::JMatch< JHit_t >.

Definition at line 61 of file JMatch3D.hh.

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  t = fabs(first.getT() - second.getT());
68 
70  }
double getIndexOfRefraction()
Get average index of refraction of water.
Definition: JConstants.hh:111
const double getInverseSpeedOfLight()
Get inverse speed of light.
Definition: JConstants.hh:100
double TMaxExtra_ns
Definition: JMatch3D.hh:73

Member Data Documentation

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

Definition at line 73 of file JMatch3D.hh.

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

Definition at line 76 of file JMatch3D.hh.

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

Definition at line 77 of file JMatch3D.hh.

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

Definition at line 78 of file JMatch3D.hh.

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

Definition at line 79 of file JMatch3D.hh.

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

Definition at line 80 of file JMatch3D.hh.


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