Skip to content

Commit

Permalink
clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodozov committed Jul 17, 2020
1 parent 3732aa7 commit 4c799fc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions DQMOffline/L1Trigger/src/HistDefinition.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ namespace dqmoffline {
std::vector<unsigned int> map_values;

map_values.reserve(mapping.size());
for (auto const &imap : mapping) {
for (auto const &imap : mapping) {
map_values.push_back(imap.second);
}
unsigned int max_size = *std::max_element(map_values.begin(), map_values.end());
max_size = std::max(max_size, (unsigned int)mapping.size());
definitions.resize(max_size);

for (const auto& name : names) {
for (const auto &name : names) {
if (mapping.find(name) != mapping.end()) {
const edm::ParameterSet &hd(ps.getParameter<edm::ParameterSet>(name));
definitions[mapping.at(name)] = HistDefinition(hd);
Expand Down
6 changes: 3 additions & 3 deletions DQMOffline/L1Trigger/src/L1TCommon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace dqmoffline {
const std::vector<std::string> &triggersInEvent) {
std::vector<unsigned int> triggerIndices;

for (const auto& requestedTriggerName : requestedTriggers) {
for (const auto &requestedTriggerName : requestedTriggers) {
std::string name(requestedTriggerName);
std::size_t wildcarPosition = name.find('*');
if (wildcarPosition != std::string::npos) {
Expand All @@ -20,7 +20,7 @@ namespace dqmoffline {
}

unsigned int triggerIndex = 0;
for (const auto& triggerName : triggersInEvent) {
for (const auto &triggerName : triggersInEvent) {
if (triggerName.find(name) != std::string::npos) {
triggerIndices.push_back(triggerIndex);
break;
Expand Down Expand Up @@ -77,7 +77,7 @@ namespace dqmoffline {
trigger::TriggerObjectCollection triggerObjects = triggerEvent.getObjects();
trigger::TriggerObjectCollection results;

for (const auto& filter : hltFilters) {
for (const auto &filter : hltFilters) {
const unsigned filterIndex = triggerEvent.filterIndex(filter);

if (filterIndex < triggerEvent.sizeFilters()) {
Expand Down
4 changes: 2 additions & 2 deletions DQMOffline/L1Trigger/src/L1TDiffHarvesting.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ namespace dqmoffline {

L1TDiffHarvesting::L1TDiffHarvesting(const edm::ParameterSet &ps) : plotHandlers_() {
using namespace std;
for (const auto& plotConfig : ps.getUntrackedParameter<std::vector<edm::ParameterSet>>("plotCfgs")) {
for (const auto &plotConfig : ps.getUntrackedParameter<std::vector<edm::ParameterSet>>("plotCfgs")) {
vector<string> plots = plotConfig.getUntrackedParameter<vector<string>>("plots");
for (const auto& plot : plots) {
for (const auto &plot : plots) {
plotHandlers_.push_back(L1TDiffPlotHandler(plotConfig, plot));
}
}
Expand Down
4 changes: 2 additions & 2 deletions DQMOffline/L1Trigger/src/L1TEfficiencyHarvesting.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ namespace dqmoffline {
edm::LogInfo("L1TEfficiencyHarvesting") << "____________ Storage initialization ____________ " << endl;
}

for (const auto& plotConfig : ps.getUntrackedParameter<std::vector<edm::ParameterSet>>("plotCfgs")) {
for (const auto &plotConfig : ps.getUntrackedParameter<std::vector<edm::ParameterSet>>("plotCfgs")) {
vector<string> plots = plotConfig.getUntrackedParameter<vector<string>>("plots");
for (const auto& plot : plots) {
for (const auto &plot : plots) {
plotHandlers_.push_back(L1TEfficiencyPlotHandler(plotConfig, plot));
}
}
Expand Down

0 comments on commit 4c799fc

Please sign in to comment.