Skip to content

Commit 18bb191

Browse files
cnkosteralibuild
andauthored
[PWGCF] Add shift to flowSP (#16812)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent ac43779 commit 18bb191

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

PWGCF/Flow/Tasks/flowSP.cxx

Lines changed: 15 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,6 @@ 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}});
473472
}
474473

475474
if (cfg.cFillQABefore) {
@@ -571,6 +570,8 @@ struct FlowSP {
571570
registry.add<TProfile>("QQCorrelations/qAXqCY", "", kTProfile, {axisCent});
572571
registry.add<TProfile>("QQCorrelations/qAYqCX", "", kTProfile, {axisCent});
573572
registry.add<TProfile>("QQCorrelations/qAXYqCXY", "", kTProfile, {axisCent});
573+
registry.add<TProfile3D>("shift/ShiftZDCC", "ShiftZDCC", kTProfile3D, {{100, 0, 100}, {2, 0, 2}, {10, 0, 10}});
574+
registry.add<TProfile3D>("shift/ShiftZDCA", "ShiftZDCA", kTProfile3D, {{100, 0, 100}, {2, 0, 2}, {10, 0, 10}});
574575

575576
if (cfg.cFillGeneralV1Histos) {
576577
// track properties per centrality and per eta, pt bin
@@ -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});
@@ -1178,7 +1178,6 @@ struct FlowSP {
11781178
histos.fill(HIST("QA/") + HIST(Time[ft]) + HIST("/PsiA_vs_Vz"), psiA, collision.posZ(), spm.centWeight);
11791179
histos.fill(HIST("QA/") + HIST(Time[ft]) + HIST("/PsiC_vs_Vz"), psiC, collision.posZ(), spm.centWeight);
11801180
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);
11821181
}
11831182
}
11841183
return;
@@ -1424,6 +1423,8 @@ struct FlowSP {
14241423
spm.psiA = 1.0 * std::atan2(spm.qyA, spm.qxA);
14251424
spm.psiC = 1.0 * std::atan2(spm.qyC, spm.qxC);
14261425

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

@@ -1434,13 +1435,18 @@ struct FlowSP {
14341435
registry.fill(HIST("QQCorrelations/qAXYqCXY"), spm.centrality, spm.qyA * spm.qxC + spm.qxA * spm.qyC);
14351436
registry.fill(HIST("QQCorrelations/qAqCX"), spm.centrality, spm.qxA * spm.qxC);
14361437
registry.fill(HIST("QQCorrelations/qAqCY"), spm.centrality, spm.qyA * spm.qyC);
1438+
for (int ishift = 1; ishift <= nshift; ishift++) {
1439+
registry.fill(HIST("shift/ShiftZDCC"), spm.centrality, 0.5, ishift - 0.5, std::sin(ishift * 1.0 * spm.psiC));
1440+
registry.fill(HIST("shift/ShiftZDCC"), spm.centrality, 1.5, ishift - 0.5, std::cos(ishift * 1.0 * spm.psiC));
1441+
registry.fill(HIST("shift/ShiftZDCA"), spm.centrality, 0.5, ishift - 0.5, std::sin(ishift * 1.0 * spm.psiA));
1442+
registry.fill(HIST("shift/ShiftZDCA"), spm.centrality, 1.5, ishift - 0.5, std::cos(ishift * 1.0 * spm.psiA));
1443+
}
14371444

14381445
if (cfg.cFillEventQA) {
14391446
histos.fill(HIST("QA/hCentFull"), spm.centrality, 1);
14401447
}
14411448
if (cfg.cFillEventPlaneQA) {
1442-
histos.fill(HIST("QA/hSPplaneA"), spm.psiA, 1);
1443-
histos.fill(HIST("QA/hSPplaneC"), spm.psiC, 1);
1449+
histos.fill(HIST("QA/hSPplaneAC"), spm.psiA, spm.psiC, 1);
14441450
histos.fill(HIST("QA/hSPplaneFull"), spm.psiFull, 1);
14451451
histos.fill(HIST("QA/hCosPhiACosPhiC"), spm.centrality, std::cos(spm.psiA) * std::cos(spm.psiC));
14461452
histos.fill(HIST("QA/hSinPhiASinPhiC"), spm.centrality, std::sin(spm.psiA) * std::sin(spm.psiC));
@@ -1499,7 +1505,7 @@ struct FlowSP {
14991505
}
15001506

15011507
// Always fill centrality histogram after event selections!
1502-
histos.fill(HIST("hCentralityCW"), spm.centrality);
1508+
histos.fill(HIST("hCentralityCW"), spm.centrality, spm.centWeight);
15031509

15041510
fillEventQA<kAfter>(collision, tracks);
15051511

0 commit comments

Comments
 (0)