Skip to content

Commit 0034bba

Browse files
authored
ITS: fix of wrong vector size infologger message (#2156)
* Fixed Error message about wrong vector size * Clang
1 parent 0269662 commit 0034bba

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

Modules/ITS/include/ITS/ITSHelpers.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ std::vector<T> convertToArray(std::string input)
2424

2525
if constexpr (std::is_same_v<T, int>) {
2626
result.push_back(std::stoi(token));
27+
} else if constexpr (std::is_same_v<T, float>) {
28+
result.push_back(std::strtof(token.c_str(), NULL));
2729
} else if constexpr (std::is_same_v<T, std::string>) {
2830
result.push_back(token);
2931
}

Modules/ITS/itsDecoding.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
"policy": "OnEachSeparately",
4848
"detectorName": "ITS",
4949
"checkParameters": {
50-
"DecLinkErrorLimits": "1, 1, 1, 1, 1, 1000, 1000, 1000, 1000, 1000, 1000, 1, 1, 1000, 1000, 1, 1, 1, 1, 1000, 1000, 50, 50",
51-
"DecLinkErrorLimitsRatio": "0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0",
52-
"DecLinkErrorType": "0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0",
50+
"DecLinkErrorLimits": "5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, -1",
51+
"DecLinkErrorLimitsRatio": "0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1",
52+
"DecLinkErrorType": "0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0",
5353
"plotWithTextMessage": "",
5454
"textMessage": ""
5555
},

0 commit comments

Comments
 (0)