Skip to content
Snippets Groups Projects
Commit f6deae51 authored by Felix Metzner's avatar Felix Metzner
Browse files

Adding a class to SharedPlanePtr.h which allows to create a SharedPlanePtr from a DetPlane.

parent cab85167
Branches
Tags
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.
*/
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