25#include "Minuit2/FCNBase.h"
27#include "CLHEP/Vector/ThreeVector.h"
48 const std::vector<double>& E)
56 virtual double operator()(
const std::vector<double>&)
const override;
57 virtual double Up()
const override {
66 CLHEP::Hep3Vector
ClosestPoint(CLHEP::Hep3Vector *dataPoint,
const std::vector<double>& par)
const;
bool GetWeighted()
Get weight/no-weight flag.
virtual double operator()(const std::vector< double > &) const override
Provides Chi-square in function of parameter vector.
double Distance2SinglePoint(double x, double y, double z, const std::vector< double > &par) const
Returns squared distance from point to track defined by par.
void SetWeighted(bool weight)
Set weight/no-weight flag.
double GetMeanX()
X mean getter.
void Means()
Calculates means (weighted or not) of cell positions.
bool m_doWeighted
Weight/no-weight flag.
std::vector< double > m_theX
Vector of cell center X coordinates.
std::vector< double > m_theZ
Vector of cell center Z coordinates.
std::vector< double > m_theY
Vector of cell center Y coordinates.
virtual ~TileMuonTrackDistance()
TileMuonTrackDistance(const std::vector< double > &X, const std::vector< double > &Y, const std::vector< double > &Z, const std::vector< double > &E)
Constructor.
double GetMeanY()
Y mean getter.
double GetMeanZ()
Z mean getter.
CLHEP::Hep3Vector ClosestPoint(CLHEP::Hep3Vector *dataPoint, const std::vector< double > &par) const
Returns point in track defined by par closest to dataPoint.
virtual double Up() const override
std::vector< double > m_theE
Vector of cell energies.
Selection rules: declare transient members.