File indexing completed on 2024-04-06 11:56:26
0001
0002
0003 #include "Alignment/LaserAlignment/interface/LASCoordinateSet.h"
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 LASCoordinateSet::LASCoordinateSet(double aPhi, double aPhiError, double aR, double aRError, double aZ, double aZError) {
0014 phi = aPhi;
0015 phiError = aPhiError;
0016 r = aR;
0017 rError = aRError;
0018 z = aZ;
0019 zError = aZError;
0020 }
0021
0022
0023
0024
0025 void LASCoordinateSet::GetCoordinates(
0026 double& aPhi, double& aPhiError, double& aR, double& aRError, double& aZ, double& aZError) const {
0027 aPhi = phi;
0028 aPhiError = phiError;
0029 aR = r;
0030 aRError = rError;
0031 aZ = z;
0032 aZError = zError;
0033 }
0034
0035
0036
0037
0038 void LASCoordinateSet::SetCoordinates(
0039 double aPhi, double aPhiError, double aR, double aRError, double aZ, double aZError) {
0040 phi = aPhi;
0041 phiError = aPhiError;
0042 r = aR;
0043 rError = aRError;
0044 z = aZ;
0045 zError = aZError;
0046 }
0047
0048
0049
0050
0051 void LASCoordinateSet::SetErrors(double aPhiError, double aRError, double aZError) {
0052 phiError = aPhiError;
0053 rError = aRError;
0054 zError = aZError;
0055 }
0056
0057
0058
0059
0060 void LASCoordinateSet::Dump(void) {
0061 std::cout << " [LASCoordinateSet::Dump] -- phi: " << phi << ", phiE: " << phiError << ", r: " << r
0062 << ", rE: " << rError << ", z: " << z << ", zE: " << zError << " ." << std::endl;
0063 }