@@ -107,7 +107,7 @@ using FilteredMyMuon = FilteredMyMuons::iterator;
107107using MyEMH_electron = o2::aod::pwgem::dilepton::utils::EventMixingHandler<std::tuple<int , int , int , int >, std::pair<int , int >, o2::aod::pwgem::dilepton::utils::EMTrack>;
108108using MyEMH_muon = o2::aod::pwgem::dilepton::utils::EventMixingHandler<std::tuple<int , int , int , int >, std::pair<int , int >, o2::aod::pwgem::dilepton::utils::EMFwdTrack>;
109109
110- template <o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType pairtype, bool withSCT, typename TEMH , typename ... Types>
110+ template <o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType pairtype, typename TEMH , typename ... Types>
111111struct Dilepton {
112112
113113 // Configurables
@@ -849,26 +849,6 @@ struct Dilepton {
849849 fDimuonCut .EnableTTCA (dimuoncuts.enableTTCA );
850850 }
851851
852- template <typename TTrack>
853- bool foundHFSV (TTrack const & track)
854- {
855- int ptbin = lower_bound (dielectroncuts.binsMLSCT .value .begin (), dielectroncuts.binsMLSCT .value .end (), track.pt ()) - dielectroncuts.binsMLSCT .value .begin () - 1 ;
856- if (ptbin < 0 ) {
857- ptbin = 0 ;
858- } else if (static_cast <int >(dielectroncuts.binsMLSCT .value .size ()) - 2 < ptbin) {
859- ptbin = static_cast <int >(dielectroncuts.binsMLSCT .value .size ()) - 2 ;
860- }
861-
862- for (int i = 0 ; i < static_cast <int >(track.nSV ()); i++) {
863- auto probaSCT = track.probaSCT (i);
864- // LOGF(info, "track.globalIndex() = %d, pt = %f, i = %d, probaSCT[0] = %f, probaSCT[1] = %f, probaSCT[2] = %f, probaSCT[3] = %f", track.globalIndex(), track.pt(), i, probaSCT[0], probaSCT[1], probaSCT[2], probaSCT[3]);
865- if (probaSCT[1 ] > dielectroncuts.cutsMLSCTeT_prompt_hc .value [ptbin] || probaSCT[2 ] > dielectroncuts.cutsMLSCTeT_nonprompt_hc .value [ptbin] || probaSCT[3 ] > dielectroncuts.cutsMLSCTeT_hb .value [ptbin]) {
866- return true ;
867- }
868- }
869- return false ;
870- }
871-
872852 template <typename TQvectors>
873853 bool isGoodQvector (TQvectors const & qvectors)
874854 {
@@ -921,11 +901,6 @@ struct Dilepton {
921901 return false ;
922902 }
923903 }
924- if constexpr (withSCT) {
925- if (foundHFSV (t1) || foundHFSV (t2)) {
926- return false ;
927- }
928- }
929904 } else if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDimuon ) {
930905 if (!cut.template IsSelectedTrack <false >(t1) || !cut.template IsSelectedTrack <false >(t2)) {
931906 return false ;
@@ -1587,27 +1562,13 @@ struct Dilepton {
15871562 return false ;
15881563 }
15891564 }
1590-
1591- if constexpr (withSCT) {
1592- if (foundHFSV (t1) || foundHFSV (t2)) {
1593- return false ;
1594- }
1595- }
1596-
15971565 } else if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDimuon ) {
15981566 if (!cut.IsSelectedTrack (t1) || !cut.IsSelectedTrack (t2)) {
15991567 return false ;
16001568 }
16011569 if (!map_best_match_globalmuon[t1.globalIndex ()] || !map_best_match_globalmuon[t2.globalIndex ()]) {
16021570 return false ;
16031571 }
1604-
1605- // if (!o2::aod::pwgem::dilepton::utils::emtrackutil::isBestMatch(t1, cut, tracks)) {
1606- // return false;
1607- // }
1608- // if (!o2::aod::pwgem::dilepton::utils::emtrackutil::isBestMatch(t2, cut, tracks)) {
1609- // return false;
1610- // }
16111572 }
16121573
16131574 if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron ) {
0 commit comments