27 if (std::dynamic_pointer_cast<Mantid::API::IMDEventWorkspace>(mdWorkspace)) {
30 throw std::runtime_error(
"Setting the display normaliztion is currently "
31 "only implemented for MDEvent Workspaces");
47 auto isEventWorkspace =
48 static_cast<bool>(std::dynamic_pointer_cast<Mantid::DataObjects::EventWorkspace>(underlyingWorkspace));
60 }
else if (isEventWorkspace) {
82 auto ws = std::dynamic_pointer_cast<Mantid::API::IMDEventWorkspace>(mdWorkspace);
83 ws->setDisplayNormalization(displayNormalization);
84 ws->setDisplayNormalizationHisto(displayNormalizationHisto);
void setNormalizationMDEvent(const Mantid::API::IMDWorkspace_sptr &mdWorkspace, const Mantid::API::MatrixWorkspace_sptr &underlyingWorkspace, bool isQ=false, const Mantid::Kernel::DeltaEMode::Type &mode=Mantid::Kernel::DeltaEMode::Elastic)
Sets the display normalization for MDEventWorkspaces.
void operator()(const Mantid::API::IMDWorkspace_sptr &mdWorkspace, const Mantid::API::MatrixWorkspace_sptr &underlyingWorkspace, bool isQ=false, const Mantid::Kernel::DeltaEMode::Type &mode=Mantid::Kernel::DeltaEMode::Elastic)
Sets the display normalization.
void applyNormalizationMDEvent(const Mantid::API::IMDWorkspace_sptr &mdWorkspace, Mantid::API::MDNormalization displayNormalization, Mantid::API::MDNormalization displayNormalizationHisto)
Apply the normalization to an MDEvent Workspace.
std::shared_ptr< IMDWorkspace > IMDWorkspace_sptr
Shared pointer to the IMDWorkspace base class.
MDNormalization
Enum describing different ways to normalize the signal in a MDWorkspace.
@ VolumeNormalization
Divide the signal by the volume of the box/bin.
@ NumEventsNormalization
Divide the signal by the number of events that contributed to it.
@ NoNormalization
Don't normalize = return raw counts.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Type
Define the available energy transfer modes It is important to assign enums proper numbers,...