Skip to content

Commit

Permalink
Merge pull request #27785 from hatakeyamak/Fix_HGCalSuperclusterVetoes
Browse files Browse the repository at this point in the history
Properly veto HGCal superclusters from entering regular PFBlocks - phase2 scenarios
  • Loading branch information
cmsbuild authored Sep 4, 2019
2 parents aa89aea + ff7dff0 commit 4850153
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ void GSFTrackImporter::importToBlock(const edm::Event& e, BlockElementImporterBa
reco::SuperClusterRef scref = seedref->caloCluster().castTo<reco::SuperClusterRef>();
if (scref.isNonnull()) {
// explicitly veto HGCal super clusters
if (scref->seed()->seed().det() == DetId::Forward)
if (scref->seed()->seed().det() == DetId::HGCalEE || scref->seed()->seed().det() == DetId::HGCalHSi ||
scref->seed()->seed().det() == DetId::HGCalHSc || scref->seed()->seed().det() == DetId::Forward)
continue;
PFBlockElementSCEqual myEqual(scref);
auto sc_elem = std::find_if(elems.begin(), SCs_end, myEqual);
Expand Down

0 comments on commit 4850153

Please sign in to comment.