Skip to content

Commit

Permalink
Support for LRT Muons (#1698)
Browse files Browse the repository at this point in the history
* LRT Muon Central Support

* update ci releases

---------

Co-authored-by: Sagar Addepalli <[email protected]>
  • Loading branch information
SagarA17 and Sagar Addepalli authored Jul 22, 2024
1 parent 8a2ace1 commit 2311a29
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 22 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,9 @@ jobs:
release_type:
- analysisbase
release_version:
- 24.2.37
- 24.2.38
- 24.2.39
- 24.2.40
- 24.2.41
- 25.2.0
- 25.2.1
- 25.2.2
- 25.2.3
- 25.2.4
- 25.2.5
- 25.2.6
- 25.2.7
- 25.2.8
- 25.2.9
- 25.2.10
- 25.2.11
- 25.2.17
- 25.2.18
- 25.2.19

steps:
- uses: actions/checkout@master
Expand Down
3 changes: 3 additions & 0 deletions Root/MuonEfficiencyCorrector.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ EL::StatusCode MuonEfficiencyCorrector :: initialize ()
ANA_MSG_WARNING("Overriding muon efficiency calibration release to " << m_overrideCalibRelease);
ANA_CHECK( m_muRecoSF_tool.setProperty("CalibrationRelease", m_overrideCalibRelease ));
}
if (m_doLRT) {
ANA_CHECK( m_muRecoSF_tool.setProperty("UseLRT", true ));
}
ANA_CHECK(m_muRecoSF_tool.retrieve());
assert(m_muRecoSF_tool.isInitialized());

Expand Down
8 changes: 3 additions & 5 deletions Root/MuonSelector.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ EL::StatusCode MuonSelector :: initialize ()
ANA_CHECK( m_muonSelectionTool_handle.setProperty( "MuQuality", m_muonQuality ));
ANA_CHECK( m_muonSelectionTool_handle.setProperty( "IsRun3Geo", m_isRun3Geo ));
ANA_CHECK( m_muonSelectionTool_handle.setProperty( "OutputLevel", msg().level() ));
if (m_doLRT) {
ANA_CHECK( m_muonSelectionTool_handle.setProperty( "UseLRT", true ));
}
ANA_CHECK( m_muonSelectionTool_handle.retrieve());
ANA_MSG_DEBUG("Retrieved tool: " << m_muonSelectionTool_handle);

Expand Down Expand Up @@ -802,11 +805,6 @@ int MuonSelector :: passCuts( const xAOD::Muon* muon, const xAOD::Vertex *primar

if ( m_doLRT ) {
static SG::AuxElement::Decorator< char > passIDcuts("passIDcuts");
static SG::AuxElement::Accessor< char > isLRTmuon("isLRT");
passIDcuts( *muon ) = m_muonSelectionTool_handle->passedIDCuts( *muon ) ? 1 : 0;
if ( isLRTmuon.isAvailable(*muon) && isLRTmuon(*muon) ) { //checks if a muon is LRT
acceptMuon = this_quality <= m_muonQuality; //LRT WP do not have the ID cuts applied so use getQuality()
}
}

ANA_MSG_DEBUG( "Doing muon quality" );
Expand Down
3 changes: 3 additions & 0 deletions xAODAnaHelpers/MuonEfficiencyCorrector.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ class MuonEfficiencyCorrector : public xAH::Algorithm
std::string m_outputSystNamesTrig = "MuonEfficiencyCorrector_TrigSyst";
std::string m_outputSystNamesTTVA = "MuonEfficiencyCorrector_TTVASyst";

/// @brief Turn on if using LRT muons
bool m_doLRT = false;

private:
int m_numEvent; //!
int m_numObject; //!
Expand Down

0 comments on commit 2311a29

Please sign in to comment.