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
39 changes: 24 additions & 15 deletions PWGCF/Flow/Tasks/flowDirectedFlowTask.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/Flow/Tasks/flowDirectedFlowTask.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 @@ -156,37 +156,37 @@

histos.add("hpResCosAC", "cos(#Psi_{A}-#Psi_{C}) vs centrality", kTH3F, {{centAxis}, {resAxis}, {q1Axis}});
histos.add("hpDotAC", "Q_{A}#upoint Q_{C} vs centrality", kTH3F, {{centAxis}, {qAxis}, {q1Axis}});
histos.add("hpResDotAC", "Q_{A}#upoint Q_{C} vs centrality", kTH3F, {{centAxis}, {qAxis}, {q1Axis}});
histos.add("hpQxAQxC", "QxA QxC", kTH2F, {{centAxis}, {resAxis}});
histos.add("hpQyAQyC", "QyA QyC", kTH2F, {{centAxis}, {resAxis}});
histos.add("hpQxAQyC", "QxA QyC", kTH2F, {{centAxis}, {resAxis}});
histos.add("hpQxCQyA", "QxC QyA", kTH2F, {{centAxis}, {resAxis}});
histos.add("hpResDotAC", "Q_{A}#upoint Q_{C} vs centrality", kTH3F, {{centAxis}, {resAxis}, {q1Axis}});
histos.add("hpQxAQxC", "QxA QxC", kTH3F, {{centAxis}, {qAxis}, {q1Axis}});
histos.add("hpQyAQyC", "QyA QyC", kTH3F, {{centAxis}, {qAxis}, {q1Axis}});
histos.add("hpQxAQyC", "QxA QyC", kTH3F, {{centAxis}, {qAxis}, {q1Axis}});
histos.add("hpQxCQyA", "QxC QyA", kTH3F, {{centAxis}, {qAxis}, {q1Axis}});

std::vector<AxisSpec> axesV1SP = {centAxis, ptAxis, etaAxis, q1Axis, spAxis};
std::vector<AxisSpec> axesV1EP = {centAxis, ptAxis, etaAxis, q1Axis, polAxis};

histos.add("hV1SPFullQ1", "charged v1 SP numerator u#upoint(QC-QA) vs q1", HistType::kTHnSparseF, axesV1SP, true);
histos.add("hV1SPxxFullQ1", "charged v1 SP numerator u#upoint(QC-QA) vs q1 for x", HistType::kTHnSparseF, axesV1SP, true);
histos.add("hV1SPyyFullQ1", "charged v1 SP numerator u#upoint(QC-QA) vs q1 for y", HistType::kTHnSparseF, axesV1SP, true);
histos.add("hV1SPAQ1", "charged v1 SP numerator u#upointQA vs q1", HistType::kTHnSparseF, axesV1SP, true);
histos.add("hV1SPCQ1", "charged v1 SP numerator u#upointQC vs q1", HistType::kTHnSparseF, axesV1SP, true);

histos.add("hV1EPFullQ1", "charged v1 EP QA cos(phi-PsiZDC) vs q1", HistType::kTHnSparseF, axesV1EP, true);
histos.add("hV1EPAQ1", "charged v1 EP QA cos(phi-PsiA) vs q1", HistType::kTHnSparseF, axesV1EP, true);
histos.add("hV1EPCQ1", "charged v1 EP QA cos(phi-PsiC) vs q1", HistType::kTHnSparseF, axesV1EP, true);

std::vector<AxisSpec> axesPolSPQ1 = {massAxis, ptAxis, spAxis, centAxis, q1Axis};

histos.add("hSparseLambdaPolSPQ1", "Lambda SP polarization numerator vs q1", HistType::kTHnSparseF, axesPolSPQ1, true);
histos.add("hSparseLambdaPolSPwgtQ1", "Lambda SP polarization numerator / acceptance vs q1", HistType::kTHnSparseF, axesPolSPQ1, true);
histos.add("hSparseLambdaPolSPuxQ1", "Lambda SP polarization numerator vs q1 for x", HistType::kTHnSparseF, axesPolSPQ1, true);
histos.add("hSparseLambdaPolSPuyQ1", "Lambda SP polarization numerator vs q1 for y", HistType::kTHnSparseF, axesPolSPQ1, true);

histos.add("hSparseLambdaPolSPAQ1", "Lambda SP polarization numerator A vs q1", HistType::kTHnSparseF, axesPolSPQ1, true);
histos.add("hSparseLambdaPolSPCQ1", "Lambda SP polarization numerator C vs q1", HistType::kTHnSparseF, axesPolSPQ1, true);
histos.add("hSparseLambdaPolSPAwgtQ1", "Lambda SP polarization numerator A / acceptance vs q1", HistType::kTHnSparseF, axesPolSPQ1, true);
histos.add("hSparseLambdaPolSPCwgtQ1", "Lambda SP polarization numerator C / acceptance vs q1", HistType::kTHnSparseF, axesPolSPQ1, true);

histos.add("hSparseAntiLambdaPolSPQ1", "AntiLambda SP polarization numerator vs q1", HistType::kTHnSparseF, axesPolSPQ1, true);
histos.add("hSparseAntiLambdaPolSPwgtQ1", "AntiLambda SP polarization numerator / acceptance vs q1", HistType::kTHnSparseF, axesPolSPQ1, true);
histos.add("hSparseAntiLambdaPolSPAQ1", "AntiLambda SP polarization numerator A vs q1", HistType::kTHnSparseF, axesPolSPQ1, true);
histos.add("hSparseAntiLambdaPolSPCQ1", "AntiLambda SP polarization numerator C vs q1", HistType::kTHnSparseF, axesPolSPQ1, true);
histos.add("hSparseAntiLambdaPolSPAwgtQ1", "AntiLambda SP polarization numerator A / acceptance vs q1", HistType::kTHnSparseF, axesPolSPQ1, true);
histos.add("hSparseAntiLambdaPolSPCwgtQ1", "AntiLambda SP polarization numerator C / acceptance vs q1", HistType::kTHnSparseF, axesPolSPQ1, true);

histos.add("hSparseLambdaPolEPQ1", "Lambda EP QA sin(phi*-PsiZDC) vs q1", HistType::kTHnSparseF, axesPolSPQ1, true);
histos.add("hSparseLambdaPolEPAQ1", "Lambda EP QA sin(phi*-PsiA) vs q1", HistType::kTHnSparseF, axesPolSPQ1, true);
Expand Down Expand Up @@ -271,9 +271,9 @@

if (cfgq1mode == 1) {
q1 = q1A;
} else if (cfgq1mode == 2) {

Check failure on line 274 in PWGCF/Flow/Tasks/flowDirectedFlowTask.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.
q1 = q1C;
} else if (cfgq1mode == 3) {

Check failure on line 276 in PWGCF/Flow/Tasks/flowDirectedFlowTask.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.
q1 = q1Mean;
} else {
q1 = q1Full;
Expand Down Expand Up @@ -446,6 +446,9 @@

if (isLambda) {
histos.fill(HIST("hSparseLambdaPolSPQ1"), mass, v0.pt(), polSP, centrality, q1, wgt);
histos.fill(HIST("hSparseLambdaPolSPuyQ1"), mass, v0.pt(), uy * qxFull / accDen, centrality, q1, wgt);
histos.fill(HIST("hSparseLambdaPolSPuxQ1"), mass, v0.pt(), ux * qyFull / accDen, centrality, q1, wgt);

histos.fill(HIST("hSparseLambdaPolSPAQ1"), mass, v0.pt(), polSP_A, centrality, q1, wgt);
histos.fill(HIST("hSparseLambdaPolSPCQ1"), mass, v0.pt(), polSP_C, centrality, q1, wgt);

Expand All @@ -462,6 +465,9 @@
histos.fill(HIST("hSparseLambdaAvgUyQ1"), mass, v0.pt(), uy, centrality, q1, wgt);
} else {
histos.fill(HIST("hSparseAntiLambdaPolSPQ1"), mass, v0.pt(), polSP, centrality, q1, wgt);
histos.fill(HIST("hSparseAntiLambdaPolSPuxQ1"), mass, v0.pt(), uy * qxFull / accDen, centrality, q1, wgt);
histos.fill(HIST("hSparseAntiLambdaPolSPuyQ1"), mass, v0.pt(), ux * qyFull / accDen, centrality, q1, wgt);

histos.fill(HIST("hSparseAntiLambdaPolSPAQ1"), mass, v0.pt(), polSP_A, centrality, q1, wgt);
histos.fill(HIST("hSparseAntiLambdaPolSPCQ1"), mass, v0.pt(), polSP_C, centrality, q1, wgt);

Expand Down Expand Up @@ -519,10 +525,10 @@
histos.fill(HIST("hpResCosAC"), centrality, std::cos(psiA - psiC), q1);
histos.fill(HIST("hpDotAC"), centrality, dotAC, q1);
histos.fill(HIST("hpResDotAC"), centrality, resDot, q1);
histos.fill(HIST("hpQxAQxC"), centrality, qxA * qxC);
histos.fill(HIST("hpQyAQyC"), centrality, qyA * qyC);
histos.fill(HIST("hpQxAQyC"), centrality, qxA * qyC);
histos.fill(HIST("hpQxCQyA"), centrality, qxC * qyA);
histos.fill(HIST("hpQxAQxC"), centrality, qxA * qxC, q1);
histos.fill(HIST("hpQyAQyC"), centrality, qyA * qyC, q1);
histos.fill(HIST("hpQxAQyC"), centrality, qxA * qyC, q1);
histos.fill(HIST("hpQxCQyA"), centrality, qxC * qyA, q1);

for (const auto& track : tracks) {
if (!selectV1Track(track)) {
Expand All @@ -538,6 +544,9 @@
float v1SPC = ux * qxC + uy * qyC;

histos.fill(HIST("hV1SPFullQ1"), centrality, track.pt(), track.eta(), q1, v1SPFull);
histos.fill(HIST("hV1SPxxFullQ1"), centrality, track.pt(), track.eta(), q1, ux * qxFull);
histos.fill(HIST("hV1SPyyFullQ1"), centrality, track.pt(), track.eta(), q1, uy * qyFull);

histos.fill(HIST("hV1SPAQ1"), centrality, track.pt(), track.eta(), q1, v1SPA);
histos.fill(HIST("hV1SPCQ1"), centrality, track.pt(), track.eta(), q1, v1SPC);

Expand Down
Loading