14namespace DataObjects {
33 std::unique_ptr<GroupingWorkspace>
clone()
const {
return std::unique_ptr<GroupingWorkspace>(doClone()); }
36 std::unique_ptr<GroupingWorkspace>
cloneEmpty()
const {
return std::unique_ptr<GroupingWorkspace>(doCloneEmpty()); }
40 const std::string
id()
const override {
return "GroupingWorkspace"; }
42 void makeDetectorIDToGroupMap(std::map<detid_t, int> &detIDToGroup, int64_t &ngroups)
const;
43 void makeDetectorIDToGroupVector(std::vector<int> &detIDToGroup, int64_t &ngroups)
const;
A GroupingWorkspace is a subclass of Workspace2D where each spectrum has a single number entry,...
GroupingWorkspace(const GroupingWorkspace &)=default
Protected copy constructor. May be used by childs for cloning.
std::unique_ptr< GroupingWorkspace > cloneEmpty() const
Returns a default-initialized clone of the workspace.
std::unique_ptr< GroupingWorkspace > clone() const
Returns a clone of the workspace.
GroupingWorkspace * doCloneEmpty() const override
Virtual cloneEmpty method.
GroupingWorkspace & operator=(const GroupingWorkspace &)=delete
GroupingWorkspace()=default
const std::string id() const override
Gets the name of the workspace type.
GroupingWorkspace * doClone() const override
Virtual clone method. Not implemented to force implementation in children.
std::shared_ptr< const GroupingWorkspace > GroupingWorkspace_const_sptr
shared pointer to a const GroupingWorkspace
std::shared_ptr< GroupingWorkspace > GroupingWorkspace_sptr
shared pointer to the GroupingWorkspace class
std::shared_ptr< const Instrument > Instrument_const_sptr
Shared pointer to an const instrument object.
Helper class which provides the Collimation Length for SANS instruments.