mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
removing trailing _ for members of currentsrcParameters
This commit is contained in:
@ -116,25 +116,25 @@ std::ostream &operator<<(std::ostream &os,
|
||||
|
||||
std::string ToString(const slsDetectorDefs::currentSrcParameters &r) {
|
||||
std::ostringstream oss;
|
||||
if (r.fix_ < -1 || r.fix_ > 1 || r.normal_ < -1 || r.normal_ > 1) {
|
||||
if (r.fix < -1 || r.fix > 1 || r.normal < -1 || r.normal > 1) {
|
||||
throw sls::RuntimeError(
|
||||
"Invalid current source parameters. Cannot print.");
|
||||
}
|
||||
oss << '[';
|
||||
if (r.enable_) {
|
||||
if (r.enable) {
|
||||
oss << "enabled";
|
||||
// [jungfrau]
|
||||
if (r.fix_ != -1) {
|
||||
oss << (r.fix_ == 1 ? ", fix" : ", nofix");
|
||||
if (r.fix != -1) {
|
||||
oss << (r.fix == 1 ? ", fix" : ", nofix");
|
||||
}
|
||||
// [jungfrau chip v1.1]
|
||||
if (r.normal_ != -1) {
|
||||
oss << ", " << ToStringHex(r.select_, 16);
|
||||
oss << (r.normal_ == 1 ? ", normal" : ", low");
|
||||
if (r.normal != -1) {
|
||||
oss << ", " << ToStringHex(r.select, 16);
|
||||
oss << (r.normal == 1 ? ", normal" : ", low");
|
||||
}
|
||||
// [jungfrau chip v1.0]
|
||||
else {
|
||||
oss << ", " << r.select_;
|
||||
oss << ", " << r.select;
|
||||
}
|
||||
} else {
|
||||
oss << "disabled";
|
||||
|
Reference in New Issue
Block a user