Is there a reason why
ROOT::Math::XYZVector doesn’t have a constructor such as:
XYZVector(const double* arr)?
TVector3 has it.
Vector3D has it.
And If I am not mistaken CLHEP Geom library also should have it.
Sure one can always do:
XYZVector(arr, arr, arr), but it way more uglier if it happens all over the code.
or in my particular case I am forced to do one of the following:
const double* arr = hit->getPosition(); XYZVector vec = XYZVector(arr, arr, arr)
XYZVector vec = XYZVector(hit->getPosition(), hit->getPosition(), hit->getPosition())
which makes code even more uglier or creates a lot of temporary variables that are needed just to pass the array to the XYZVector.