Skip to content

Commit

Permalink
Merge pull request #194 from susy2015/bugFix
Browse files Browse the repository at this point in the history
Fix Bug
  • Loading branch information
pastika authored Feb 25, 2020
2 parents 8752555 + b72579b commit 727cb54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TopTagger/src/TTMFilterBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void TTMFilterBase::markConstituentsUsed(const std::vector<const Constituent *>&
//If there is one or fewer subjets, instead match to the overall AK8 jet
for(const auto& matchConst : allConstituents)
{
if(ROOT::Math::VectorUtil::DeltaR(constituent->p(), matchConst.p()) < dRMaxAK8)
if(matchConst.getType() == Constituent::AK4JET && ROOT::Math::VectorUtil::DeltaR(constituent->p(), matchConst.p()) < dRMaxAK8)
{
usedConstituents.insert(&matchConst);
}
Expand All @@ -78,7 +78,7 @@ void TTMFilterBase::markConstituentsUsed(const std::vector<const Constituent *>&
{
for(const auto& matchConst : allConstituents)
{
if(ROOT::Math::VectorUtil::DeltaR(subjet.p(), matchConst.p()) < dRMax)
if(matchConst.getType() == Constituent::AK4JET && ROOT::Math::VectorUtil::DeltaR(subjet.p(), matchConst.p()) < dRMax)
{
usedConstituents.insert(&matchConst);
}
Expand Down

0 comments on commit 727cb54

Please sign in to comment.