Skip to content

Commit

Permalink
Merge pull request #44818 from martinamalberti/mm_fixSelectionMtdAsso…
Browse files Browse the repository at this point in the history
…cMaps

[MTD] Mtd association maps: remove energy selection for ETL clusters
  • Loading branch information
cmsbuild authored May 9, 2024
2 parents d4f5144 + 690c3c8 commit df87b72
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ reco::RecoToSimCollectionMtd MtdRecoClusterToSimLayerClusterAssociatorByHitsImpl
float dtSig = std::abs((recoClus.time() - simClus.simLCTime()) / recoClus.timeError());

// -- If the sim and reco clusters have common hits, fill the std:vector of sim clusters refs
if (!sharedHitIds.empty() && dE < energyCut_ &&
dtSig < timeCut_) { // at least one hit in common + requirement on energy and time compatibility

if (!sharedHitIds.empty() &&
((clusId.mtdSubDetector() == MTDDetId::BTL && dE < energyCut_ && dtSig < timeCut_) ||
(clusId.mtdSubDetector() == MTDDetId::ETL && dtSig < timeCut_))) {
simClusterRefs.push_back(simClusterRef);

LogDebug("MtdRecoClusterToSimLayerClusterAssociatorByHitsImpl")
Expand Down Expand Up @@ -214,7 +214,9 @@ reco::SimToRecoCollectionMtd MtdRecoClusterToSimLayerClusterAssociatorByHitsImpl
float dtSig = std::abs((recoClus.time() - simClus.simLCTime()) / recoClus.timeError());

// -- If the sim and reco clusters have common hits, fill the std:vector of reco clusters refs
if (!sharedHitIds.empty() && dE < energyCut_ && dtSig < timeCut_) {
if (!sharedHitIds.empty() &&
((clusId.mtdSubDetector() == MTDDetId::BTL && dE < energyCut_ && dtSig < timeCut_) ||
(clusId.mtdSubDetector() == MTDDetId::ETL && dtSig < timeCut_))) {
// Create a persistent edm::Ref to the cluster
edm::Ref<edmNew::DetSetVector<FTLCluster>, FTLCluster> recoClusterRef =
edmNew::makeRefTo(recoClusH, &recoClus);
Expand Down

0 comments on commit df87b72

Please sign in to comment.