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::JMatch3G< JHit_t > Class Template Reference

3G match criterion. More...

#include <JMatch3G.hh>

Inheritance diagram for JTRIGGER::JMatch3G< 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

 JMatch3G (const double Dmax_m, 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 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

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::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  }
double getIndexOfRefraction()
Get average index of refraction of water.
Definition: JConstants.hh:111
double TMaxExtra_ns
Definition: JMatch3G.hh:90
const double getInverseSpeedOfLight()
Get inverse speed of light.
Definition: JConstants.hh:100

Member Function Documentation

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

Clone object.

Returns
match result

Implements JLANG::JClonable< JClass_t >.

Definition at line 53 of file JMatch3G.hh.

54  {
55  return new JMatch3G<JHit_t>(*this);
56  }
3G match criterion.
Definition: JMatch3G.hh:29
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

Implements JTRIGGER::JMatch< JHit_t >.

Definition at line 66 of file JMatch3G.hh.

67  {
68  t = fabs(first.getT() - second.getT());
69 
70  if (t > TMax_ns) {
71  return false;
72  }
73 
74  x = first.getX() - second.getX();
75  y = first.getY() - second.getY();
76  z = first.getZ() - second.getZ();
77  d = sqrt(x*x + y*y + z*z);
78 
79  if (d <= 0.5 * DMax_m)
81  else if (d <= DMax_m)
83 
84  return false;
85  }
double getIndexOfRefraction()
Get average index of refraction of water.
Definition: JConstants.hh:111
double TMaxExtra_ns
Definition: JMatch3G.hh:90
const double getInverseSpeedOfLight()
Get inverse speed of light.
Definition: JConstants.hh:100

Member Data Documentation

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

Definition at line 88 of file JMatch3G.hh.

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

Definition at line 89 of file JMatch3G.hh.

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

Definition at line 90 of file JMatch3G.hh.

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

Definition at line 93 of file JMatch3G.hh.

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

Definition at line 94 of file JMatch3G.hh.

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

Definition at line 95 of file JMatch3G.hh.

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

Definition at line 96 of file JMatch3G.hh.

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

Definition at line 97 of file JMatch3G.hh.


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