Skip to content

Commit

Permalink
LHEPtFilter: apply code checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgilbert committed Dec 4, 2019
1 parent b2f8377 commit 2587c08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions GeneratorInterface/GenFilters/plugins/LHEPtFilter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
class LHEPtFilter : public edm::EDFilter {
public:
explicit LHEPtFilter(const edm::ParameterSet&);
~LHEPtFilter();
~LHEPtFilter() override;

private:
virtual bool filter(edm::Event&, const edm::EventSetup&);
virtual void endJob();
bool filter(edm::Event&, const edm::EventSetup&) override;
void endJob() override;

// ----------member data ---------------------------

Expand Down Expand Up @@ -100,7 +100,7 @@ bool LHEPtFilter::filter(edm::Event& iEvent, const edm::EventSetup& iSetup)
}
}
double vpt_ = -1;
if (cands.size() >= 1) {
if (!cands.empty()) {
ROOT::Math::PxPyPzEVector tot = cands.at(0);
for (unsigned icand = 1; icand < cands.size(); ++icand) {
tot += cands.at(icand);
Expand Down

0 comments on commit 2587c08

Please sign in to comment.