File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
CondFormats/L1TObjects/interface Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments