Skip to content

Commit 7135505

Browse files
authored
Merge pull request #45428 from iarspider/lheinfo-process-compare-early
Fixes for CLANG_X+CPP20
2 parents b4c347a + 4faa031 commit 7135505

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

GeneratorInterface/LHEInterface/src/LHERunInfo.cc

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ static int skipWhitespace(std::istream &in) {
3434
}
3535

3636
namespace lhef {
37+
const bool operator==(const LHERunInfo::Process &lhs, const LHERunInfo::Process &rhs) {
38+
return (lhs.process() == rhs.process());
39+
}
40+
41+
const bool operator<(const LHERunInfo::Process &lhs, const LHERunInfo::Process &rhs) {
42+
return (lhs.process() < rhs.process());
43+
}
3744

3845
LHERunInfo::LHERunInfo(std::istream &in) {
3946
in >> heprup.IDBMUP.first >> heprup.IDBMUP.second >> heprup.EBMUP.first >> heprup.EBMUP.second >>
@@ -528,12 +535,4 @@ namespace lhef {
528535
return std::make_pair(pdfA, pdfB);
529536
}
530537

531-
const bool operator==(const LHERunInfo::Process &lhs, const LHERunInfo::Process &rhs) {
532-
return (lhs.process() == rhs.process());
533-
}
534-
535-
const bool operator<(const LHERunInfo::Process &lhs, const LHERunInfo::Process &rhs) {
536-
return (lhs.process() < rhs.process());
537-
}
538-
539538
} // namespace lhef

RecoTracker/FinalTrackSelectors/interface/TrackMVAClassifier.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifndef RecoTracker_FinalTrackSelectors_TrackMVAClassifierBase_h
22
#define RecoTracker_FinalTrackSelectors_TrackMVAClassifierBase_h
33

4+
#include "DataFormats/TrackReco/interface/Track.h"
45
#include "DataFormats/TrackReco/interface/TrackFwd.h"
56
#include "DataFormats/VertexReco/interface/VertexFwd.h"
67
#include "DataFormats/BeamSpot/interface/BeamSpot.h"

0 commit comments

Comments
 (0)