Skip to content

Commit

Permalink
Add the support for a lepton favored OR (#1652)
Browse files Browse the repository at this point in the history
* introduce lep flav OR

* Clean up LepFavOR for MR

* add recent AB releases to CI

---------

Co-authored-by: Sagar Addepalli <addepalli.sagar@cern.ch>
  • Loading branch information
SagarA17 and Sagar Addepalli committed Aug 7, 2023
1 parent 9de1109 commit e4277ba
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
- 24.2.4
- 24.2.5
- 24.2.6
- 24.2.7
- 24.2.8
- 24.2.9

steps:
- uses: actions/checkout@master
Expand Down
7 changes: 6 additions & 1 deletion Root/OverlapRemover.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ EL::StatusCode OverlapRemover :: initialize ()
orFlags.linkOverlapObjects = m_linkOverlapObjects;
orFlags.bJetLabel = m_bTagWP;
orFlags.boostedLeptons = m_useBoostedLeptons;
orFlags.doEleEleOR = m_doEleEleOR;
orFlags.doEleEleOR = m_doEleEleOR || m_lepFavWP;

orFlags.doJets = true;
orFlags.doMuons = m_useMuons;
Expand All @@ -165,6 +165,11 @@ EL::StatusCode OverlapRemover :: initialize ()

ANA_CHECK( ORUtils::recommendedTools(orFlags, m_ORToolbox));
if(m_applyRelPt) ANA_CHECK( m_ORToolbox.muJetORT.setProperty("ApplyRelPt", true) );
if (m_lepFavWP) {
ANA_CHECK( m_ORToolbox.eleEleORT.setProperty("UseClusterMatch", true) );
ANA_CHECK( m_ORToolbox.muJetORT.setProperty("OuterDR", 0.) );
ANA_CHECK( m_ORToolbox.eleJetORT.setProperty("OuterDR", 0.) );
}
ANA_CHECK( m_ORToolbox.initialize());
ANA_MSG_INFO( "OverlapRemover Interface succesfully initialized!" );

Expand Down
2 changes: 2 additions & 0 deletions xAODAnaHelpers/OverlapRemover.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ class OverlapRemover : public xAH::Algorithm
bool m_doEleEleOR = false;
/** @brief Turn ON ApplyRelPt in MuJetOverlapTool (default is false) */
bool m_applyRelPt = false;
/** @brief Turn ON Lepton favored working point (HSG2 prescription) */
bool m_lepFavWP = false;

/** @brief Output systematics list container name */
std::string m_outputAlgoSystNames = "ORAlgo_Syst";
Expand Down

0 comments on commit e4277ba

Please sign in to comment.