Skip to content

Commit e088e3e

Browse files
authored
Merge pull request #47184 from Dr15Jones/fixClassCheckCondFormatsL1tObjects
Fix edmDumpClassVersion call for CondFormats/L1TObjects
2 parents a523fee + 2bcb751 commit e088e3e

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

CondFormats/L1TObjects/interface/L1TMuonBarrelParams.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
/// \author: Giannis Flouris
88
///
99

10-
#ifndef L1TBMTFParams_h
11-
#define L1TBMTFParams_h
10+
#ifndef CondFormats_L1TObjects_L1TMuonBarrelParams_h
11+
#define CondFormats_L1TObjects_L1TMuonBarrelParams_h
1212

1313
#include <memory>
1414
#include <iostream>
1515
#include <vector>
16+
#include <map>
1617

1718
#include "CondFormats/Serialization/interface/Serializable.h"
1819
#include "CondFormats/L1TObjects/interface/LUT.h"

CondFormats/L1TObjects/interface/L1TriggerKey.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ class L1TriggerKey {
4040

4141
/* Adds new record and type mapping to payload. If such exists, nothing happens */
4242
void add(const std::string& record, const std::string& type, const std::string& key) {
43-
m_recordToKey.insert(std::make_pair(record + "@" + type, key.empty() ? kNullKey : key));
43+
m_recordToKey.emplace(record + "@" + type, key.empty() ? kNullKey : key);
4444
}
4545

4646
void add(const RecordToKey& map) {
4747
for (RecordToKey::const_iterator itr = map.begin(); itr != map.end(); ++itr) {
48-
m_recordToKey.insert(std::make_pair(itr->first, itr->second.empty() ? kNullKey : itr->second));
48+
m_recordToKey.emplace(itr->first, itr->second.empty() ? kNullKey : itr->second);
4949
}
5050
}
5151

CondFormats/L1TObjects/interface/L1TriggerKeyExt.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ class L1TriggerKeyExt {
4040

4141
/* Adds new record and type mapping to payload. If such exists, nothing happens */
4242
void add(const std::string& record, const std::string& type, const std::string& key) {
43-
m_recordToKey.insert(std::make_pair(record + "@" + type, key.empty() ? kNullKey : key));
43+
m_recordToKey.emplace(record + "@" + type, key.empty() ? kNullKey : key);
4444
}
4545

4646
void add(const RecordToKey& map) {
4747
for (RecordToKey::const_iterator itr = map.begin(); itr != map.end(); ++itr) {
48-
m_recordToKey.insert(std::make_pair(itr->first, itr->second.empty() ? kNullKey : itr->second));
48+
m_recordToKey.emplace(itr->first, itr->second.empty() ? kNullKey : itr->second);
4949
}
5050
}
5151

0 commit comments

Comments
 (0)