From b625c7bbfe70829e2d9cbb8d0f93635de378666f Mon Sep 17 00:00:00 2001
From: Georgios Krintiras <gkrintir@cern.ch>
Date: Wed, 8 Feb 2017 20:13:41 +0100
Subject: [PATCH] fixed bug for TLorentzVector; added HLT MC for ejets

---
 TopAnalysis/src/TOP-pPb.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/TopAnalysis/src/TOP-pPb.cc b/TopAnalysis/src/TOP-pPb.cc
index a939a2bf..5d90c66d 100644
--- a/TopAnalysis/src/TOP-pPb.cc
+++ b/TopAnalysis/src/TOP-pPb.cc
@@ -410,7 +410,7 @@ void RunToppPb(TString inFileName,
     
     if(channelSelection==11 || channelSelection==1100) 
       {
-	triggerName = isMC ? "HLT_HISinglePhoton40_Eta3p1ForPPRef_v1" : "HLT_PASinglePhoton30_Eta3p1_v1"; 
+	triggerName = isMC ? "HLT_PASinglePhoton30_Eta3p1_v1" : "HLT_PASinglePhoton30_Eta3p1_v1"; 
       }
     
     hltTree_p->SetBranchStatus(triggerName.data(),1);
@@ -1027,7 +1027,7 @@ void RunToppPb(TString inFileName,
 		    if(lightJets[jetIdx][idx1].DeltaR(pfp4)<0.4)      overlapsWithHPobjects=true;
 		    if(lightJets[jetIdx][idx2].DeltaR(pfp4)<0.4)      overlapsWithHPobjects=true;
 		    if(nbtags>0 && bJets[jetIdx][0].DeltaR(pfp4)<0.4) overlapsWithHPobjects=true;
-		    if(nbtags>0 && bJets[jetIdx][1].DeltaR(pfp4)<0.4) overlapsWithHPobjects=true;
+		    if(nbtags>1 && bJets[jetIdx][1].DeltaR(pfp4)<0.4) overlapsWithHPobjects=true;
 		    if(!overlapsWithHPobjects) continue;
 		    ljev.ntracks_hp++;
 		  }
-- 
GitLab