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.
 
 ChopperConfiguration (vector< int > bankids)
 Constructor.
 
const std::vector< unsigned int > & getBankIDs () const
 Get bank IDs in configuration.
 
double getParameter (unsigned int bankid, const std::string &paramname) const
 Get a parameter from a bank.
 
bool hasBank (unsigned int bankid) const
 Check wehther a bank is defined.
 
void setParameter (unsigned int bankid, const std::string &paramname, double value)
 Set a parameter to a bank.
 

Private Member Functions

std::string parseString () const
 
std::vector< double > parseStringDbl (const std::string &instring) const
 Parse string to a double vector.
 
std::vector< unsigned int > parseStringUnsignedInt (const std::string &instring) const
 Parse string to an integer vector.
 

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_vec2Theta
 
std::vector< double > m_vecCWL
 
std::vector< double > m_vecL1
 
std::vector< double > m_vecL2
 

Detailed Description

Definition at line 33 of file SaveGSASInstrumentFile.cpp.

Constructor & Destructor Documentation

◆ ChopperConfiguration() [1/2]

Mantid::DataHandling::ChopperConfiguration::ChopperConfiguration ( vector< int >  bankids)
explicit

Constructor.

Definition at line 74 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 96 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()

const vector< unsigned int > & Mantid::DataHandling::ChopperConfiguration::getBankIDs ( ) const

Get bank IDs in configuration.

Get bank IDs in the chopper configuration.

Definition at line 127 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 138 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 131 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 215 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 237 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 178 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

◆ m_bankIDs

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

◆ m_frequency

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

Definition at line 55 of file SaveGSASInstrumentFile.cpp.

◆ m_maxdsps

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

◆ m_maxtofs

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

◆ m_mindsps

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

◆ m_vec2Theta

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

Definition at line 59 of file SaveGSASInstrumentFile.cpp.

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

◆ m_vecCWL

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

◆ m_vecL1

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

Definition at line 60 of file SaveGSASInstrumentFile.cpp.

Referenced by ChopperConfiguration(), and setParameter().

◆ m_vecL2

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

Definition at line 61 of file SaveGSASInstrumentFile.cpp.

Referenced by ChopperConfiguration(), and setParameter().


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