a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
LHPC::RunningConstant Class Reference

#include <RunningConstant.hpp>

Detailed Description

Definition at line 24 of file RunningConstant.hpp.

Public Member Functions

std::string getAsString () const
 
double getScale () const
 
int getScheme () const
 
double getValue () const
 
 RunningConstant ()
 
 RunningConstant (RunningConstant const &copySource)
 
void setFromString (std::string const &valuesString)
 
void setValues (double const valueDouble, int const schemeType, double const evaluationScale)
 
 ~RunningConstant ()
 

Protected Attributes

double evaluationScale
 
int schemeType
 
double valueDouble
 

Constructor & Destructor Documentation

◆ RunningConstant() [1/2]

LHPC::RunningConstant::RunningConstant ( )

Definition at line 18 of file RunningConstant.cpp.

◆ RunningConstant() [2/2]

LHPC::RunningConstant::RunningConstant ( RunningConstant const &  copySource)

Definition at line 26 of file RunningConstant.cpp.

26 :
27 valueDouble( copySource.valueDouble ),
28 schemeType( copySource.schemeType ),
29 evaluationScale( copySource.evaluationScale )
30 {
31 // just an initialization list.
32 }

◆ ~RunningConstant()

LHPC::RunningConstant::~RunningConstant ( )

Definition at line 34 of file RunningConstant.cpp.

35 {
36 // does nothing.
37 }

Member Function Documentation

◆ getAsString()

std::string LHPC::RunningConstant::getAsString ( ) const
inline

Definition at line 104 of file RunningConstant.hpp.

105 {
106 std::string returnString( BOL::StringParser::doubleToString( valueDouble,
107 9,
108 3 ) );
109 returnString.append( " " );
110 returnString.append( BOL::StringParser::intToString( schemeType,
111 2,
112 "",
113 "-",
114 ' ' ) );
115 returnString.append( " " );
117 9,
118 3 ) );
119 return returnString;
120 }
static std::string intToString(int inputInt, int const minimumNumberOfDigits, std::string const prefixForPositiveNumbers="+", std::string const prefixForNegativeNumbers="-", char const paddingChar='0')
static std::string doubleToString(double inputDouble, int const numberOfMantissaDigits, int const numberOfExponentDigits, std::string const prefixForPositiveNumbers="+", std::string const prefixForNegativeNumbers="-", std::string const positiveExponentPrefix="+", std::string const negativeExponentPrefix="-", std::string const exponentCharacter="E")

◆ getScale()

double LHPC::RunningConstant::getScale ( ) const
inline

Definition at line 70 of file RunningConstant.hpp.

71 {
72 return evaluationScale;
73 }

◆ getScheme()

int LHPC::RunningConstant::getScheme ( ) const
inline

Definition at line 64 of file RunningConstant.hpp.

65 {
66 return schemeType;
67 }

◆ getValue()

double LHPC::RunningConstant::getValue ( ) const
inline

Definition at line 58 of file RunningConstant.hpp.

59 {
60 return valueDouble;
61 }

◆ setFromString()

void LHPC::RunningConstant::setFromString ( std::string const &  valuesString)
inline

Definition at line 86 of file RunningConstant.hpp.

87 {
88 std::string firstRemainder;
89 std::string secondRemainder;
92 valuesString,
93 &firstRemainder,
97 firstRemainder,
98 &secondRemainder,
101 }
static std::string firstWordOf(std::string const &stringToParse, std::string *const remainderString=NULL, std::string const &separatorChars=whitespaceChars)
static std::string const whitespaceAndNewlineChars
static double stringToDouble(std::string const &stringToInterpret)
static int stringToInt(std::string const &stringToInterpret)

◆ setValues()

void LHPC::RunningConstant::setValues ( double const  valueDouble,
int const  schemeType,
double const  evaluationScale 
)
inline

Definition at line 76 of file RunningConstant.hpp.

79 {
81 this->schemeType = schemeType;
83 }

Member Data Documentation

◆ evaluationScale

double LHPC::RunningConstant::evaluationScale
protected

Definition at line 50 of file RunningConstant.hpp.

◆ schemeType

int LHPC::RunningConstant::schemeType
protected

Definition at line 49 of file RunningConstant.hpp.

◆ valueDouble

double LHPC::RunningConstant::valueDouble
protected

Definition at line 48 of file RunningConstant.hpp.


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