1#ifndef __JFIT__JMODEL__
2#define __JFIT__JMODEL__
9#include "JTools/JRange.hh"
10#include "JPhysics/JConstants.hh"
17namespace JPP {
using namespace JFIT; }
26 template<
class JModel_t>
47 const JTimeRange& compare,
51 this->Rmax_m = Rmax_m;
52 this->compare = compare;
63 template<
class JHit_t>
69 if (this->getDistance(hit) <= Rmax_m) {
70 if (hit.getZ() - this->getZ() >= z_m.getLowerLimit() &&
71 hit.getZ() - this->getDistance(hit)/getTanThetaC() - this->getZ() <= z_m.getUpperLimit()) {
72 return compare(hit.getT() - this->getT(hit));
133 const JTimeRange& compare) :
136 this->Dmax_m = Dmax_m;
137 this->compare = compare;
147 template<
class JHit_t>
150 if (this->getDistance(hit) <= Dmax_m) {
151 return compare(hit.getT() - this->getT(hit));
Data structure for fit of energy.
Data structure for fit of straight line paralel to z-axis.
Data structure for vertex fit.
Auxiliary classes and methods for linear and iterative data regression.
JTOOLS::JRange< double > JZRange
double getY0() const
Get light yield due to random background.
bool operator()(const JNPE &npe) const
Test compatibility of given light yields with muon energy.
JModel(const JEnergy &X)
Constructor.
bool operator()(const JHit_t &hit) const
Test compatibility of given hit with track.
JModel(const JLine1Z &tz, const double Rmax_m, const JTimeRange &compare, const JZRange &z_m=JZRange())
Constructor.
JModel(const JPoint4D &point, const double Dmax_m, const JTimeRange &compare)
Constructor.
bool operator()(const JHit_t &hit) const
Test compatibility of given hit with bright point.
Auxiliary class to match data points with given model.
Auxiliary class for handling various light yields.
double getYB() const
Get light yield due to bremsstrahlung.
double getYA() const
Get light yield due to delta-rays.