Skip to content

Commit

Permalink
Enabled to split events using splitter matrix workspace. Refs #8685.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed Jan 17, 2014
1 parent a6bd391 commit c774e4c
Show file tree
Hide file tree
Showing 2 changed files with 255 additions and 63 deletions.
Expand Up @@ -61,18 +61,31 @@ namespace Algorithms
// Implement abstract Algorithm methods
void exec();

/// Process user input properties
void processProperties();

void processSplittersWorkspace();

void createOutputWorkspaces(std::string outputwsnamebase);
///
void processMatrixSplitterWorkspace();

void createOutputWorkspaces();

void importDetectorTOFCalibration();

void filterEventsBySplitters(double progressamount);

///
void filterEventsByVectorSplitters(double progressamount);

DataObjects::EventWorkspace_sptr m_eventWS;
DataObjects::SplittersWorkspace_sptr mSplittersWorkspace;
DataObjects::SplittersWorkspace_sptr m_splittersWorkspace;
API::MatrixWorkspace_const_sptr m_matrixSplitterWS;
DataObjects::TableWorkspace_sptr m_detCorrectWorkspace;

/// Flag to use matrix splitters or table splitters
bool m_useTableSplitters;

std::set<int> m_workGroupIndexes;
Kernel::TimeSplitterType m_splitters;
std::map<int, DataObjects::EventWorkspace_sptr> m_outputWS;
Expand All @@ -83,7 +96,7 @@ namespace Algorithms

bool mFilterByPulseTime;

DataObjects::TableWorkspace_sptr mInformationWS;
DataObjects::TableWorkspace_sptr m_informationWS;
bool mWithInfo;

double mProgress;
Expand All @@ -99,6 +112,17 @@ namespace Algorithms
/// Flag to generate TOF correction
bool m_genTOFCorrection;

/// Base of output workspace's name
std::string m_outputWSNameBase;

///
bool m_toGroupWS;

///
std::vector<int64_t> m_vecSplitterTime;
///
std::vector<int> m_vecSplitterGroup;


};

Expand Down

0 comments on commit c774e4c

Please sign in to comment.