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
10 changes: 10 additions & 0 deletions PWGLF/Tasks/Resonances/phiflowder.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 PWGLF/Tasks/Resonances/phiflowder.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 @@ -84,6 +84,10 @@
histos.add("hpQypvscent", "hpQypvscent", HistType::kTHnSparseF, {axisCent, axisV1}, true);
histos.add("hpQytvscent", "hpQytvscent", HistType::kTHnSparseF, {axisCent, axisV1}, true);
histos.add("hMixpairs", "hMixpairs", HistType::kTHnSparseF, {axisNPairs}, true);
histos.add("hSparseSameUx", "Same-event #Sigma u_{x};M;pT;centrality;eta", kTHnSparseF, {axisInvMass, axisPhiPt, axisCent, axisEta, axisV1}, true);
histos.add("hSparseSameUy", "Same-event #Sigma u_{y};M;pT;centrality;eta", kTHnSparseF, {axisInvMass, axisPhiPt, axisCent, axisEta, axisV1}, true);
histos.add("hSparseSameUQA", "Same-event #Sigma u#upoint Q_{A};M;pT;centrality;eta", kTHnSparseF, {axisInvMass, axisPhiPt, axisCent, axisEta, axisV1}, true);
histos.add("hSparseSameUQC", "Same-event #Sigma u#upoint Q_{C};M;pT;centrality;eta", kTHnSparseF, {axisInvMass, axisPhiPt, axisCent, axisEta, axisV1}, true);
}

uint8_t getRequiredPidBit() const
Expand Down Expand Up @@ -184,7 +188,7 @@
float etaCand = phiCandidate.Eta();
double phiCand = phiCandidate.Phi();
if (phiCand < 0.0) {
phiCand += 2.0 * TMath::Pi();

Check failure on line 191 in PWGLF/Tasks/Resonances/phiflowder.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[two-pi-add-subtract]

Use RecoDecay::constrainAngle to restrict angle to a given range.
}
double const cosNPhi = std::cos(phiCand);
double const sinNPhi = std::sin(phiCand);
Expand Down Expand Up @@ -282,7 +286,7 @@
const float etaCand = phiCandidate.Eta();
double phiCand = phiCandidate.Phi();
if (phiCand < 0.0) {
phiCand += 2.0 * TMath::Pi();

Check failure on line 289 in PWGLF/Tasks/Resonances/phiflowder.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[two-pi-add-subtract]

Use RecoDecay::constrainAngle to restrict angle to a given range.
}
double const cosNPhi = std::cos(phiCand);
double const sinNPhi = std::sin(phiCand);
Expand All @@ -291,12 +295,18 @@
auto uy = sinNPhi; // imaginary part of candidate q vector
auto oddv1 = ux * (qxZDCA - qxZDCC) + uy * (qyZDCA - qyZDCC);
// auto evenv1 = ux * (qxZDCA + qxZDCC) + uy * (qyZDCA + qyZDCC);
auto uQA = ux * qxZDCA + uy * qyZDCA;
auto uQC = ux * qxZDCC + uy * qyZDCC;

if (phiMass < massMin || phiMass > massMax) {
continue;
}

histos.fill(HIST("hSparseSame"), phiMass, phiPt, centrality, etaCand, oddv1);
histos.fill(HIST("hSparseSameUx"), phiMass, phiPt, centrality, etaCand, ux);
histos.fill(HIST("hSparseSameUy"), phiMass, phiPt, centrality, etaCand, uy);
histos.fill(HIST("hSparseSameUQA"), phiMass, phiPt, centrality, etaCand, uQA);
histos.fill(HIST("hSparseSameUQC"), phiMass, phiPt, centrality, etaCand, uQC);
// nPhiSame++;
}
}
Expand Down
Loading