Skip to content

Commit 427fa35

Browse files
Fix compilation error introduced by github
1 parent 982ad77 commit 427fa35

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

PWGCF/MultiparticleCorrelations/Tasks/threeParticleCorrelations.cxx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -881,11 +881,6 @@ struct ThreeParticleCorrelations {
881881
template <class CollCand>
882882
bool acceptEvent(const CollCand& collision, bool FillHist) // Event filter
883883
{
884-
if (v0.pt() < v0PtMin || v0.pt() > v0PtMax)
885-
return false;
886-
if (std::abs(v0.eta()) > v0EtaMax)
887-
return false;
888-
889884
if (FillHist) {
890885
rQARegistry.fill(HIST("hNEvents"), 0.5);
891886
}
@@ -910,8 +905,12 @@ struct ThreeParticleCorrelations {
910905
template <class V0Cand>
911906
bool v0Filters(const V0Cand& v0, bool MCRec) // V0 filter
912907
{
913-
914908
if (!MCRec) { // Data
909+
if (v0.pt() < v0PtMin || v0.pt() > v0PtMax)
910+
return false;
911+
if (std::abs(v0.eta()) > v0EtaMax)
912+
return false;
913+
915914
if (v0Sign(v0) == 1) {
916915
const auto& posDaughter = v0.template posTrack_as<MyFilteredTracks>();
917916
if (std::abs(posDaughter.tpcNSigmaPr()) > nSigma4) {
@@ -924,6 +923,11 @@ struct ThreeParticleCorrelations {
924923
}
925924
}
926925
} else { // MC Reconstructed
926+
if (v0.pt() < v0PtMin || v0.pt() > v0PtMax)
927+
return false;
928+
if (std::abs(v0.eta()) > v0EtaMax)
929+
return false;
930+
927931
if (v0Sign(v0) == 1) {
928932
const auto& posDaughter = v0.template posTrack_as<MyFilteredMCTracks>();
929933
if (std::abs(posDaughter.tpcNSigmaPr()) > nSigma4) {

0 commit comments

Comments
 (0)