|
ATLAS Offline Software
|
Go to the documentation of this file.
22 template <
class SURFACE>
24 SURFACE* surface=
nullptr;
28 const SURFACE* detSurf =
static_cast<const SURFACE*
>(m_eventCnvTool->getSurface(
id));
44 template <
class SURFACE>
46 throw std::runtime_error(
"SurfaceCnv_p2::persToTrans shouldn't be called any more!");
51 template <
class SURFACE>
57 log<<MSG::WARNING<<
"SurfaceCnv_p2<SURFACE>::transToPers - null pointer for transient object."<<
endmsg;
60 persObj->
m_associatedDetElementId = transObj->associatedDetectorElementIdentifier().get_identifier32().get_compact();
61 if (transObj->isFree() ) {
67 if (!transObj->associatedDetectorElementIdentifier().is_valid()) {
68 log<<MSG::WARNING<<
"SurfaceCnv_p2<SURFACE>::transToPers - invalid detector element for non-free surface: "<<*transObj<<
endmsg;
83 log << MSG::WARNING<<
"Not expecting these to be Free!"<<
endmsg;
SURFACE * createTransient(const Trk::Surface_p2 *persObj, MsgStream &log)
Identifier associatedDetectorElementIdentifier() const
return Identifier of the associated Detector Element
constexpr virtual SurfaceType type() const override final
Return the surface type.
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
Identifier32::value_type m_associatedDetElementId
static void eigenTransform3DToVector(const Amg::Transform3D &trans, T &vec)
Convert HepGeom::Transform3D to std :: vector<double>
value_type get_compact() const
Get the compact id.
std::vector< float > m_transform
void transToPers(const SURFACE *, Trk::Surface_p2 *, MsgStream &)
Eigen::Affine3d Transform3D
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
static void vectorToEigenTransform3D(const T &vec, Amg::Transform3D &trans)
Convert std :: vector<double> to Amg::Transform3D.
bool isFree() const
Returns 'true' if this surface is 'free', i.e.
void persToTrans(const Trk::Surface_p2 *, SURFACE *, MsgStream &)
#define ATLAS_THREAD_SAFE
Define macros for attributes used to control the static checker.