Skip to content
Snippets Groups Projects
Unverified Commit 32d86c5a authored by Nils Braun's avatar Nils Braun Committed by GitHub
Browse files

Merge pull request #74 from FelixMetzner/master

Adding functionality to SharedPlanePtr to allow to create said pointer from a DetPlane
parents cab85167 b027b72a
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,21 @@ namespace genfit {
*/
typedef std::shared_ptr< genfit::DetPlane > SharedPlanePtr;
/**
* Class allowing to create a SharedPlanePtr from a DetPlane from Python.
*/
class SharedPlanePtrCreator {
public:
/**
* Function which allows to create a shared plane pointer from a DetPlane.
* @param plane : A DetPlane.
* @return SharedPlanePtr : A shared plane pointer to the provided plane.
*/
static SharedPlanePtr getPlanePtr(DetPlane *plane) {
return SharedPlanePtr(plane);
}
};
} /* End of namespace genfit */
/** @} */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment