@@ -341,6 +341,8 @@ struct k892hadronphotonBkg {
341341 histos.add (" BDT/h2dPhotonQt" , " h2dPhotonQt" , kTH2D , {axisConfig.mlProb , axisConfig.axisV0APQt });
342342 histos.add (" BDT/h2dPhotonRadius" , " h2dPhotonRadius" , kTH2D , {axisConfig.mlProb , axisConfig.axisV0Radius });
343343 histos.add (" BDT/h2dOPAngle" , " h2dOPAngle" , kTH2D , {axisConfig.mlProb , axisConfig.axisOPAngle });
344+ histos.add (" BDT/h2dAPAlpha" , " h2dAPAlpha" , kTH2D , {axisConfig.mlProb , axisConfig.axisAPAlpha });
345+ histos.add (" BDT/h2dAPQt" , " h2dAPQt" , kTH2D , {axisConfig.mlProb , axisConfig.axisAPQt });
344346 }
345347
346348 histos.add (" hEventCentrality" , " hEventCentrality" , kTH1D , {axisConfig.axisCentrality });
@@ -894,7 +896,7 @@ struct k892hadronphotonBkg {
894896 // _______________________________________________
895897 // Fill BDT performance QA
896898 template <typename TV0Object>
897- void fillBDTPerformance (TV0Object const & lambda, TV0Object const & photon, float openAngle, float score, float pt, float mass)
899+ void fillBDTPerformance (TV0Object const & lambda, TV0Object const & photon, float openAngle, float apAlpha, float apQt, float score, float pt, float mass)
898900 {
899901 float bkgScore = 1 .0f - score;
900902
@@ -924,24 +926,26 @@ struct k892hadronphotonBkg {
924926 histos.fill (HIST (" BDT/h2dPhotonQt" ), score, photon.qtarm ());
925927 histos.fill (HIST (" BDT/h2dPhotonRadius" ), score, photon.v0radius ());
926928 histos.fill (HIST (" BDT/h2dOPAngle" ), score, openAngle);
929+ histos.fill (HIST (" BDT/h2dAPAlpha" ), score, apAlpha);
930+ histos.fill (HIST (" BDT/h2dAPQt" ), score, apQt);
927931 }
928932
929933 // _______________________________________________
930934 // BDT selection of a Lambda + photon pair
931935 template <typename TV0Object>
932936 bool selectML (TV0Object const & lambda, TV0Object const & photon,
933- float openAngle, float pt, float mass)
937+ float openAngle, float apAlpha, float apQt, float pt, float mass)
934938 {
935939 // No model outside the bdt.ptBinEdges range
936940 if (pt < bdt.ptBinEdges .value .front () || pt >= bdt.ptBinEdges .value .back ())
937941 return false ;
938942
939943 // Features in the order of bdt.namesInputFeatures
940- auto inputFeatures = mlResponse.getInputFeatures (lambda, photon, openAngle);
944+ auto inputFeatures = mlResponse.getInputFeatures (lambda, photon, openAngle, apAlpha, apQt );
941945 std::vector<float > outputMl;
942946 const bool isSelected = mlResponse.isSelectedMl (inputFeatures, pt, outputMl); // model and cut of the pT bin
943947
944- fillBDTPerformance (lambda, photon, openAngle, outputMl[1 ], pt, mass);
948+ fillBDTPerformance (lambda, photon, openAngle, apAlpha, apQt, outputMl[1 ], pt, mass);
945949
946950 return isSelected;
947951 }
@@ -1103,20 +1107,20 @@ struct k892hadronphotonBkg {
11031107 if (std::abs (rapidity) > maxRap)
11041108 continue ;
11051109
1110+ // Armenteros-Podolanski of the mixed pair
1111+ const std::array<float , 3 > gammaMom{photon.px (), photon.py (), photon.pz ()};
1112+ const std::array<float , 3 > hadronMom{hadron.px (), hadron.py (), hadron.pz ()};
1113+ const float apAlpha = armenterosAlpha (gammaMom, hadronMom);
1114+ const float apQt = armenterosQt (gammaMom, hadronMom);
1115+
11061116 // BDT selection (Lambda(1520) only)
11071117 if constexpr (resonance == kResoLambdaStar ) {
11081118 if (bdt.enableML ) {
1109- if (!selectML (hadron, photon, openAngle, pt, mass))
1119+ if (!selectML (hadron, photon, openAngle, apAlpha, apQt, pt, mass))
11101120 continue ;
11111121 }
11121122 }
11131123
1114- // Armenteros-Podolanski of the mixed pair
1115- const std::array<float , 3 > gammaMom{photon.px (), photon.py (), photon.pz ()};
1116- const std::array<float , 3 > hadronMom{hadron.px (), hadron.py (), hadron.pz ()};
1117- const float apAlpha = armenterosAlpha (gammaMom, hadronMom);
1118- const float apQt = armenterosQt (gammaMom, hadronMom);
1119-
11201124 if constexpr (resonance == kResoKStar ) {
11211125 histos.fill (HIST (" KStarBkg/h2dMixedKStarMassVsPt" ), mass, pt);
11221126 histos.fill (HIST (" KStarBkg/h3dMixedKStarMassVsPt" ), centrality, pt, mass);
0 commit comments