Skip to content

Commit 4351821

Browse files
authored
Comment out pDCA and remove isSelectedMuon function
Comment out pDCA calculation and remove isSelectedMuon function.
1 parent d0c10e3 commit 4351821

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

PWGEM/Dilepton/Tasks/checkMCTemplate.cxx

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ struct checkMCTemplate {
520520
// float dcaY_Matched = propmuonAtDCA_Matched.getY() - collision.posY();
521521
// float dcaXY_Matched = std::sqrt(dcaX_Matched * dcaX_Matched + dcaY_Matched * dcaY_Matched);
522522
// pDCA = mchtrack.p() * dcaXY_Matched;
523-
pDCA = propmuonAtPV.getP() * dcaXY;
523+
// pDCA = propmuonAtPV.getP() * dcaXY;
524524

525525
nClustersMFT = mfttrack.nClusters();
526526
float chi2mft = mfttrack.chi2() / (2.f * nClustersMFT - 5.f);
@@ -571,35 +571,6 @@ struct checkMCTemplate {
571571
}
572572
}
573573

574-
bool isSelectedMuon(const float pt, const float eta, const float rAtAbsorberEnd, const float pDCA, const float chi2, const uint8_t trackType, const float dcaXY)
575-
{
576-
if (pt < muoncuts.cfg_min_pt_track) {
577-
return false;
578-
}
579-
if (rAtAbsorberEnd < muoncuts.cfg_mid_rabs ? pDCA > muoncuts.cfg_max_pdca_forSmallR : pDCA > muoncuts.cfg_max_pdca_forLargeR) {
580-
return false;
581-
}
582-
583-
if (trackType == static_cast<uint8_t>(o2::aod::fwdtrack::ForwardTrackTypeEnum::GlobalMuonTrack)) {
584-
if (eta < muoncuts.cfg_min_eta_track_gl || muoncuts.cfg_max_eta_track_gl < eta) {
585-
return false;
586-
}
587-
if (muoncuts.cfg_max_dcaxy_gl < dcaXY) {
588-
return false;
589-
}
590-
if (chi2 < 0.f || muoncuts.cfg_max_chi2_gl < chi2) { // chi2/ndf
591-
return false;
592-
}
593-
if (rAtAbsorberEnd < muoncuts.cfg_min_rabs_gl || muoncuts.cfg_max_rabs_gl < rAtAbsorberEnd) {
594-
return false;
595-
}
596-
} else {
597-
return false;
598-
}
599-
600-
return true;
601-
}
602-
603574
template <int begin = 0, int end = 9, typename T>
604575
bool hasMFT(T const& track)
605576
{

0 commit comments

Comments
 (0)