/** function retrieves copy of the oriented lattice from the workspace */ boost::shared_ptr<Geometry::OrientedLattice> MDWSDescription::getOrientedLattice( Mantid::API::MatrixWorkspace_const_sptr inWS2D) { // try to get the WS oriented lattice boost::shared_ptr<Geometry::OrientedLattice> orl; if (inWS2D->sample().hasOrientedLattice()) orl = boost::shared_ptr<Geometry::OrientedLattice>( new Geometry::OrientedLattice(inWS2D->sample().getOrientedLattice())); return orl; }