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
11
12namespace Mantid {
13namespace DataHandling {
15public:
16 // Constructor
17 MultiPeriodLoadMuonStrategy(Kernel::Logger &g_log, const std::string &filename,
18 LoadMuonNexusV2NexusHelper &nexusLoader, API::WorkspaceGroup &workspaceGroup);
19 // Loads the muon log data
20 void loadMuonLogData() override;
21 // Returns the good frames from the nexus entry
22 void loadGoodFrames() override;
23 // Apply the time zero correction to the workspace time axis
24 void applyTimeZeroCorrection() override;
25 // Load detector grouping
27 // Load dead time table
29 // Get time zero table
31
32private:
34 std::vector<detid_t> m_detectors;
35 std::vector<detid_t> getLoadedDetectors();
36};
37} // namespace DataHandling
38} // 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:52
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
Definition: Workspace_fwd.h:20
Kernel::Logger g_log("ExperimentInfo")
static logger object
Helper class which provides the Collimation Length for SANS instruments.