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
50 changes: 25 additions & 25 deletions PWGCF/MultiparticleCorrelations/Tasks/threeParticleCorrelations.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -816,15 +816,15 @@ struct ThreeParticleCorrelations {
{

if (confRDSwitch) {

auto proton = v0.template posTrack_as<MyFilteredTracks>();
if (v0Sign(v0) == -1) {
proton = v0.template negTrack_as<MyFilteredTracks>();
proton = v0.template negTrack_as<MyFilteredTracks>();
}

double dEta = proton.eta() - track.eta();
if (std::abs(dEta) > dEtaMin) {
return kTRUE;
return kTRUE;
}

double dPhiStar;
Expand All @@ -833,30 +833,30 @@ struct ThreeParticleCorrelations {
double phaseTrack = (-0.3 * B * track.sign()) / (2 * track.pt());

for (double r = rMin; r <= rMax; r += 0.01) {
dPhiStar = RecoDecay::constrainAngle(dPhi + std::asin(phaseProton * r) - std::asin(phaseTrack * r), -constants::math::PIHalf);

if (r == rMin) {
if (!Mix) {
rPhiStarRegistry.fill(HIST("hSEProtonPreCut"), dPhiStar, dEta);
} else {
rPhiStarRegistry.fill(HIST("hMEProtonPreCut"), dPhiStar, dEta);
}
}

if (std::abs(dPhiStar) < dPhiStarMin) {
return kFALSE;
}

if (r == rMin) {
if (!Mix) {
rPhiStarRegistry.fill(HIST("hSEProtonPostCut"), dPhiStar, dEta);
} else {
rPhiStarRegistry.fill(HIST("hMEProtonPostCut"), dPhiStar, dEta);
}
}
dPhiStar = RecoDecay::constrainAngle(dPhi + std::asin(phaseProton * r) - std::asin(phaseTrack * r), -constants::math::PIHalf);

if (r == rMin) {
if (!Mix) {
rPhiStarRegistry.fill(HIST("hSEProtonPreCut"), dPhiStar, dEta);
} else {
rPhiStarRegistry.fill(HIST("hMEProtonPreCut"), dPhiStar, dEta);
}
}

if (std::abs(dPhiStar) < dPhiStarMin) {
return kFALSE;
}

if (r == rMin) {
if (!Mix) {
rPhiStarRegistry.fill(HIST("hSEProtonPostCut"), dPhiStar, dEta);
} else {
rPhiStarRegistry.fill(HIST("hMEProtonPostCut"), dPhiStar, dEta);
}
}
}
}

return kTRUE;
}
};
Expand Down
Loading