|
44 | 44 | using namespace o2; |
45 | 45 | using namespace o2::analysis; |
46 | 46 | using namespace o2::aod::hffilters; |
| 47 | +using namespace o2::constants::physics; |
47 | 48 | using namespace o2::framework; |
48 | 49 | using namespace o2::framework::expressions; |
49 | 50 |
|
@@ -423,7 +424,7 @@ struct HfFilter { // Main struct for HF triggers |
423 | 424 | auto pt2Prong = RecoDecay::pt(pVec2Prong); |
424 | 425 |
|
425 | 426 | if (applyOptimisation) { |
426 | | - optimisationTreeCharm(thisCollId, o2::constants::physics::Pdg::kD0, pt2Prong, scoresToFill[0], scoresToFill[1], scoresToFill[2]); |
| 427 | + optimisationTreeCharm(thisCollId, Pdg::kD0, pt2Prong, scoresToFill[0], scoresToFill[1], scoresToFill[2]); |
427 | 428 | } |
428 | 429 |
|
429 | 430 | auto selD0 = helper.isSelectedD0InMassRange(pVecPos, pVecNeg, pt2Prong, preselD0, activateQA, hMassVsPtC[kD0]); |
@@ -469,7 +470,7 @@ struct HfFilter { // Main struct for HF triggers |
469 | 470 | keepEvent[kBeauty3P] = true; |
470 | 471 | // fill optimisation tree for D0 |
471 | 472 | if (applyOptimisation) { |
472 | | - optimisationTreeBeauty(thisCollId, o2::constants::physics::Pdg::kD0, pt2Prong, scoresToFill[0], scoresToFill[1], scoresToFill[2], dcaThird[0]); |
| 473 | + optimisationTreeBeauty(thisCollId, Pdg::kD0, pt2Prong, scoresToFill[0], scoresToFill[1], scoresToFill[2], dcaThird[0]); |
473 | 474 | } |
474 | 475 | if (activateQA) { |
475 | 476 | hMassVsPtB[kBplus]->Fill(ptCand, massCand); |
@@ -530,7 +531,7 @@ struct HfFilter { // Main struct for HF triggers |
530 | 531 | if (isProton) { |
531 | 532 | float relativeMomentum = helper.computeRelativeMomentum(pVecThird, pVec2Prong, massD0); |
532 | 533 | if (applyOptimisation) { |
533 | | - optimisationTreeFemto(thisCollId, o2::constants::physics::Pdg::kD0, pt2Prong, scoresToFill[0], scoresToFill[1], scoresToFill[2], relativeMomentum, track.tpcNSigmaPr(), track.tofNSigmaPr()); |
| 534 | + optimisationTreeFemto(thisCollId, Pdg::kD0, pt2Prong, scoresToFill[0], scoresToFill[1], scoresToFill[2], relativeMomentum, track.tpcNSigmaPr(), track.tofNSigmaPr()); |
534 | 535 | } |
535 | 536 | if (relativeMomentum < femtoMaxRelativeMomentum) { |
536 | 537 | keepEvent[kFemto2P] = true; |
@@ -758,25 +759,25 @@ struct HfFilter { // Main struct for HF triggers |
758 | 759 | if (is3Prong[0]) { |
759 | 760 | is3ProngInMass[0] = helper.isSelectedDplusInMassRange(pVecFirst, pVecThird, pVecSecond, pt3Prong, activateQA, hMassVsPtC[kDplus]); |
760 | 761 | if (applyOptimisation) { |
761 | | - optimisationTreeCharm(thisCollId, o2::constants::physics::Pdg::kDPlus, pt3Prong, scoresToFill[0][0], scoresToFill[0][1], scoresToFill[0][2]); |
| 762 | + optimisationTreeCharm(thisCollId, Pdg::kDPlus, pt3Prong, scoresToFill[0][0], scoresToFill[0][1], scoresToFill[0][2]); |
762 | 763 | } |
763 | 764 | } |
764 | 765 | if (is3Prong[1]) { |
765 | 766 | is3ProngInMass[1] = helper.isSelectedDsInMassRange(pVecFirst, pVecThird, pVecSecond, pt3Prong, is3Prong[1], activateQA, hMassVsPtC[kDs]); |
766 | 767 | if (applyOptimisation) { |
767 | | - optimisationTreeCharm(thisCollId, o2::constants::physics::Pdg::kDS, pt3Prong, scoresToFill[1][0], scoresToFill[1][1], scoresToFill[1][2]); |
| 768 | + optimisationTreeCharm(thisCollId, Pdg::kDS, pt3Prong, scoresToFill[1][0], scoresToFill[1][1], scoresToFill[1][2]); |
768 | 769 | } |
769 | 770 | } |
770 | 771 | if (is3Prong[2]) { |
771 | 772 | is3ProngInMass[2] = helper.isSelectedLcInMassRange(pVecFirst, pVecThird, pVecSecond, pt3Prong, is3Prong[2], activateQA, hMassVsPtC[kLc]); |
772 | 773 | if (applyOptimisation) { |
773 | | - optimisationTreeCharm(thisCollId, o2::constants::physics::Pdg::kLambdaCPlus, pt3Prong, scoresToFill[2][0], scoresToFill[2][1], scoresToFill[2][2]); |
| 774 | + optimisationTreeCharm(thisCollId, Pdg::kLambdaCPlus, pt3Prong, scoresToFill[2][0], scoresToFill[2][1], scoresToFill[2][2]); |
774 | 775 | } |
775 | 776 | } |
776 | 777 | if (is3Prong[3]) { |
777 | 778 | is3ProngInMass[3] = helper.isSelectedXicInMassRange(pVecFirst, pVecThird, pVecSecond, pt3Prong, is3Prong[3], activateQA, hMassVsPtC[kXic]); |
778 | 779 | if (applyOptimisation) { |
779 | | - optimisationTreeCharm(thisCollId, o2::constants::physics::Pdg::kXiCPlus, pt3Prong, scoresToFill[3][0], scoresToFill[3][1], scoresToFill[3][2]); |
| 780 | + optimisationTreeCharm(thisCollId, Pdg::kXiCPlus, pt3Prong, scoresToFill[3][0], scoresToFill[3][1], scoresToFill[3][2]); |
780 | 781 | } |
781 | 782 | } |
782 | 783 |
|
@@ -807,7 +808,7 @@ struct HfFilter { // Main struct for HF triggers |
807 | 808 | getPxPyPz(trackParFourth, pVecFourth); |
808 | 809 | } |
809 | 810 |
|
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}; |
| 811 | + int charmParticleID[kNBeautyParticles - 2] = {Pdg::kDPlus, Pdg::kDS, Pdg::kLambdaCPlus, Pdg::kXiCPlus}; |
811 | 812 |
|
812 | 813 | float massCharmHypos[kNBeautyParticles - 2] = {massDPlus, massDs, massLc, massXic}; |
813 | 814 | float massBeautyHypos[kNBeautyParticles - 2] = {massB0, massBs, massLb, massXib}; |
|
0 commit comments