|
21 | 21 |
|
22 | 22 | #include <onnxruntime/core/session/experimental_onnxruntime_cxx_api.h> // needed for HFFilterHelpers, to be fixed |
23 | 23 |
|
| 24 | +#include "CommonConstants/PhysicsConstants.h" |
24 | 25 | #include "CCDB/BasicCCDBManager.h" |
25 | 26 | #include "DataFormatsParameters/GRPMagField.h" |
26 | 27 | #include "DataFormatsParameters/GRPObject.h" |
@@ -422,7 +423,7 @@ struct HfFilter { // Main struct for HF triggers |
422 | 423 | auto pt2Prong = RecoDecay::pt(pVec2Prong); |
423 | 424 |
|
424 | 425 | if (applyOptimisation) { |
425 | | - optimisationTreeCharm(thisCollId, pdg::Code::kD0, pt2Prong, scoresToFill[0], scoresToFill[1], scoresToFill[2]); |
| 426 | + optimisationTreeCharm(thisCollId, o2::constants::physics::Pdg::kD0, pt2Prong, scoresToFill[0], scoresToFill[1], scoresToFill[2]); |
426 | 427 | } |
427 | 428 |
|
428 | 429 | auto selD0 = helper.isSelectedD0InMassRange(pVecPos, pVecNeg, pt2Prong, preselD0, activateQA, hMassVsPtC[kD0]); |
@@ -468,7 +469,7 @@ struct HfFilter { // Main struct for HF triggers |
468 | 469 | keepEvent[kBeauty3P] = true; |
469 | 470 | // fill optimisation tree for D0 |
470 | 471 | if (applyOptimisation) { |
471 | | - optimisationTreeBeauty(thisCollId, pdg::Code::kD0, pt2Prong, scoresToFill[0], scoresToFill[1], scoresToFill[2], dcaThird[0]); |
| 472 | + optimisationTreeBeauty(thisCollId, o2::constants::physics::Pdg::kD0, pt2Prong, scoresToFill[0], scoresToFill[1], scoresToFill[2], dcaThird[0]); |
472 | 473 | } |
473 | 474 | if (activateQA) { |
474 | 475 | hMassVsPtB[kBplus]->Fill(ptCand, massCand); |
@@ -529,7 +530,7 @@ struct HfFilter { // Main struct for HF triggers |
529 | 530 | if (isProton) { |
530 | 531 | float relativeMomentum = helper.computeRelativeMomentum(pVecThird, pVec2Prong, massD0); |
531 | 532 | if (applyOptimisation) { |
532 | | - optimisationTreeFemto(thisCollId, pdg::Code::kD0, pt2Prong, scoresToFill[0], scoresToFill[1], scoresToFill[2], relativeMomentum, track.tpcNSigmaPr(), track.tofNSigmaPr()); |
| 533 | + optimisationTreeFemto(thisCollId, o2::constants::physics::Pdg::kD0, pt2Prong, scoresToFill[0], scoresToFill[1], scoresToFill[2], relativeMomentum, track.tpcNSigmaPr(), track.tofNSigmaPr()); |
533 | 534 | } |
534 | 535 | if (relativeMomentum < femtoMaxRelativeMomentum) { |
535 | 536 | keepEvent[kFemto2P] = true; |
@@ -757,25 +758,25 @@ struct HfFilter { // Main struct for HF triggers |
757 | 758 | if (is3Prong[0]) { |
758 | 759 | is3ProngInMass[0] = helper.isSelectedDplusInMassRange(pVecFirst, pVecThird, pVecSecond, pt3Prong, activateQA, hMassVsPtC[kDplus]); |
759 | 760 | if (applyOptimisation) { |
760 | | - optimisationTreeCharm(thisCollId, pdg::Code::kDPlus, pt3Prong, scoresToFill[0][0], scoresToFill[0][1], scoresToFill[0][2]); |
| 761 | + optimisationTreeCharm(thisCollId, o2::constants::physics::Pdg::kDPlus, pt3Prong, scoresToFill[0][0], scoresToFill[0][1], scoresToFill[0][2]); |
761 | 762 | } |
762 | 763 | } |
763 | 764 | if (is3Prong[1]) { |
764 | 765 | is3ProngInMass[1] = helper.isSelectedDsInMassRange(pVecFirst, pVecThird, pVecSecond, pt3Prong, is3Prong[1], activateQA, hMassVsPtC[kDs]); |
765 | 766 | if (applyOptimisation) { |
766 | | - optimisationTreeCharm(thisCollId, pdg::Code::kDS, pt3Prong, scoresToFill[1][0], scoresToFill[1][1], scoresToFill[1][2]); |
| 767 | + optimisationTreeCharm(thisCollId, o2::constants::physics::Pdg::kDS, pt3Prong, scoresToFill[1][0], scoresToFill[1][1], scoresToFill[1][2]); |
767 | 768 | } |
768 | 769 | } |
769 | 770 | if (is3Prong[2]) { |
770 | 771 | is3ProngInMass[2] = helper.isSelectedLcInMassRange(pVecFirst, pVecThird, pVecSecond, pt3Prong, is3Prong[2], activateQA, hMassVsPtC[kLc]); |
771 | 772 | if (applyOptimisation) { |
772 | | - optimisationTreeCharm(thisCollId, pdg::Code::kLambdaCPlus, pt3Prong, scoresToFill[2][0], scoresToFill[2][1], scoresToFill[2][2]); |
| 773 | + optimisationTreeCharm(thisCollId, o2::constants::physics::Pdg::kLambdaCPlus, pt3Prong, scoresToFill[2][0], scoresToFill[2][1], scoresToFill[2][2]); |
773 | 774 | } |
774 | 775 | } |
775 | 776 | if (is3Prong[3]) { |
776 | 777 | is3ProngInMass[3] = helper.isSelectedXicInMassRange(pVecFirst, pVecThird, pVecSecond, pt3Prong, is3Prong[3], activateQA, hMassVsPtC[kXic]); |
777 | 778 | if (applyOptimisation) { |
778 | | - optimisationTreeCharm(thisCollId, pdg::Code::kXiCPlus, pt3Prong, scoresToFill[3][0], scoresToFill[3][1], scoresToFill[3][2]); |
| 779 | + optimisationTreeCharm(thisCollId, o2::constants::physics::Pdg::kXiCPlus, pt3Prong, scoresToFill[3][0], scoresToFill[3][1], scoresToFill[3][2]); |
779 | 780 | } |
780 | 781 | } |
781 | 782 |
|
@@ -806,7 +807,7 @@ struct HfFilter { // Main struct for HF triggers |
806 | 807 | getPxPyPz(trackParFourth, pVecFourth); |
807 | 808 | } |
808 | 809 |
|
809 | | - int charmParticleID[kNBeautyParticles - 2] = {pdg::Code::kDPlus, pdg::Code::kDS, pdg::Code::kLambdaCPlus, pdg::Code::kXiCPlus}; |
| 810 | + int charmParticleID[kNBeautyParticles - 2] = {o2::constants::physics::Pdg::kDPlus, o2::constants::physics::Pdg::kDS, o2::constants::physics::Pdg::kLambdaCPlus, o2::constants::physics::Pdg::kXiCPlus}; |
810 | 811 |
|
811 | 812 | float massCharmHypos[kNBeautyParticles - 2] = {massDPlus, massDs, massLc, massXic}; |
812 | 813 | float massBeautyHypos[kNBeautyParticles - 2] = {massB0, massBs, massLb, massXib}; |
|
0 commit comments