Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for LRT Muons #1698

Merged
merged 3 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading