Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions PWGLF/Tasks/Resonances/f0980pbpbanalysis.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@
Configurable<int> cfgTrackIndexSelType{"cfgTrackIndexSelType", 1, "Index selection type"};
Configurable<double> cMaxTiednSigmaPion{"cMaxTiednSigmaPion", 3.0, "Combined nSigma cut for Pion"};


ConfigurableAxis massAxis{"massAxis", {400, 0.2, 2.2}, "Invariant mass axis"};
ConfigurableAxis ptAxis{"ptAxis", {VARIABLE_WIDTH, 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.8, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5, 5.0, 6.0, 7.0, 8.0, 10.0, 13.0, 20.0}, "Transverse momentum Binning"};
ConfigurableAxis centAxis{"centAxis", {VARIABLE_WIDTH, 0, 5, 10, 20, 30, 40, 50, 60, 70, 80, 100}, "Centrality interval"};
Expand Down Expand Up @@ -242,7 +241,7 @@
if (!collision.selection_bit(aod::evsel::kNoSameBunchPileup)) {
return 0;
}
if (cfgQvecSel && (collision.qvecAmp()[detId] < 1e-4 || collision.qvecAmp()[refAId] < 1e-4 || collision.qvecAmp()[refBId] < 1e-4)) {

Check failure on line 244 in PWGLF/Tasks/Resonances/f0980pbpbanalysis.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
return 0;
}
if (cfgOccupancySel && (collision.trackOccupancyInTimeRange() > cfgOccupancyMax || collision.trackOccupancyInTimeRange() < cfgOccupancyMin)) {
Expand Down Expand Up @@ -347,7 +346,7 @@
return 1;
}

template<typename TrackType1, typename TrackType2>
template <typename TrackType1, typename TrackType2>
bool indexSelection(const TrackType1 track1, const TrackType2 track2)
{
if (cfgTrackIndexSelType == IndexSelList::woSame) {
Expand All @@ -357,7 +356,7 @@
} else if (cfgTrackIndexSelType == IndexSelList::leq) {
if (track2.globalIndex() <= track1.globalIndex()) {
return 0;
}
}
}
return 1;
}
Expand Down Expand Up @@ -577,4 +576,5 @@
{
return WorkflowSpec{
adaptAnalysisTask<F0980pbpbanalysis>(cfgc)};
}
}

Check failure on line 580 in PWGLF/Tasks/Resonances/f0980pbpbanalysis.cxx

View workflow job for this annotation

GitHub Actions / PR formatting / whitespace

Trailing spaces

Remove the trailing spaces at the end of the line.
Loading