Skip to content
Merged
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
12 changes: 8 additions & 4 deletions PWGCF/Tasks/correlations.cxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check failure on line 1 in PWGCF/Tasks/correlations.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/workflow-file]

Name of a workflow file must match the name of the main struct in it (without the PWG prefix). (Class implementation files should be in "Core" directories.)
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand Down Expand Up @@ -122,6 +122,10 @@

ConfigurableAxis axisInvMass{"axisInvMass", {VARIABLE_WIDTH, 1.7, 1.75, 1.8, 1.85, 1.9, 1.95, 2.0, 5.0}, "invariant mass axis for histograms"};

ConfigurableAxis axisMultCorrCent{"axisMultCorrCent", {100, 0, 100}, "multiplicity correlation axis for centralities"};
ConfigurableAxis axisMultCorrV0{"axisMultCorrV0", {1000, 0, 100000}, "multiplicity correlation axis for V0 multiplicities"};
ConfigurableAxis axisMultCorrMult{"axisMultCorrMult", {1000, 0, 1000}, "multiplicity correlation axis for track multiplicities"};

// This filter is applied to AOD and derived data (column names are identical)
Filter collisionZVtxFilter = nabs(aod::collision::posZ) < cfgCutVertex;
// This filter is only applied to AOD
Expand Down Expand Up @@ -190,13 +194,13 @@
LOGF(fatal, "cfgMultCorrelationsMask can not be 0 when MultSet process functions are in use.");
std::vector<AxisSpec> multAxes;
if (cfgMultCorrelationsMask & aod::cfmultset::CentFT0C)
multAxes.emplace_back(100, 0, 100, "FT0C centrality");
multAxes.emplace_back(axisMultCorrCent, "FT0C centrality");
if (cfgMultCorrelationsMask & aod::cfmultset::MultFV0A)
multAxes.emplace_back(1000, 0, 100000, "V0A multiplicity");
multAxes.emplace_back(axisMultCorrV0, "V0A multiplicity");
if (cfgMultCorrelationsMask & aod::cfmultset::MultNTracksPV)
multAxes.emplace_back(100, 0, 1000, "Nch PV");
multAxes.emplace_back(axisMultCorrMult, "Nch PV");
if (cfgMultCorrelationsMask & aod::cfmultset::MultNTracksGlobal)
multAxes.emplace_back(100, 0, 1000, "Nch Global");
multAxes.emplace_back(axisMultCorrMult, "Nch Global");
registry.add("multCorrelations", "Multiplicity correlations", {HistType::kTHnSparseF, multAxes});
}
registry.add("multiplicity", "event multiplicity", {HistType::kTH1F, {{1000, 0, 100, "/multiplicity/centrality"}}});
Expand Down Expand Up @@ -391,7 +395,7 @@

if (cfgCorrelationMethod == 1 && track1.decay() != track2.decay())
continue;
if (cfgCorrelationMethod == 2 && track1.decay() == track2.decay())

Check failure on line 398 in PWGCF/Tasks/correlations.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.
continue;
registry.fill(HIST("invMassTwoPart"), track1.invMass(), track2.invMass(), track1.pt(), track2.pt(), multiplicity);
registry.fill(HIST("invMassTwoPartDPhi"), track1.invMass(), track2.invMass(), track1.pt(), track2.pt(), TVector2::Phi_0_2pi(track1.phi() - track2.phi() + TMath::Pi() / 2.0) - TMath::Pi() / 2.0);
Expand Down Expand Up @@ -649,7 +653,7 @@
if constexpr (std::experimental::is_detected<HasDecay, typename TTracks1::iterator>::value && std::experimental::is_detected<HasDecay, typename TTracks2::iterator>::value) {
if (cfgCorrelationMethod == 1 && track1.decay() != track2.decay())
continue;
if (cfgCorrelationMethod == 2 && track1.decay() == track2.decay())

Check failure on line 656 in PWGCF/Tasks/correlations.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.
continue;
}

Expand Down
Loading