|
ATLAS Offline Software
|
Go to the documentation of this file.
23 using CLHEP::Hep3Vector;
31 int ncells =
m_theX.size();
34 for (
int i = 0;
i < ncells;
i++) {
50 for (
int i = 0;
i < ncells;
i++) {
64 std::vector<double> fourPar;
67 fourPar.push_back(
par[0]);
69 fourPar.push_back(
par[1]);
84 const std::vector<double>&
par)
const {
86 Hep3Vector dataP(
x,
y,
z);
89 return (dataP - lineP).mag2();
103 xort = dataPoint->getX() + bb * (dataPoint->getY() -
aa) +
dd * (dataPoint->getZ() -
cc);
104 xort /= (1 + bb * bb +
dd *
dd);
105 linePoint.setX(xort);
106 linePoint.setY(
aa + bb * xort);
107 linePoint.setZ(
cc +
dd * xort);
bool m_doWeighted
Weight/no-weight flag.
std::vector< double > m_theZ
Vector of cell center Z coordinates.
double Distance2SinglePoint(double x, double y, double z, const std::vector< double > &par) const
Returns squared distance from point to track defined by par.
std::vector< double > m_theE
Vector of cell energies.
virtual double operator()(const std::vector< double > &) const
Provides Chi-square in function of parameter vector.
void Means()
Calculates means (weighted or not) of cell positions.
std::vector< double > m_theY
Vector of cell center Y coordinates.
CLHEP::Hep3Vector ClosestPoint(CLHEP::Hep3Vector *dataPoint, const std::vector< double > &par) const
Returns point in track defined by par closest to dataPoint.
std::vector< double > m_theX
Vector of cell center X coordinates.