Skip to content

Commit 5179f52

Browse files
committed
Add shift to flowSP
1 parent 8322a58 commit 5179f52

1 file changed

Lines changed: 17 additions & 9 deletions

File tree

PWGCF/Flow/Tasks/flowSP.cxx

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,13 @@ struct FlowSP {
118118
O2_DEFINE_CONFIGURABLE(cCentNGlobal, bool, false, "Set centrality estimator to CentNGlobal");
119119
// Standard selections
120120
O2_DEFINE_CONFIGURABLE(cTrackSelsDCAxy, float, 0.2, "Cut on DCA in the transverse direction (cm)");
121-
O2_DEFINE_CONFIGURABLE(cTrackSelsDCAz, float, 2, "Cut on DCA in the longitudinal direction (cm)");
121+
O2_DEFINE_CONFIGURABLE(cTrackSelsDCAz, float, 0.2, "Cut on DCA in the longitudinal direction (cm)");
122122
O2_DEFINE_CONFIGURABLE(cTrackSelsNcls, float, 70, "Cut on number of TPC clusters found");
123123
O2_DEFINE_CONFIGURABLE(cTrackSelsFshcls, float, 0.4, "Cut on fraction of shared TPC clusters found");
124124
O2_DEFINE_CONFIGURABLE(cTrackSelsPtmin, float, 0.2, "minimum pt (GeV/c)");
125125
O2_DEFINE_CONFIGURABLE(cTrackSelsPtmax, float, 10, "maximum pt (GeV/c)");
126126
O2_DEFINE_CONFIGURABLE(cTrackSelsEta, float, 0.8, "eta cut");
127-
O2_DEFINE_CONFIGURABLE(cIsMCReco, bool, true, "Is MC Reco");
127+
O2_DEFINE_CONFIGURABLE(cIsMCReco, bool, false, "Is MC Reco");
128128
O2_DEFINE_CONFIGURABLE(cEvSelsVtxZ, float, 10, "vertex cut (cm)");
129129
O2_DEFINE_CONFIGURABLE(cMagField, float, 99999, "Configurable magnetic field;default CCDB will be queried");
130130
O2_DEFINE_CONFIGURABLE(cCentMin, float, 0, "Minimum cenrality for selected events");
@@ -469,7 +469,8 @@ struct FlowSP {
469469
histos.add("QA/after/PsiA_vs_Vz", "", {HistType::kTH2D, {axisPhiPlane, axisVz}});
470470
histos.add("QA/after/PsiC_vs_Vz", "", {HistType::kTH2D, {axisPhiPlane, axisVz}});
471471
histos.add("QA/after/PsiFull_vs_Vz", "", {HistType::kTH2D, {axisPhiPlane, axisVz}});
472-
// histos.add("QA/after/DeltaPsivsPx", "", {HistType::kTH3D, {axisCent, axisPhiPlane, axisPx}});
472+
histos.add<TProfile3D>("shift/ShiftZDCC", "ShiftZDCC", kTProfile3D, {{100, 0, 100}, {2, 0, 2}, {10, 0, 10}});
473+
histos.add<TProfile3D>("shift/ShiftZDCA", "ShiftZDCA", kTProfile3D, {{100, 0, 100}, {2, 0, 2}, {10, 0, 10}});
473474
}
474475

475476
if (cfg.cFillQABefore) {
@@ -626,8 +627,7 @@ struct FlowSP {
626627
registry.add<TProfile3D>("incl/vnFull_EP", "", kTProfile3D, {axisPt, axisEtaVn, axisCentrality});
627628
}
628629
if (cfg.cFillEventPlaneQA) {
629-
histos.add<TH1>("QA/hSPplaneA", "hSPplaneA", kTH1D, {axisPhiPlane});
630-
histos.add<TH1>("QA/hSPplaneC", "hSPplaneC", kTH1D, {axisPhiPlane});
630+
histos.add<TH2>("QA/hSPplaneAC", "hSPplaneAC", kTH2D, {axisPhiPlane, axisPhiPlane});
631631
histos.add<TH1>("QA/hSPplaneFull", "hSPplaneFull", kTH1D, {axisPhiPlane});
632632
histos.add<TProfile>("QA/hCosPhiACosPhiC", "hCosPhiACosPhiC; Centrality(%); #LT Cos(#Psi^{A})Cos(#Psi^{C})#GT", kTProfile, {axisCent});
633633
histos.add<TProfile>("QA/hSinPhiASinPhiC", "hSinPhiASinPhiC; Centrality(%); #LT Sin(#Psi^{A})Sin(#Psi^{C})#GT", kTProfile, {axisCent});
@@ -706,6 +706,7 @@ struct FlowSP {
706706
int y2024 = 2024;
707707
std::array<int, 3> nSigma = {1, 2, 3};
708708

709+
709710
if (cfg.cUsePredeFinedSigma) {
710711
if (cfg.cUsePredeFinedSigmaYear == y2023) {
711712
if (cfg.cUsePredeFinedSigmaNsigma == nSigma[0]) {
@@ -1178,7 +1179,6 @@ struct FlowSP {
11781179
histos.fill(HIST("QA/") + HIST(Time[ft]) + HIST("/PsiA_vs_Vz"), psiA, collision.posZ(), spm.centWeight);
11791180
histos.fill(HIST("QA/") + HIST(Time[ft]) + HIST("/PsiC_vs_Vz"), psiC, collision.posZ(), spm.centWeight);
11801181
histos.fill(HIST("QA/") + HIST(Time[ft]) + HIST("/PsiFull_vs_Vz"), psiFull, collision.posZ(), spm.centWeight);
1181-
// histos.fill(HIST("QA/") + HIST(Time[ft]) + HIST("/DeltaPsivsPx"), spm.centrality, psiA - psiC - constants::math::PI, track.px(), spm.centWeight);
11821182
}
11831183
}
11841184
return;
@@ -1424,6 +1424,8 @@ struct FlowSP {
14241424
spm.psiA = 1.0 * std::atan2(spm.qyA, spm.qxA);
14251425
spm.psiC = 1.0 * std::atan2(spm.qyC, spm.qxC);
14261426

1427+
int nshift = 10; // no. of iterations
1428+
14271429
// https://twiki.cern.ch/twiki/pub/ALICE/DirectedFlowAnalysisNote/vn_ZDC_ALICE_INT_NOTE_version02.pdf
14281430
spm.psiFull = 1.0 * std::atan2(spm.qyA + spm.qyC, spm.qxA + spm.qxC);
14291431

@@ -1434,13 +1436,19 @@ struct FlowSP {
14341436
registry.fill(HIST("QQCorrelations/qAXYqCXY"), spm.centrality, spm.qyA * spm.qxC + spm.qxA * spm.qyC);
14351437
registry.fill(HIST("QQCorrelations/qAqCX"), spm.centrality, spm.qxA * spm.qxC);
14361438
registry.fill(HIST("QQCorrelations/qAqCY"), spm.centrality, spm.qyA * spm.qyC);
1439+
for (int ishift = 1; ishift <= nshift; ishift++) {
1440+
histos.fill(HIST("shift/ShiftZDCC"), spm.centrality, 0.5, ishift - 0.5, std::sin(ishift * 1.0 * spm.psiC));
1441+
histos.fill(HIST("shift/ShiftZDCC"), spm.centrality, 1.5, ishift - 0.5, std::cos(ishift * 1.0 * spm.psiC));
1442+
histos.fill(HIST("shift/ShiftZDCA"), spm.centrality, 0.5, ishift - 0.5, std::sin(ishift * 1.0 * spm.psiA));
1443+
histos.fill(HIST("shift/ShiftZDCA"), spm.centrality, 1.5, ishift - 0.5, std::cos(ishift * 1.0 * spm.psiA));
1444+
}
1445+
14371446

14381447
if (cfg.cFillEventQA) {
14391448
histos.fill(HIST("QA/hCentFull"), spm.centrality, 1);
14401449
}
14411450
if (cfg.cFillEventPlaneQA) {
1442-
histos.fill(HIST("QA/hSPplaneA"), spm.psiA, 1);
1443-
histos.fill(HIST("QA/hSPplaneC"), spm.psiC, 1);
1451+
histos.fill(HIST("QA/hSPplaneAC"), spm.psiA, spm.psiC, 1);
14441452
histos.fill(HIST("QA/hSPplaneFull"), spm.psiFull, 1);
14451453
histos.fill(HIST("QA/hCosPhiACosPhiC"), spm.centrality, std::cos(spm.psiA) * std::cos(spm.psiC));
14461454
histos.fill(HIST("QA/hSinPhiASinPhiC"), spm.centrality, std::sin(spm.psiA) * std::sin(spm.psiC));
@@ -1499,7 +1507,7 @@ struct FlowSP {
14991507
}
15001508

15011509
// Always fill centrality histogram after event selections!
1502-
histos.fill(HIST("hCentralityCW"), spm.centrality);
1510+
histos.fill(HIST("hCentralityCW"), spm.centrality, spm.centWeight);
15031511

15041512
fillEventQA<kAfter>(collision, tracks);
15051513

0 commit comments

Comments
 (0)