You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Checking that the V0 is a true K0s/Lambdas/Antilambdas and then filling the parameter histograms and the invariant mass plots for different cuts (which are taken from namespace)
if (!acceptV0(v0, posDaughterTrack, negDaughterTrack, collision)) { // V0 Selections
834
+
if (!acceptV0(v0, posDaughterTrack, negDaughterTrack, mcCollision)) { // V0 Selections
829
835
continue;
830
836
}
831
837
// kzero analysis
832
838
if (kzeroAnalysis == true) {
833
-
if (acceptK0sh(v0, posDaughterTrack, negDaughterTrack, collision)) { // K0sh Selection
839
+
if (acceptK0sh(v0, posDaughterTrack, negDaughterTrack, mcCollision)) { // K0sh Selection
834
840
// K0sh Signal Split Numerator Start
835
841
for (int i = 0; i < nKaonHistograms; i++) {
836
842
if (kaonptedgevalues[i] <= v0.pt() && v0.pt() < kaonptedgevalues[i + 1]) { // finding v0s with pt within the range of our bin edges for K0sh Splitting Numerator
837
-
pthistos::kaonSplit[i]->Fill(v0.mK0Short(), collision.centFT0M());// filling the k0s namespace histograms for K0sh Splitting Numerator
843
+
pthistos::kaonSplit[i]->Fill(v0.mK0Short(), mcCollision.centFT0M()); // filling the k0s namespace histograms for K0sh Splitting Numerator
838
844
}
839
845
}
840
846
// K0sh Signla Split Numerator End
@@ -844,17 +850,17 @@ struct V0PtInvMassPlots {
844
850
if (v0mcParticle.isPhysicalPrimary()) {
845
851
for (int i = 0; i < nKaonHistograms; i++) {
846
852
if (kaonptedgevalues[i] <= v0.pt() && v0.pt() < kaonptedgevalues[i + 1]) { // finding v0s with pt within the range of our bin edges
847
-
pthistos::kaonPt[i]->Fill(v0.mK0Short(), collision.centFT0M());// filling the k0s namespace histograms
853
+
pthistos::kaonPt[i]->Fill(v0.mK0Short(), mcCollision.centFT0M()); // filling the k0s namespace histograms
848
854
}
849
855
}
850
856
}
851
857
if (!v0mcParticle.isPhysicalPrimary()) {
852
858
auto v0mothers = v0mcParticle.mothers_as<aod::McParticles>(); // Get mothers
853
859
if (!v0mothers.empty()) {
854
860
auto& v0mcParticleMother = v0mothers.front(); // First mother
rPtAnalysis.fill(HIST("hNRecEvents"), 0.5, collision.centFT0M()); // Number of recorded events
982
988
for (constauto& v0 : V0s) {
983
989
// Checking that the V0 is a true K0s/Lambdas/Antilambdas and then filling the parameter histograms and the invariant mass plots for different cuts (which are taken from namespace)
rPtAnalysis.fill(HIST("hNRecEvents"), 0.5, collision.centFT0M()); // Number of recorded events
1056
1062
for (constauto& v0 : V0s) {
1057
1063
// Checking that the V0 is a true K0s/Lambdas/Antilambdas and then filling the parameter histograms and the invariant mass plots for different cuts (which are taken from namespace)
@@ -1092,10 +1098,9 @@ struct V0PtInvMassPlots {
1092
1098
}
1093
1099
}
1094
1100
}
1095
-
// This is the Process for the MC reconstructed Data
// Checking that the V0 is a true K0s/Lambdas/Antilambdas and then filling the parameter histograms and the invariant mass plots for different cuts (which are taken from namespace)
@@ -1139,18 +1144,18 @@ struct V0PtInvMassPlots {
1139
1144
if (acceptK0sh(v0, posDaughterTrack, negDaughterTrack, collision)) { // K0sh Selection
1140
1145
// K0sh Signal Split Numerator Start
1141
1146
for (int i = 0; i < nKaonHistograms; i++) {
1142
-
if (kaonptedgevalues[i] <= v0.pt() && v0.pt() < kaonptedgevalues[i + 1]) { // finding v0s with pt within the range of our bin edges for K0sh Splitting Numerator
1143
-
pthistos::kaonSplit[i]->Fill(v0.mK0Short(), collision.centFT0M()); // filling the k0s namespace histograms for K0sh Splitting Numerator
1147
+
if (kaonptedgevalues[i] <= v0.ptMC() && v0.ptMC() < kaonptedgevalues[i + 1]) { // finding v0s with pt within the range of our bin edges for K0sh Splitting Numerator
1148
+
pthistos::kaonSplit[i]->Fill(v0.mK0Short(), collision.centFT0M()); // filling the k0s namespace histograms for K0sh Splitting Numerator
1144
1149
}
1145
1150
}
1146
-
// K0sh Signla Split Numerator End
1151
+
// K0sh SignaL Split Numerator End
1147
1152
if (v0.has_v0MCCore()) {
1148
1153
auto v0mcParticle = v0.v0MCCore_as<aod::V0MCCores>();
1149
1154
if (dotruthk0sh && (v0mcParticle.pdgCode() == kK0Short)) { // kzero matched
1150
1155
if (v0mcParticle.isPhysicalPrimary()) {
1151
1156
for (int i = 0; i < nKaonHistograms; i++) {
1152
-
if (kaonptedgevalues[i] <= v0.pt() && v0.pt() < kaonptedgevalues[i + 1]) { // finding v0s with pt within the range of our bin edges
1153
-
pthistos::kaonPt[i]->Fill(v0.mK0Short(), collision.centFT0M()); // filling the k0s namespace histograms
1157
+
if (kaonptedgevalues[i] <= v0.ptMC() && v0.ptMC() < kaonptedgevalues[i + 1]) { // finding v0s with pt within the range of our bin edges
1158
+
pthistos::kaonPt[i]->Fill(v0.mK0Short(), collision.centFT0M()); // filling the k0s namespace histograms
1154
1159
}
1155
1160
}
1156
1161
}
@@ -1170,7 +1175,7 @@ struct V0PtInvMassPlots {
1170
1175
if (acceptLambda(v0, posDaughterTrack, negDaughterTrack, collision)) { // Lambda Selections
0 commit comments