Mantid
Loading...
Searching...
No Matches
BankPulseTimes.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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
8
11
12namespace NeXus {
13class File;
14}
15
21public:
23 static const unsigned int FirstPeriod;
24
26 BankPulseTimes(::NeXus::File &file, const std::vector<int> &pNumbers);
27
29 BankPulseTimes(const std::vector<Mantid::Types::Core::DateAndTime> &times);
30
32 bool equals(size_t otherNumPulse, const std::string &otherStartTime);
33
35 std::string startTime;
36
38 std::vector<Mantid::Types::Core::DateAndTime> pulseTimes;
39
41 std::vector<int> periodNumbers;
42};
This class defines the pulse times for a specific bank.
static const unsigned int FirstPeriod
Starting number for assigning periods.
std::string startTime
String describing the start time.
std::vector< int > periodNumbers
Vector of period numbers corresponding to each pulse.
bool equals(size_t otherNumPulse, const std::string &otherStartTime)
Equals.
std::vector< Mantid::Types::Core::DateAndTime > pulseTimes
Array of the pulse times.