55 mf::LogError(
"ShowerPCAEigenvalueLength") <<
"PCA not set, returning " << std::endl;
72 double primaryEigenValue = (eigenValues)[0];
73 double ShowerLength = std::sqrt(primaryEigenValue) * 2 *
fNSigma;
74 double ShowerLengthError = -999;
77 double secondaryEigenValue = (eigenValues)[1];
78 double ShowerWidth = std::sqrt(secondaryEigenValue) * 2 *
fNSigma;
80 double ShowerAngle = std::atan(ShowerWidth / ShowerLength);
81 double ShowerAngleError = -999;
const double * getEigenValues() const
void SetElement(T &dataproduct, const std::string &Name, bool checktag=false)
MaybeLogger_< ELseverityLevel::ELsev_error, false > LogError
bool CheckElement(const std::string &Name) const
int GetElement(const std::string &Name, T &Element) const
decltype(auto) get(T &&obj)
ADL-aware version of std::to_string.