Skip to content

Commit 587f67f

Browse files
author
Wiktor Pierozak
committed
Formatted cxx files
1 parent a641e44 commit 587f67f

2 files changed

Lines changed: 15 additions & 16 deletions

File tree

Modules/FIT/FDD/src/OutOfBunchCollFeeModulesCheck.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ Quality OutOfBunchCollFeeModulesCheck::check(std::map<std::string, std::shared_p
8282
const char* metaInfoKey = metainfo.first.data();
8383
const char* metaInfoKeyEnd = metainfo.first.data() + metainfo.first.size();
8484
if (std::from_chars(metaInfoKey, metaInfoKeyEnd, bin).ptr == metaInfoKeyEnd) {
85-
if(bin >=0 && bin <= modulesNumber) {
85+
if (bin >= 0 && bin <= modulesNumber) {
8686
try {
87-
value = std::stof(metainfo.second);
87+
value = std::stof(metainfo.second);
8888
} catch (std::invalid_argument& e) {
89-
ILOG(Warning, Support) << "Value " << value << " in bin " << bin << " is not convertible to float" << ENDM;
90-
continue;
91-
}
92-
allCollPerFeeModule[bin] = value;
89+
ILOG(Warning, Support) << "Value " << value << " in bin " << bin << " is not convertible to float" << ENDM;
90+
continue;
9391
}
92+
allCollPerFeeModule[bin] = value;
93+
}
9494
}
9595
}
9696

Modules/FIT/FV0/src/OutOfBunchCollFeeModulesCheck.cxx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,19 +87,18 @@ Quality OutOfBunchCollFeeModulesCheck::check(std::map<std::string, std::shared_p
8787
const char* metaInfoKey = metainfo.first.data();
8888
const char* metaInfoKeyEnd = metainfo.first.data() + metainfo.first.size();
8989
if (std::from_chars(metaInfoKey, metaInfoKeyEnd, bin).ptr == metaInfoKeyEnd) {
90-
if(bin >= 0 && bin <= numberOfModules){
91-
try {
92-
value = std::stof(metainfo.second);
93-
} catch (std::invalid_argument& e) {
94-
ILOG(Warning, Support) << "Value " << value << " in bin " << bin << " is not convertible to float. Skipping." << ENDM;
95-
continue;
90+
if (bin >= 0 && bin <= numberOfModules) {
91+
try {
92+
value = std::stof(metainfo.second);
93+
} catch (std::invalid_argument& e) {
94+
ILOG(Warning, Support) << "Value " << value << " in bin " << bin << " is not convertible to float. Skipping." << ENDM;
95+
continue;
96+
}
97+
parsedBins++;
98+
allCollPerFeeModule[bin] = value;
9699
}
97-
parsedBins++;
98-
allCollPerFeeModule[bin] = value;
99100
}
100-
101101
}
102-
}
103102
if (parsedBins != histogram->GetNbinsY()) {
104103
ILOG(Warning, Support) << "Missing bins in OutOfBunchColl_BCvsFeeModules: expected " << histogram->GetNbinsY() << ", get " << parsedBins << ENDM;
105104
}

0 commit comments

Comments
 (0)