Skip to content

Commit 0b1fe89

Browse files
authored
[PWGEM/Dilepton] add DileptonSVMC.h (#16649)
1 parent f9fe764 commit 0b1fe89

8 files changed

Lines changed: 2963 additions & 65 deletions

File tree

PWGEM/Dilepton/Core/Dilepton.h

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ using FilteredMyMuon = FilteredMyMuons::iterator;
107107
using MyEMH_electron = o2::aod::pwgem::dilepton::utils::EventMixingHandler<std::tuple<int, int, int, int>, std::pair<int, int>, o2::aod::pwgem::dilepton::utils::EMTrack>;
108108
using 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>
111111
struct 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) {

PWGEM/Dilepton/Core/DileptonMC.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,9 +438,6 @@ struct DileptonMC {
438438
fRegistry.addClone("Generated/sm/PromptPi0/", "Generated/sm/NonPromptJPsi/");
439439
fRegistry.addClone("Generated/sm/PromptPi0/", "Generated/sm/PromptPsi2S/");
440440
fRegistry.addClone("Generated/sm/PromptPi0/", "Generated/sm/NonPromptPsi2S/");
441-
// fRegistry.addClone("Generated/sm/PromptPi0/", "Generated/sm/Upsilon1S/");
442-
// fRegistry.addClone("Generated/sm/PromptPi0/", "Generated/sm/Upsilon2S/");
443-
// fRegistry.addClone("Generated/sm/PromptPi0/", "Generated/sm/Upsilon3S/");
444441

445442
fRegistry.add("Generated/ccbar/c2l_c2l/uls/hs", "generated dilepton", o2::framework::HistType::kTHnSparseD, {axis_mass, axis_pt, axis_y, axis_dphi_ee, axis_deta_ee, axis_cos_theta_pol, axis_phi_pol, axis_quadmom, axis_aco, axis_asym_pt, axis_dphi_e_ee}, true);
446443
fRegistry.addClone("Generated/ccbar/c2l_c2l/uls/", "Generated/ccbar/c2l_c2l/lspp/");

PWGEM/Dilepton/Core/DileptonSV.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,20 +1106,6 @@ struct DileptonSV {
11061106
candidate.phi2 = t2.phi();
11071107
}
11081108

1109-
// if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron) {
1110-
// auto trackParCov1 = getTrackParCov(t1);
1111-
// auto trackParCov2 = getTrackParCov(t2);
1112-
// if(!findSV(collision, trackParCov1, trackParCov2, candidate)){
1113-
// return false;
1114-
// }
1115-
// } else if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDimuon) {
1116-
// auto trackParCov1 = o2::aod::fwdtrackutils::getTrackParCovFwd(t1, t1);
1117-
// auto trackParCov2 = o2::aod::fwdtrackutils::getTrackParCovFwd(t2, t2);
1118-
// if(!findSVFwd(collision, trackParCov1, trackParCov2, candidate)){
1119-
// return false;
1120-
// }
1121-
// }
1122-
11231109
// if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron) {
11241110
// if (!cut.IsSelectedPair(t1, t2)) {
11251111
// return false;

0 commit comments

Comments
 (0)