Mantid
|
This class defines the pulse times for a specific bank. More...
#include <BankPulseTimes.h>
Public Member Functions | |
BankPulseTimes (::NeXus::File &file, const std::vector< int > &pNumbers) | |
Constructor with NeXus::File. More... | |
BankPulseTimes (const std::vector< Mantid::Types::Core::DateAndTime > ×) | |
Constructor with vector of DateAndTime. More... | |
bool | equals (size_t otherNumPulse, const std::string &otherStartTime) |
Equals. More... | |
Public Attributes | |
std::vector< int > | periodNumbers |
Vector of period numbers corresponding to each pulse. More... | |
std::vector< Mantid::Types::Core::DateAndTime > | pulseTimes |
Array of the pulse times. More... | |
std::string | startTime |
String describing the start time. More... | |
Static Public Attributes | |
static const unsigned int | FirstPeriod = 1 |
Starting number for assigning periods. More... | |
This class defines the pulse times for a specific bank.
Since some instruments (ARCS, VULCAN) have multiple preprocessors, this means that some banks have different lists of pulse times.
Definition at line 20 of file BankPulseTimes.h.
BankPulseTimes::BankPulseTimes | ( | ::NeXus::File & | file, |
const std::vector< int > & | pNumbers | ||
) |
Constructor with NeXus::File.
Constructor.
Loads the pulse times from the bank entry of the file
file | :: nexus file open in the right bank entry |
pNumbers | :: Period numbers to index into. Index via frame/pulse |
Definition at line 25 of file BankPulseTimes.cpp.
References FirstPeriod, periodNumbers, pulseTimes, and startTime.
BankPulseTimes::BankPulseTimes | ( | const std::vector< Mantid::Types::Core::DateAndTime > & | times | ) |
Constructor with vector of DateAndTime.
Constructor.
Build from a vector of date and times. Handles a zero-sized vector
times |
Definition at line 75 of file BankPulseTimes.cpp.
References FirstPeriod, periodNumbers, and pulseTimes.
bool BankPulseTimes::equals | ( | size_t | otherNumPulse, |
const std::string & | otherStartTime | ||
) |
Equals.
Comparison.
Is this bank's pulse times array the same as another one.
otherNumPulse | :: number of pulses in the OTHER bank event_time_zero. |
otherStartTime | :: "offset" attribute of the OTHER bank event_time_zero. |
Definition at line 92 of file BankPulseTimes.cpp.
References pulseTimes, and startTime.
|
static |
Starting number for assigning periods.
The first period.
Definition at line 23 of file BankPulseTimes.h.
Referenced by BankPulseTimes().
std::vector<int> BankPulseTimes::periodNumbers |
Vector of period numbers corresponding to each pulse.
Definition at line 41 of file BankPulseTimes.h.
Referenced by BankPulseTimes().
std::vector<Mantid::Types::Core::DateAndTime> BankPulseTimes::pulseTimes |
Array of the pulse times.
Definition at line 38 of file BankPulseTimes.h.
Referenced by BankPulseTimes(), and equals().
std::string BankPulseTimes::startTime |
String describing the start time.
Definition at line 35 of file BankPulseTimes.h.
Referenced by BankPulseTimes(), and equals().