62 firstRunIOV_(
cfg.getParameter<unsigned
int>(
"firstRunIOV")),
63 lastRunIOV_(
cfg.getParameter<
int>(
"lastRunIOV")),
64 startEmpty_(
cfg.getParameter<
bool>(
"startEmpty")),
73 <<
"Writing to DB to be done only once, set\n"
74 <<
"'process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))'\n"
75 <<
" next time. But your writing is fine.)";
110 for (std::vector<std::string>::const_iterator iKey =
keys.begin(), endKey =
keys.end(); iKey != endKey; ++iKey) {
111 if (triggerMap.find(*iKey) != triggerMap.end()) {
116 triggerMap.erase(*iKey);
118 throw cms::Exception(
"BadConfig") <<
"[AlCaRecoTriggerBitsRcdUpdate::removeKeysFromMap] "
119 <<
"Cannot remove key '" << *iKey <<
"' since not in "
120 <<
"list - typo in configuration?\n";
130 std::vector<std::pair<std::string, std::string> > keyPairs;
131 keyPairs.reserve(alcarecoReplace.size());
133 for (
auto &iSet : alcarecoReplace) {
136 keyPairs.push_back(std::make_pair(oldKey, newKey));
139 for (
auto &iKey : keyPairs) {
140 if (triggerMap.find(iKey.first) != triggerMap.end()) {
141 std::string bitsToReplace = triggerMap[iKey.first];
142 triggerMap.erase(iKey.first);
143 triggerMap[iKey.second] = bitsToReplace;
146 <<
"[AlCaRecoTriggerBitsRcdUpdate::replaceKeysFromMap] "
147 <<
"Cannot replace key '" << iKey.first <<
"with " << iKey.second <<
" since not in "
148 <<
"list - typo in configuration?\n";
163 const std::vector<std::string>
paths(iSet->getParameter<std::vector<std::string> >(
"hltPaths"));
169 if (triggerMap.find(
filter) != triggerMap.end()) {
171 <<
"remove from 'triggerListsAdd' or "
172 <<
" add to 'listNamesRemove'.\n";
174 triggerMap[
filter] = mergedPaths;
186 throw cms::Exception(
"NotAvailable") <<
"PoolDBOutputService not available.\n";
198 throw cms::Exception(
"BadConfig") <<
"Tag already exists, can only append until infinity,"