1 #ifndef _RdScintPlaneFit_h_
2 #define _RdScintPlaneFit_h_
4 #include <fwk/VModule.h>
5 #include <revt/Channel.h>
6 #include <utl/Vector.h>
8 #include <utl/TimeStamp.h>
9 #include <utl/CoordinateSystem.h>
21 namespace RdScintPlaneFit {
67 static void PlaneFit3DFnc(
int&
nPar,
double*
const grad,
double& value,
double*
const par,
72 double*
const par,
const int flag);
bool fAllowUnphysicalCosines
Interface class to access to the Radio part of an event.
static utl::CoordinateSystemPtr fgLocalCS
static revt::REvent * fgCurrentREvent
REGISTER_MODULE("RdScintPlaneFit", RdScintPlaneFit)
A TimeStamp holds GPS second and nanosecond for some event.
static void PlaneFit3DFnc(int &nPar, double *const grad, double &value, double *const par, const int flag)
Function to minimize the plane fit, z != equal for all stations.
void CalculateTimeResidual(const utl::Vector &axis, const double ct0, double &chi2) const
boost::shared_ptr< const CoordinateTransformer > CoordinateSystemPtr
Shared pointer for coordinate systems.
static utl::Point fgBarycenter
static void PlaneFit3DHorizonFnc(int &nPar, double *const grad, double &value, double *const par, const int flag)
fwk::VModule::ResultFlag LinearFit(FitParameters &fit, const bool reuseFit=false) const
performs a Linear fit, approximation that z= equal for all stations
static utl::TimeStamp fgBaryTime
static double fgMeanEventTime
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
ResultFlag
Flag returned by module methods to the RunController.
fwk::VModule::ResultFlag PlaneFit3DDriver(FitParameters &fit) const
Setting up / Executing the minimalization routines.
static utl::Point fgCoordinateOrigin
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)