Skip to content

Commit 686e845

Browse files
iarspiderfwyzard
andauthored
Update DataFormats/L1TParticleFlow/interface/jets.h
Co-authored-by: Andrea Bocci <[email protected]>
1 parent 6fc2f50 commit 686e845

File tree

1 file changed

+1
-4
lines changed
  • DataFormats/L1TParticleFlow/interface

1 file changed

+1
-4
lines changed

DataFormats/L1TParticleFlow/interface/jets.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,11 @@ namespace l1ct {
3535
static const std::unordered_map<std::string, JetTagClassValue> labels_;
3636

3737
friend std::ostream &operator<<(std::ostream &ost, const l1ct::JetTagClass &jtc) {
38-
std::string res = "";
3938
auto it = std::find_if(
4039
std::begin(jtc.labels_), std::end(jtc.labels_), [&jtc](auto &&p) { return p.second == jtc.value_; });
4140
if (it != std::end(jtc.labels_)) {
42-
res = it->first;
41+
ost << it->first;
4342
}
44-
45-
ost << res;
4643
return ost;
4744
}
4845

0 commit comments

Comments
 (0)