Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63


#include "Alignment/LaserAlignment/interface/LASCoordinateSet.h"

///
/// convenience functions for the coordinates;
/// the rest is declared inline
///

///
///
///
LASCoordinateSet::LASCoordinateSet(double aPhi, double aPhiError, double aR, double aRError, double aZ, double aZError) {
  phi = aPhi;
  phiError = aPhiError;
  r = aR;
  rError = aRError;
  z = aZ;
  zError = aZError;
}

///
///
///
void LASCoordinateSet::GetCoordinates(
    double& aPhi, double& aPhiError, double& aR, double& aRError, double& aZ, double& aZError) const {
  aPhi = phi;
  aPhiError = phiError;
  aR = r;
  aRError = rError;
  aZ = z;
  aZError = zError;
}

///
///
///
void LASCoordinateSet::SetCoordinates(
    double aPhi, double aPhiError, double aR, double aRError, double aZ, double aZError) {
  phi = aPhi;
  phiError = aPhiError;
  r = aR;
  rError = aRError;
  z = aZ;
  zError = aZError;
}

///
///
///
void LASCoordinateSet::SetErrors(double aPhiError, double aRError, double aZError) {
  phiError = aPhiError;
  rError = aRError;
  zError = aZError;
}

///
///
///
void LASCoordinateSet::Dump(void) {
  std::cout << " [LASCoordinateSet::Dump] -- phi: " << phi << ", phiE: " << phiError << ", r: " << r
            << ", rE: " << rError << ", z: " << z << ", zE: " << zError << " ." << std::endl;
}