Skip to content

Commit 243ff53

Browse files
authored
[PWGCF] add two subevent method for pt-pt correlations (#13787)
1 parent 9894c8b commit 243ff53

File tree

3 files changed

+477
-1
lines changed

3 files changed

+477
-1
lines changed

PWGCF/Flow/Tasks/flowTask.cxx

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ struct FlowTask {
7272
O2_DEFINE_CONFIGURABLE(cfgCutPtMin, float, 0.2f, "Minimal pT for all tracks")
7373
O2_DEFINE_CONFIGURABLE(cfgCutPtMax, float, 10.0f, "Maximal pT for all tracks")
7474
O2_DEFINE_CONFIGURABLE(cfgCutEta, float, 0.8f, "Eta range for tracks")
75-
O2_DEFINE_CONFIGURABLE(cfgEtaPtPt, float, 0.4, "eta cut for pt-pt correlations");
75+
O2_DEFINE_CONFIGURABLE(cfgEtaPtPt, float, 0.4, "eta range for pt-pt correlations")
76+
O2_DEFINE_CONFIGURABLE(cfgEtaGapPtPt, float, 0.2, "eta gap for pt-pt correlations, cfgEtaGapPtPt<|eta|<cfgEtaPtPt")
77+
O2_DEFINE_CONFIGURABLE(cfgEtaGapPtPtEnabled, bool, false, "switch of subevent pt-pt correlations")
7678
O2_DEFINE_CONFIGURABLE(cfgCutChi2prTPCcls, float, 2.5f, "max chi2 per TPC clusters")
7779
O2_DEFINE_CONFIGURABLE(cfgCutTPCclu, float, 50.0f, "minimum TPC clusters")
7880
O2_DEFINE_CONFIGURABLE(cfgCutTPCCrossedRows, float, 70.0f, "minimum TPC crossed rows")
@@ -508,6 +510,8 @@ struct FlowTask {
508510
fFCpt->setUseCentralMoments(cfgUseCentralMoments);
509511
fFCpt->setUseGapMethod(true);
510512
fFCpt->initialise(axisIndependent, cfgMpar, gfwConfigs, cfgNbootstrap);
513+
if (cfgEtaGapPtPtEnabled)
514+
fFCpt->initialiseSubevent(axisIndependent, cfgMpar, cfgNbootstrap);
511515
for (auto i = 0; i < gfwConfigs.GetSize(); ++i) {
512516
corrconfigsPtVn.push_back(fGFW->GetCorrelatorConfig(gfwConfigs.GetCorrs()[i], gfwConfigs.GetHeads()[i], gfwConfigs.GetpTDifs()[i]));
513517
}
@@ -642,6 +646,14 @@ struct FlowTask {
642646
{
643647
if (std::abs(track.eta()) < cfgEtaPtPt) {
644648
(dt == kGen) ? fFCptgen->fill(1., track.pt()) : fFCpt->fill(weff, track.pt());
649+
if (cfgEtaGapPtPtEnabled) {
650+
if (track.eta() < -1. * cfgEtaGapPtPt) {
651+
(dt == kGen) ? fFCptgen->fillSub1(1., track.pt()) : fFCpt->fillSub1(weff, track.pt());
652+
}
653+
if (track.eta() > cfgEtaGapPtPt) {
654+
(dt == kGen) ? fFCptgen->fillSub2(1., track.pt()) : fFCpt->fillSub2(weff, track.pt());
655+
}
656+
}
645657
}
646658
}
647659

@@ -651,6 +663,11 @@ struct FlowTask {
651663
(dt == kGen) ? fFCptgen->calculateCorrelations() : fFCpt->calculateCorrelations();
652664
(dt == kGen) ? fFCptgen->fillPtProfiles(centmult, rndm) : fFCpt->fillPtProfiles(centmult, rndm);
653665
(dt == kGen) ? fFCptgen->fillCMProfiles(centmult, rndm) : fFCpt->fillCMProfiles(centmult, rndm);
666+
if (cfgEtaGapPtPtEnabled) {
667+
(dt == kGen) ? fFCptgen->calculateSubeventCorrelations() : fFCpt->calculateSubeventCorrelations();
668+
(dt == kGen) ? fFCptgen->fillSubeventPtProfiles(centmult, rndm) : fFCpt->fillSubeventPtProfiles(centmult, rndm);
669+
(dt == kGen) ? fFCptgen->fillCMSubeventProfiles(centmult, rndm) : fFCpt->fillCMSubeventProfiles(centmult, rndm);
670+
}
654671
for (uint l_ind = 0; l_ind < corrconfigsPtVn.size(); ++l_ind) {
655672
if (!corrconfigsPtVn.at(l_ind).pTDif) {
656673
auto dnx = fGFW->Calculate(corrconfigsPtVn.at(l_ind), 0, kTRUE).real();

0 commit comments

Comments
 (0)