1#ifndef __JTRIGGER__JMATCH3B__
2#define __JTRIGGER__JMATCH3B__
33 template<
class JHit_t>
35 public JClonable< JMatch<JHit_t>, JMatch3B<JHit_t> >
45 const double Tmax_ns = 0.0) :
60 const double tt2 = getTanThetaC() * getTanThetaC();
71 const double Rs = R * getSinThetaC();
75 Rst = Rs * getTanThetaC();
76 Rt = R * getTanThetaC();
87 virtual bool operator()(
const JHit_t& first,
const JHit_t& second)
const override
89 x = first.getX() - second.getX();
90 y = first.getY() - second.getY();
91 z = first.getZ() - second.getZ();
93 t = fabs(first.getT() - second.getT());
96 dmax = sqrt(
d2) * getIndexOfRefraction();
Base class for match operations for cluster and hit-preprocessing methods.
3D match criterion with road width.
JMatch3B(const double road_width_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.
double getSinThetaC()
Get average sine 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.