1#ifndef __JTRIGGER__JMATCH1D__
2#define __JTRIGGER__JMATCH1D__
30 template<
class JHit_t>
32 public JClonable< JMatch<JHit_t>, JMatch1D<JHit_t> >
42 const double Tmax_ns = 0.0) :
62 virtual bool operator()(
const JHit_t& first,
const JHit_t& second)
const override
64 z = first.getZ() - second.getZ();
65 t = fabs(first.getT() - second.getT() -
z * getInverseSpeedOfLight());
71 x = first.getX() - second.getX();
72 y = first.getY() - second.getY();
76 return t <=
d * getTanThetaC() * getInverseSpeedOfLight() +
TMaxExtra_ns;
Base class for match operations for cluster and hit-preprocessing methods.
JMatch1D(const double roadWidth_m, const double Tmax_ns=0.0)
Constructor.
virtual bool operator()(const JHit_t &first, const JHit_t &second) const override
Match operator.
double getIndexOfRefraction()
Get average index of refraction of water corresponding to group velocity.
const double getInverseSpeedOfLight()
Get inverse speed of light.
double getTanThetaC()
Get average tangent of Cherenkov angle of water corresponding to group velocity.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for triggering.
Template class for object cloning.