1 #ifndef _SdPlaneFitOG_SdPlaneFit_h_
2 #define _SdPlaneFitOG_SdPlaneFit_h_
4 #include <fwk/VModule.h>
5 #include <utl/Vector.h>
7 #include <utl/TimeStamp.h>
8 #include <utl/CoordinateSystem.h>
15 namespace SdPlaneFitOG {
51 const bool reuseFit =
false)
const;
54 double& mean,
double& spread,
double& chi2)
const;
57 double*
const par,
const int flag);
REGISTER_MODULE("SdPlaneFitOG", SdPlaneFit)
Report success to RunController.
Interface class to access to the SD part of an event.
static void PlaneFit3DFnc(int &nPar, double *const grad, double &value, double *const par, const int flag)
A TimeStamp holds GPS second and nanosecond for some event.
static utl::CoordinateSystemPtr fgBarycenterCS
boost::shared_ptr< const CoordinateTransformer > CoordinateSystemPtr
Shared pointer for coordinate systems.
static utl::TimeStamp fgBaryTime
fwk::VModule::ResultFlag LinearFit(FitParameters &fit, const bool reuseFit=false) const
void CalculateTimeResidual3D(const utl::Vector &axis, const double ct0, double &mean, double &spread, double &chi2) const
static utl::Point fgBarycenter
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
ResultFlag
Flag returned by module methods to the RunController.
fwk::VModule::ResultFlag PlaneFit3DDriver(FitParameters &fit) const
static sevt::SEvent * fgCurrentSEvent
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)