Skip to content

Commit

Permalink
Added event time correction for inelastic instrument. Refs #9378.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed May 30, 2014
1 parent a06ec5b commit da4f9ee
Show file tree
Hide file tree
Showing 2 changed files with 174 additions and 137 deletions.
Expand Up @@ -80,14 +80,23 @@ namespace Algorithms
/// Set up detector calibration parameters
void setupDetectorTOFCalibration();

/// Set up detector calibration parameters for elastic scattering instrument
void setupElasticTOFCorrection(API::MatrixWorkspace_sptr corrws);

/// Set up detector calibration parmaeters for direct inelastic scattering instrument
void setupDirectTOFCorrection(API::MatrixWorkspace_sptr corrws);

/// Set up detector calibration parameters for indirect inelastic scattering instrument
void setupIndirectTOFCorrection(API::MatrixWorkspace_sptr corrws);

/// Set up detector calibration parameters from customized values
void setupCustomizedTOFCorrection();


/// Filter events by splitters in format of Splitter
void filterEventsBySplitters(double progressamount);

///
/// Filter events by splitters in format of vector
void filterEventsByVectorSplitters(double progressamount);

DataObjects::EventWorkspace_sptr m_eventWS;
Expand All @@ -104,7 +113,7 @@ namespace Algorithms
std::vector<std::string> m_wsNames;

std::vector<double> m_detTofOffsets;
std::vector<double> m_detTOFShifts;
std::vector<double> m_detTofShifts;

bool mFilterByPulseTime;

Expand All @@ -119,11 +128,6 @@ namespace Algorithms

void splitLog(DataObjects::EventWorkspace_sptr eventws, std::string logname, Kernel::TimeSplitterType& splitters);

/// Flag to do TOF correction
// bool m_doTOFCorrection;
/// Flag to generate TOF correction
bool m_genTOFCorrection;

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

Expand Down

0 comments on commit da4f9ee

Please sign in to comment.