Fit function.
155 using namespace JFIT;
156 using namespace JGEOMETRY3D;
160 for (JEvt::const_iterator track = in.begin(); track != in.end(); ++track) {
176 for (buffer_type::const_iterator i = data.begin(); i != data.end(); ++i) {
185 buffer.push_back(hit);
191 sort(buffer.begin(), buffer.end(),
compare);
202 if (track->getE() > 0.1)
207 const double chi2 = (*this)(
JLine3Z(tz), buffer.begin(), __end);
217 out.rbegin()->setW(track->getW());
218 out.rbegin()->setW(
JGANDALF_BETA0_RAD, sqrt(this->error.getDX() * this->error.getDX() +
219 this->error.getDY() * this->error.getDY()));
220 out.rbegin()->setW(
JGANDALF_BETA1_RAD, sqrt(this->error.getDX() * this->error.getDY()));
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
static struct JRECONSTRUCTION::JMuonGandalf::@56 compare
Auxiliary data structure for sorting of hits.
double getRate() const
Get default rate.
static const int JGANDALF_BETA1_RAD
angular resolution [rad] from JGandalf.cc
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Template specialisation of class JModel to match hit with muon trajectory along z-axis.
Data structure for fit of straight line in positive z-direction.
double getQuality(const double chi2, const int N, const int NDF)
Get quality of fit.
const JSummaryRouter & summary
static JTimeRange T_ns
Time window with respect to Cherenkov hypothesis [ns].
static const int JGANDALF_NUMBER_OF_HITS
number of hits from JGandalf.cc
static const int JGANDALF_LAMBDA
control parameter from JGandalf.cc
static const int JMUONGANDALF
double E_GeV
Energy of muon at vertex [GeV].
JDirection3D getDirection(const JFit &fit)
Get direction.
static const int JGANDALF_BETA0_RAD
KM3NeT Data Definitions v2.0.0-14-gbeccebb https://git.km3net.de/common/km3net-dataformat.
then usage $script[distance] fi case set_variable R
JFit getFit(const JHistory &history, const JTrack3D &track, const double Q, const int NDF, const double energy=0.0, const int status=0)
Get fit.
Auxiliary class for a hit with background rate value.
static const int JSTART_LENGTH_METRES
distance between first and last hits in metres from JStart.cc
static const int JGANDALF_NUMBER_OF_ITERATIONS
number of iterations from JGandalf.cc
Data structure for fit of straight line paralel to z-axis.
JPosition3D getPosition(const JFit &fit)
Get position.
static const int JGANDALF_CHI2
chi2 from JGandalf.cc
JPosition3D & rotate(const JRotation3D &R)
Rotate.
JTOOLS::JRange< double > JZRange