Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/bugfix/7523_LoadNexusProcessed_c…
Browse files Browse the repository at this point in the history
…annot_load_partial_event_workspace'
  • Loading branch information
raquelalvarezbanos committed Feb 6, 2015
2 parents 5c98d0b + 476cca0 commit d5326ca
Show file tree
Hide file tree
Showing 5 changed files with 542 additions and 231 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
#include "MantidAPI/MatrixWorkspace.h"

#include "MantidNexus/NexusClasses.h"
#include <nexus/NeXusFile.hpp>

namespace NeXus {
class File;
}

namespace Mantid {

Expand Down Expand Up @@ -129,6 +132,13 @@ class DLLExport LoadNexusProcessed
Mantid::NeXus::NXDouble &xbins,
const double &progressStart,
const double &progressRange);
API::MatrixWorkspace_sptr loadNonEventEntry(Mantid::NeXus::NXData &wksp_cls,
Mantid::NeXus::NXDouble &xbins,
const double &progressStart,
const double &progressRange,
const Mantid::NeXus::NXEntry &mtd_entry,
const int xlength,
std::string &workspaceType);

/// Read the data from the sample group
void readSampleGroup(Mantid::NeXus::NXEntry &mtd_entry,
Expand Down Expand Up @@ -182,7 +192,8 @@ class DLLExport LoadNexusProcessed
void checkOptionalProperties(const std::size_t numberofspectra);

/// calculates the workspace size
std::size_t calculateWorkspacesize(const std::size_t numberofspectra);
std::size_t calculateWorkspaceSize(const std::size_t numberofspectra,
bool gen_filtered_list=false);

/// Accellerated multiperiod loading
Mantid::API::Workspace_sptr doAccelleratedMultiPeriodLoading(
Expand All @@ -201,13 +212,18 @@ class DLLExport LoadNexusProcessed
bool m_list;
/// Flag set if interval of spectra to write is set
bool m_interval;
/// The value of the spectrum_list property
std::vector<int64_t> m_spec_list;

/// The value of the spectrum_min property
int64_t m_spec_min;
/// The value of the spectrum_max property
int64_t m_spec_max;

/// The value of the spectrum_list property
std::vector<int64_t> m_spec_list;
/// list of spectra filtered by min/max/list, currently
/// used only when loading data into event_workspace
std::vector<int64_t> m_filtered_spec_idxs;

// C++ interface to the NXS file
::NeXus::File *m_cppFile;
};
Expand Down
Loading

0 comments on commit d5326ca

Please sign in to comment.