Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Mantid::DataHandling::ChopperConfiguration Class Reference

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 &paramname) 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 &paramname, 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
 

Detailed Description

Definition at line 32 of file SaveGSASInstrumentFile.cpp.

Constructor & Destructor Documentation

◆ ChopperConfiguration() [1/2]

Mantid::DataHandling::ChopperConfiguration::ChopperConfiguration ( vector< int >  bankids)
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.

◆ ChopperConfiguration() [2/2]

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.

Member Function Documentation

◆ getBankIDs()

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.

◆ getParameter()

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.

◆ hasBank()

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.

◆ parseString()

std::string Mantid::DataHandling::ChopperConfiguration::parseString ( ) const
private

◆ parseStringDbl()

vector< double > Mantid::DataHandling::ChopperConfiguration::parseStringDbl ( const std::string &  instring) const
private

Parse string to a double vector.

Parse string to double vector.

Definition at line 217 of file SaveGSASInstrumentFile.cpp.

◆ parseStringUnsignedInt()

vector< unsigned int > Mantid::DataHandling::ChopperConfiguration::parseStringUnsignedInt ( const std::string &  instring) const
private

Parse string to an integer vector.

Parse string to double vector.

Definition at line 239 of file SaveGSASInstrumentFile.cpp.

◆ setParameter()

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.

Member Data Documentation

◆ m_bankIDIndexMap

std::map<unsigned int, size_t> Mantid::DataHandling::ChopperConfiguration::m_bankIDIndexMap
private

Definition at line 56 of file SaveGSASInstrumentFile.cpp.

Referenced by ChopperConfiguration(), getParameter(), and setParameter().

◆ m_bankIDs

std::vector<unsigned int> Mantid::DataHandling::ChopperConfiguration::m_bankIDs
private

Definition at line 55 of file SaveGSASInstrumentFile.cpp.

Referenced by ChopperConfiguration(), getBankIDs(), and hasBank().

◆ m_frequency

const double Mantid::DataHandling::ChopperConfiguration::m_frequency
private

Definition at line 54 of file SaveGSASInstrumentFile.cpp.

◆ m_maxdsps

std::vector<double> Mantid::DataHandling::ChopperConfiguration::m_maxdsps
private

Definition at line 64 of file SaveGSASInstrumentFile.cpp.

Referenced by ChopperConfiguration(), getParameter(), and setParameter().

◆ m_maxtofs

std::vector<double> Mantid::DataHandling::ChopperConfiguration::m_maxtofs
private

Definition at line 65 of file SaveGSASInstrumentFile.cpp.

Referenced by ChopperConfiguration(), getParameter(), and setParameter().

◆ m_mindsps

std::vector<double> Mantid::DataHandling::ChopperConfiguration::m_mindsps
private

Definition at line 63 of file SaveGSASInstrumentFile.cpp.

Referenced by ChopperConfiguration(), getParameter(), and setParameter().

◆ m_splitds

std::vector<double> Mantid::DataHandling::ChopperConfiguration::m_splitds
private

Definition at line 67 of file SaveGSASInstrumentFile.cpp.

◆ m_vec2Theta

std::vector<double> Mantid::DataHandling::ChopperConfiguration::m_vec2Theta
private

Definition at line 58 of file SaveGSASInstrumentFile.cpp.

Referenced by ChopperConfiguration(), getParameter(), and setParameter().

◆ m_vecCWL

std::vector<double> Mantid::DataHandling::ChopperConfiguration::m_vecCWL
private

Definition at line 62 of file SaveGSASInstrumentFile.cpp.

Referenced by ChopperConfiguration(), getParameter(), and setParameter().

◆ m_vecL1

std::vector<double> Mantid::DataHandling::ChopperConfiguration::m_vecL1
private

Definition at line 59 of file SaveGSASInstrumentFile.cpp.

Referenced by ChopperConfiguration(), and setParameter().

◆ m_vecL2

std::vector<double> Mantid::DataHandling::ChopperConfiguration::m_vecL2
private

Definition at line 60 of file SaveGSASInstrumentFile.cpp.

Referenced by ChopperConfiguration(), and setParameter().

◆ m_vruns

std::vector<int> Mantid::DataHandling::ChopperConfiguration::m_vruns
private

Definition at line 68 of file SaveGSASInstrumentFile.cpp.


The documentation for this class was generated from the following file: