1 #ifndef _RdPlaneFit_RdPlaneFit_h_
2 #define _RdPlaneFit_RdPlaneFit_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>
64 static void PlaneFit3DFnc(
int&
nPar,
double*
const grad,
double& value,
double*
const par,
70 double*
const par,
const int flag);
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
static revt::REvent * fgCurrentREvent
fwk::VModule::ResultFlag LinearFit(FitParameters &fit, const bool reuseFit=false) const
performs a Linear fit, approximation that z= equal for all stations
fwk::VModule::ResultFlag PlaneFit3DDriver(FitParameters &fit) const
Setting up / Executing the minimalization routines.
static void PlaneFit3DHorizonFnc(int &nPar, double *const grad, double &value, double *const par, const int flag)
static utl::CoordinateSystemPtr fgLocalCS
Interface class to access to the Radio part of an event.
bool fAllowUnphysicalCosines
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
bool fLockParameterStorage
A TimeStamp holds GPS second and nanosecond for some event.
boost::shared_ptr< const CoordinateTransformer > CoordinateSystemPtr
Shared pointer for coordinate systems.
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
static double fgMeanEventTime
static utl::Point fgCoordinateOrigin
void CalculateTimeResidual(const utl::Vector &axis, const double ct0, double &chi2) const
ResultFlag
Flag returned by module methods to the RunController.
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.
static utl::Point fgBarycenter
REGISTER_MODULE("RdPlaneFit", RdPlaneFit)
static utl::TimeStamp fgBaryTime