-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[LLVM 9] Fixed build errors #28810
[LLVM 9] Fixed build errors #28810
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -192,7 +192,7 @@ class EnergyScaleCorrection_class { | |
void ReadSmearingFromFile(TString filename); ///< File structure: category constTerm alpha; | ||
public: | ||
inline void SetSmearingType(fileFormat_t value) { | ||
if (value >= 0 && value <= 1) { | ||
if (value <= 1) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
smearingType_ = value; | ||
} else { | ||
smearingType_ = UNKNOWN; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,7 +162,7 @@ bool HLTJetSortedVBFFilter<T>::hltFilter(edm::Event& event, | |
nJet++; | ||
// cout << "jetPt=" << jet->pt() << "\tjetEta=" << jet->eta() << "\tjetCSV=" << value << endl; | ||
} | ||
if (b1_idx >= sorted.size() || b1_idx < 0) | ||
if (b1_idx >= sorted.size()) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
edm::LogError("OutOfRange") << "b1 index out of range."; | ||
sorted.erase(sorted.begin() + b1_idx); //remove the most b-tagged jet from "sorted" | ||
sort(sorted.begin(), sorted.end(), comparator); //sort "sorted" by eta | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -171,7 +171,7 @@ void EnergyScaleCorrection::addSmearing(const std::string& category, | |
} | ||
|
||
void EnergyScaleCorrection::setSmearingType(FileFormat value) { | ||
if (value >= 0 && value <= 1) { | ||
if (value <= 1) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
smearingType_ = value; | ||
} else { | ||
smearingType_ = UNKNOWN; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,8 +168,6 @@ class DPFIsolation : public deep_tau::DeepTauBase { | |
|
||
if (p.pt() < 0.5) | ||
continue; | ||
if (p.fromPV() < 0) | ||
continue; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unless the check was supposed to be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ocolegrove @MRD2F @mbluj There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess it is fine the remove the |
||
if (deltaR_tau_p > 0.5) | ||
continue; | ||
if (p.fromPV() < 1 && p.charge() != 0) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can drop
|| c<0
part as it is alwaysfalse
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In principle the whole
if
statement seems to be redundant (unless something casts an integer into the enumeration without bounds checking)cmssw/CondFormats/PCLConfig/interface/AlignPCLThresholds.h
Line 14 in dcdf62c