Skip to content

Commit 5a5fbde

Browse files
authored
[PWGCF] Updated event selection and particle reconstruction in flowGFWOmegaXi.cxx
1 parent 0510b42 commit 5a5fbde

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

PWGCF/Flow/Tasks/flowGFWOmegaXi.cxx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ struct FlowGFWOmegaXi {
609609
float vtxz = -999;
610610
if (collision.numContrib() > 1) {
611611
vtxz = collision.posZ();
612-
float zRes = TMath::Sqrt(collision.covZZ());
612+
float zRes = std::sqrt(collision.covZZ());
613613
if (zRes > 0.25 && collision.numContrib() < 20)
614614
vtxz = -999;
615615
}
@@ -639,7 +639,7 @@ struct FlowGFWOmegaXi {
639639
void process(AodCollisions::iterator const& collision, aod::BCsWithTimestamps const&, AodTracks const& tracks, aod::CascDataExt const& Cascades, aod::V0Datas const& V0s, DaughterTracks const&)
640640
{
641641
int nTot = tracks.size();
642-
int candNum_all[4] = {0, 0, 0, 0};
642+
int candNumAll[4] = {0, 0, 0, 0};
643643
int candNum[4] = {0, 0, 0, 0};
644644
for (int i = 0; i < 4; i++) {
645645
registry.fill(HIST("hEventCount"), 0.5, i + 0.5);
@@ -701,7 +701,7 @@ struct FlowGFWOmegaXi {
701701
if (!setCurrentParticleWeights(weff, wacc, v0, vtxz, 1))
702702
continue;
703703
isK0s = true;
704-
candNum_all[0] = candNum_all[0] + 1;
704+
candNumAll[0] = candNumAll[0] + 1;
705705
registry.fill(HIST("hqaarm_podoafter"), v0.alpha(), v0.qtarm());
706706
}
707707
// Lambda and antiLambda
@@ -712,15 +712,15 @@ struct FlowGFWOmegaXi {
712712
if (!setCurrentParticleWeights(weff, wacc, v0, vtxz, 2))
713713
continue;
714714
isLambda = true;
715-
candNum_all[1] = candNum_all[1] + 1;
715+
candNumAll[1] = candNumAll[1] + 1;
716716
} else if (std::fabs(v0.y()) < 0.5 && std::fabs(v0.mLambda() - o2::constants::physics::MassLambda) < cfgv0_mlambdawindow &&
717717
(!cfgcheckDauTPC || (std::fabs(v0negdau.tpcNSigmaPr()) < cfgtpcNSigmaCascProton && std::fabs(v0posdau.tpcNSigmaPi()) < cfgtpcNSigmaCascPion)) &&
718718
(!cfgcheckDauTOF || ((std::fabs(v0negdau.tofNSigmaPr()) < cfgtofNSigmaCascProton || v0posdau.pt() < 0.4) && (std::fabs(v0posdau.tofNSigmaPi()) < cfgtofNSigmaCascPion || v0negdau.pt() < 0.4)))) {
719719
registry.fill(HIST("InvMassLambda_all"), v0.pt(), v0.mLambda(), v0.eta(), cent);
720720
if (!setCurrentParticleWeights(weff, wacc, v0, vtxz, 2))
721721
continue;
722722
isLambda = true;
723-
candNum_all[1] = candNum_all[1] + 1;
723+
candNumAll[1] = candNumAll[1] + 1;
724724
}
725725
// fill QA before cut
726726
registry.fill(HIST("hqaV0radiusbefore"), v0.v0radius());
@@ -797,15 +797,15 @@ struct FlowGFWOmegaXi {
797797
if (!setCurrentParticleWeights(weff, wacc, casc, vtxz, 4))
798798
continue;
799799
isOmega = true;
800-
candNum_all[3] = candNum_all[3] + 1;
800+
candNumAll[3] = candNumAll[3] + 1;
801801
} else if (casc.sign() < 0 && (casc.mOmega() > 1.63) && (casc.mOmega() < 1.71) && std::fabs(casc.yOmega()) < cfgCasc_rapidity &&
802802
(!cfgcheckDauTPC || (std::fabs(bachelor.tpcNSigmaKa()) < cfgtpcNSigmaCascKaon && std::fabs(negdau.tpcNSigmaPr()) < cfgtpcNSigmaCascProton && std::fabs(posdau.tpcNSigmaPi()) < cfgtpcNSigmaCascPion)) &&
803803
(!cfgcheckDauTOF || ((std::fabs(bachelor.tofNSigmaKa()) < cfgtofNSigmaCascKaon || bachelor.pt() < 0.4) && (std::fabs(negdau.tofNSigmaPr()) < cfgtofNSigmaCascProton || negdau.pt() < 0.4) && (std::fabs(posdau.tofNSigmaPi()) < cfgtofNSigmaCascPion || posdau.pt() < 0.4)))) {
804804
registry.fill(HIST("InvMassOmega_all"), casc.pt(), casc.mOmega(), casc.eta(), cent);
805805
if (!setCurrentParticleWeights(weff, wacc, casc, vtxz, 4))
806806
continue;
807807
isOmega = true;
808-
candNum_all[3] = candNum_all[3] + 1;
808+
candNumAll[3] = candNumAll[3] + 1;
809809
}
810810
// Xi and antiXi
811811
if (casc.sign() < 0 && (casc.mXi() > 1.30) && (casc.mXi() < 1.37) && std::fabs(casc.yXi()) < cfgCasc_rapidity &&
@@ -815,15 +815,15 @@ struct FlowGFWOmegaXi {
815815
if (!setCurrentParticleWeights(weff, wacc, casc, vtxz, 3))
816816
continue;
817817
isXi = true;
818-
candNum_all[2] = candNum_all[2] + 1;
818+
candNumAll[2] = candNumAll[2] + 1;
819819
} else if (casc.sign() < 0 && (casc.mXi() > 1.30) && (casc.mXi() < 1.37) && std::fabs(casc.yXi()) < cfgCasc_rapidity &&
820820
(!cfgcheckDauTPC || (std::fabs(bachelor.tpcNSigmaPi()) < cfgtpcNSigmaCascPion && std::fabs(posdau.tpcNSigmaPr()) < cfgtpcNSigmaCascProton && std::fabs(negdau.tpcNSigmaPi()) < cfgtpcNSigmaCascPion)) &&
821821
(!cfgcheckDauTOF || ((std::fabs(bachelor.tofNSigmaPi()) < cfgtofNSigmaCascPion || bachelor.pt() < 0.4) && (std::fabs(negdau.tofNSigmaPr()) < cfgtofNSigmaCascProton || negdau.pt() < 0.4) && (std::fabs(posdau.tofNSigmaPi()) < cfgtofNSigmaCascPion || posdau.pt() < 0.4)))) {
822822
registry.fill(HIST("InvMassXi_all"), casc.pt(), casc.mXi(), casc.eta(), cent);
823823
if (!setCurrentParticleWeights(weff, wacc, casc, vtxz, 3))
824824
continue;
825825
isXi = true;
826-
candNum_all[2] = candNum_all[2] + 1;
826+
candNumAll[2] = candNumAll[2] + 1;
827827
}
828828
// topological cut
829829
if (casc.cascradius() < cfgcasc_radius)
@@ -873,7 +873,7 @@ struct FlowGFWOmegaXi {
873873
}
874874
}
875875
for (int i = 0; i < 4; i++) {
876-
if (candNum_all[i] > 0) {
876+
if (candNumAll[i] > 0) {
877877
registry.fill(HIST("hEventCount"), 2.5, i + 0.5);
878878
}
879879
if (candNum[i] > 0) {

0 commit comments

Comments
 (0)