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
if ((track.pdgCode() != PDG_t::kPiPlus) && (v0.pdgCode() != PDG_t::kK0Short)) { // One decay to K0s and the other to pi+ (K*(892)+ mother) - Particle pass
343
+
pass1 = true;
344
+
}
345
+
if ((track.pdgCode() != PDG_t::kPiMinus) && (v0.pdgCode() != -310)) { // One decay to K0s and the other to pi+ (K*(892)+ mother) - Particle pass
346
+
pass2 = true;
347
+
}
348
+
if (!pass1 && !pass2) // Go on only if we have both decay products, else skip to next iteration
for (constauto& part : resoParents) { // loop over all pre-filtered MC particles
498
+
if (std::abs(part.pdgCode()) != o2::constants::physics::Pdg::kKPlusStar892) // K*892(pm)
499
+
continue;
500
+
if (std::abs(part.y()) > 0.5) // rapidity cut
501
+
continue;
502
+
bool pass1 = false;
503
+
bool pass2 = false;
504
+
505
+
if (part.daughterPDG1() == PDG_t::kPiPlus && part.daughterPDG2() == PDG_t::kK0Short) { // One decay to K0s and the other to pi+ (K*(892)+ mother) - Particle pass
506
+
pass1 = true;
507
+
histos1.fill(HIST("hK892pmCounter"), 0.5);
508
+
histos1.fill(HIST("k892pPtGen"), part.pt());
509
+
}
510
+
if (part.daughterPDG1() == PDG_t::kPiMinus && part.daughterPDG2() == -310) { // One decay to AntiK0s and the other to pi- (K*(892)- mother) - Antiparticle pass
511
+
pass2 = true;
512
+
histos1.fill(HIST("hK892pmCounter"), 1.5);
513
+
histos1.fill(HIST("k892mPtGen"), part.pt());
514
+
}
515
+
if (!pass1 && !pass2) // Go on only if we have both decay products, else skip to next iteration
516
+
continue;
517
+
histos1.fill(HIST("k892pmPtGen"), part.pt());
518
+
}
519
+
}
520
+
PROCESS_SWITCH(chargedkstaranalysis, processMCTrue, "Process Event for MC", false);
0 commit comments