We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fc2f50 commit 686e845Copy full SHA for 686e845
DataFormats/L1TParticleFlow/interface/jets.h
@@ -35,14 +35,11 @@ namespace l1ct {
35
static const std::unordered_map<std::string, JetTagClassValue> labels_;
36
37
friend std::ostream &operator<<(std::ostream &ost, const l1ct::JetTagClass &jtc) {
38
- std::string res = "";
39
auto it = std::find_if(
40
std::begin(jtc.labels_), std::end(jtc.labels_), [&jtc](auto &&p) { return p.second == jtc.value_; });
41
if (it != std::end(jtc.labels_)) {
42
- res = it->first;
+ ost << it->first;
43
}
44
-
45
- ost << res;
46
return ost;
47
48
0 commit comments