Mantid
Loading...
Searching...
No Matches
MultiPeriodLoadMuonStrategy.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2020 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
10
11namespace Mantid {
12namespace DataHandling {
14public:
15 // Constructor
16 MultiPeriodLoadMuonStrategy(Kernel::Logger &g_log, const std::string &filename,
17 LoadMuonNexusV2NexusHelper &nexusLoader, API::WorkspaceGroup &workspaceGroup);
18 // Loads the muon log data
19 void loadMuonLogData() override;
20 // Returns the good frames from the nexus entry
21 void loadGoodFrames() override;
22 // Apply the time zero correction to the workspace time axis
23 void applyTimeZeroCorrection() override;
24 // Load detector grouping
26 // Load dead time table
28 // Get time zero table
30
31private:
33 std::vector<detid_t> m_detectors;
34 std::vector<detid_t> getLoadedDetectors();
35};
36} // namespace DataHandling
37} // namespace Mantid
Class to hold a set of workspaces.
std::vector< detid_t > getLoadedDetectors()
Finds the detectors which are loaded in the stored workspace group.
API::Workspace_sptr loadDetectorGrouping() const override
Loads detector grouping.
API::Workspace_sptr getTimeZeroTable() override
Gets time zero table from loaded time zeros Assumes all periods have same time zero.
void loadGoodFrames() override
Loads the good frames data into each of the stored workspace objects.
void applyTimeZeroCorrection() override
Performs time-zero correction on the loaded workspace.
void loadMuonLogData() override
Loads Muon specific logs into each of the workspaces in the workspace group.
The Logger class is in charge of the publishing messages from the framework through various channels.
Definition Logger.h:51
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
Kernel::Logger g_log("ExperimentInfo")
static logger object
Helper class which provides the Collimation Length for SANS instruments.