Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include "Geometry/CommonTopologies/interface/TrackerGeomDet.h"
#include "DataFormats/GeometryCommonDetAlgo/interface/AlignmentPositionError.h"
#include "DataFormats/GeometryCommonDetAlgo/interface/ErrorFrameTransformer.h"

bool TrackerGeomDet::setAlignmentPositionError(const AlignmentPositionError& ape) {
  GeomDet::setAlignmentPositionError(ape);

  const GlobalErrorExtended& apeError = ape.globalError();
  GlobalError translatApe(
      apeError.cxx(), apeError.cyx(), apeError.cyy(), apeError.czx(), apeError.czy(), apeError.czz());

  //check only translat part is valid
  theLocalAlignmentError = ape.valid() ? ErrorFrameTransformer().transform(translatApe, surface()) : InvalidError();
  return ape.valid();
}