Skip to content

Commit

Permalink
Apply clang-tidy automated code changes
Browse files Browse the repository at this point in the history
Enabled checks:
    boost-use-to-string
    misc-uniqueptr-reset-release
    modernize-deprecated-headers
    modernize-make-shared
    modernize-use-bool-literals
    modernize-use-equals-delete
    modernize-use-nullptr
    modernize-use-override
    performance-unnecessary-copy-initialization
    readability-container-size-empty
    readability-redundant-string-cstr
    readability-static-definition-in-anonymous-namespace
    readability-uniqueptr-delete-release
  • Loading branch information
fwyzard committed May 18, 2020
1 parent 28de4b2 commit 43885c6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace Rivet {
//@{

/// Book histograms and initialise projections before the run
void init() {
void init() override {
FinalState fs((Cuts::etaIn(-2.4, 2.4)));
declare(fs, "FS");

Expand Down Expand Up @@ -60,7 +60,7 @@ namespace Rivet {
}

/// Perform the per-event analysis
void analyze(const Event& event) {
void analyze(const Event& event) override {
const double weight = 1.0;

// Look at events with >= 2 jets
Expand Down Expand Up @@ -94,7 +94,7 @@ namespace Rivet {
}

/// Normalise histograms etc., after the run
void finalize() {
void finalize() override {
const double normalizationVal = 1000;
for (size_t i = 0; i < N_PT_BINS_dj; ++i) {
normalize(_h_ungroomedAvgJetMass_dj[i], normalizationVal);
Expand Down

0 comments on commit 43885c6

Please sign in to comment.