Skip to content

Commit 7cd7a7b

Browse files
committed
Fix flowDeltav1SP lint issues
1 parent 21a340c commit 7cd7a7b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

PWGCF/Flow/Tasks/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ o2physics_add_dpl_workflow(flow-directed-flow-task
120120
COMPONENT_NAME Analysis)
121121

122122
o2physics_add_dpl_workflow(flow-deltav1-sp
123-
SOURCES flowDeltav1Sp.cxx
123+
SOURCES flowDeltav1SP.cxx
124124
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::GFWCore
125125
COMPONENT_NAME Analysis)
126126

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
#include <TProfile2D.h>
5454
#include <TProfile3D.h>
5555

56+
#include <algorithm>
5657
#include <chrono>
5758
#include <cmath>
5859
#include <cstdint>
@@ -899,7 +900,7 @@ struct FlowDeltav1SP {
899900
if (p < pBoundary) {
900901
// Only require TPC
901902
return std::abs(nSigmaTPC) < NSigmaTPC_Species;
902-
} else if (p >= pBoundary) {
903+
} else {
903904
// Require TPC and TOF
904905
return hasTOF && std::abs(nSigmaTPC) < NSigmaTPC_Species && std::abs(nSigmaTOF) < NSigmaTOF_Species;
905906
}
@@ -2397,4 +2398,4 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
23972398
{
23982399
return WorkflowSpec{
23992400
adaptAnalysisTask<FlowDeltav1SP>(cfgc)};
2400-
}
2401+
}

0 commit comments

Comments
 (0)