Skip to content

Commit

Permalink
Add upper cut option on resolved top Pt
Browse files Browse the repository at this point in the history
  • Loading branch information
pastika committed Feb 16, 2020
1 parent ef63b41 commit 5439074
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TopTagger/interface/TTMBasicClusterAlgo.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class TTMBasicClusterAlgo : public TTModule, public TTMConstituentReqs
bool doDijet_;

//trijet variables
double minTopCandMass_, maxTopCandMass_, dRMaxTrijet_, minTrijetAK4JetPt_, midTrijetAK4JetPt_, maxTrijetAK4JetPt_;
double minTopCandMass_, maxTopCandMass_, dRMaxTrijet_, minTrijetAK4JetPt_, midTrijetAK4JetPt_, maxTrijetAK4JetPt_, maxTrijetPt_;
bool doTrijet_;
int nbSeed_;

Expand Down
4 changes: 3 additions & 1 deletion TopTagger/src/TTMBasicClusterAlgo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ void TTMBasicClusterAlgo::getParameters(const cfg::CfgDocument* cfgDoc, const st
minTrijetAK4JetPt_ = cfgDoc->get("minTrijetAK4JetPt", localCxt, -999.0);
midTrijetAK4JetPt_ = cfgDoc->get("midTrijetAK4JetPt", localCxt, -999.0);
maxTrijetAK4JetPt_ = cfgDoc->get("maxTrijetAK4JetPt", localCxt, -999.0);
maxTrijetPt_ = cfgDoc->get("maxTrijetPt", localCxt, -999.0);

//get vars for TTMConstituentReqs
TTMConstituentReqs::getParameters(cfgDoc, localContextName);
Expand Down Expand Up @@ -161,8 +162,9 @@ void TTMBasicClusterAlgo::fillTriplet(const Constituent* const c1, const Constit
//mass window on the top candidate mass
double m123 = topCand.p().M();
bool passMassWindow = (minTopCandMass_ < m123) && (m123 < maxTopCandMass_);
bool passMaxPt = (maxTrijetPt_ < 0.0) || topCand.p().Pt() < maxTrijetPt_;

if(topCand.getDRmax() < dRMaxTrijet_ && passMassWindow)
if(topCand.getDRmax() < dRMaxTrijet_ && passMassWindow && passMaxPt)
{
topCandidates.push_back(topCand);
}
Expand Down

0 comments on commit 5439074

Please sign in to comment.