Mantid
|
Public Member Functions | |
ChopperConfiguration (const int freq, const std::string &bankidstr, const std::string &cwlstr, const std::string &mndspstr, const std::string &mxdspstr, const std::string &maxtofstr) | |
Constructor of chopper configuration Removed arguments: std::string splitdstr, std::string vrunstr. More... | |
ChopperConfiguration (vector< int > bankids) | |
Constructor. More... | |
std::vector< unsigned int > | getBankIDs () const |
Get bank IDs in configuration. More... | |
double | getParameter (unsigned int bankid, const std::string ¶mname) const |
Get a parameter from a bank. More... | |
bool | hasBank (unsigned int bankid) const |
Check wehther a bank is defined. More... | |
void | setParameter (unsigned int bankid, const std::string ¶mname, double value) |
Set a parameter to a bank. More... | |
Private Member Functions | |
std::string | parseString () const |
std::vector< double > | parseStringDbl (const std::string &instring) const |
Parse string to a double vector. More... | |
std::vector< unsigned int > | parseStringUnsignedInt (const std::string &instring) const |
Parse string to an integer vector. More... | |
Private Attributes | |
std::map< unsigned int, size_t > | m_bankIDIndexMap |
std::vector< unsigned int > | m_bankIDs |
const double | m_frequency |
std::vector< double > | m_maxdsps |
std::vector< double > | m_maxtofs |
std::vector< double > | m_mindsps |
std::vector< double > | m_splitds |
std::vector< double > | m_vec2Theta |
std::vector< double > | m_vecCWL |
std::vector< double > | m_vecL1 |
std::vector< double > | m_vecL2 |
std::vector< int > | m_vruns |
Definition at line 32 of file SaveGSASInstrumentFile.cpp.
|
explicit |
Constructor.
Definition at line 76 of file SaveGSASInstrumentFile.cpp.
References Mantid::EMPTY_DBL(), m_bankIDIndexMap, m_bankIDs, m_maxdsps, m_maxtofs, m_mindsps, and m_vecCWL.
Mantid::DataHandling::ChopperConfiguration::ChopperConfiguration | ( | const int | freq, |
const std::string & | bankidstr, | ||
const std::string & | cwlstr, | ||
const std::string & | mndspstr, | ||
const std::string & | mxdspstr, | ||
const std::string & | maxtofstr | ||
) |
Constructor of chopper configuration Removed arguments: std::string splitdstr, std::string vrunstr.
Definition at line 98 of file SaveGSASInstrumentFile.cpp.
References m_bankIDIndexMap, m_bankIDs, m_maxdsps, m_maxtofs, m_mindsps, m_vec2Theta, m_vecCWL, m_vecL1, and m_vecL2.
vector< unsigned int > Mantid::DataHandling::ChopperConfiguration::getBankIDs | ( | ) | const |
Get bank IDs in configuration.
Get bank IDs in the chopper configuration.
Definition at line 129 of file SaveGSASInstrumentFile.cpp.
References m_bankIDs.
double Mantid::DataHandling::ChopperConfiguration::getParameter | ( | unsigned int | bankid, |
const std::string & | paramname | ||
) | const |
Get a parameter from a bank.
Get chopper configuration parameters value.
Definition at line 140 of file SaveGSASInstrumentFile.cpp.
References Mantid::EMPTY_DBL(), m_bankIDIndexMap, m_maxdsps, m_maxtofs, m_mindsps, m_vec2Theta, m_vecCWL, and value.
bool Mantid::DataHandling::ChopperConfiguration::hasBank | ( | unsigned int | bankid | ) | const |
Check wehther a bank is defined.
Definition at line 133 of file SaveGSASInstrumentFile.cpp.
References m_bankIDs.
|
private |
|
private |
Parse string to a double vector.
Parse string to double vector.
Definition at line 217 of file SaveGSASInstrumentFile.cpp.
|
private |
Parse string to an integer vector.
Parse string to double vector.
Definition at line 239 of file SaveGSASInstrumentFile.cpp.
void Mantid::DataHandling::ChopperConfiguration::setParameter | ( | unsigned int | bankid, |
const std::string & | paramname, | ||
double | value | ||
) |
Set a parameter to a bank.
Definition at line 180 of file SaveGSASInstrumentFile.cpp.
References m_bankIDIndexMap, m_maxdsps, m_maxtofs, m_mindsps, m_vec2Theta, m_vecCWL, m_vecL1, m_vecL2, and value.
|
private |
Definition at line 56 of file SaveGSASInstrumentFile.cpp.
Referenced by ChopperConfiguration(), getParameter(), and setParameter().
|
private |
Definition at line 55 of file SaveGSASInstrumentFile.cpp.
Referenced by ChopperConfiguration(), getBankIDs(), and hasBank().
|
private |
Definition at line 54 of file SaveGSASInstrumentFile.cpp.
|
private |
Definition at line 64 of file SaveGSASInstrumentFile.cpp.
Referenced by ChopperConfiguration(), getParameter(), and setParameter().
|
private |
Definition at line 65 of file SaveGSASInstrumentFile.cpp.
Referenced by ChopperConfiguration(), getParameter(), and setParameter().
|
private |
Definition at line 63 of file SaveGSASInstrumentFile.cpp.
Referenced by ChopperConfiguration(), getParameter(), and setParameter().
|
private |
Definition at line 67 of file SaveGSASInstrumentFile.cpp.
|
private |
Definition at line 58 of file SaveGSASInstrumentFile.cpp.
Referenced by ChopperConfiguration(), getParameter(), and setParameter().
|
private |
Definition at line 62 of file SaveGSASInstrumentFile.cpp.
Referenced by ChopperConfiguration(), getParameter(), and setParameter().
|
private |
Definition at line 59 of file SaveGSASInstrumentFile.cpp.
Referenced by ChopperConfiguration(), and setParameter().
|
private |
Definition at line 60 of file SaveGSASInstrumentFile.cpp.
Referenced by ChopperConfiguration(), and setParameter().
|
private |
Definition at line 68 of file SaveGSASInstrumentFile.cpp.