Skip to content

Commit

Permalink
add distinctions for muon trigger SFs for 2023 and 2024 (#1700)
Browse files Browse the repository at this point in the history
  • Loading branch information
miholzbo authored Aug 5, 2024
1 parent be39dd1 commit 36b9f93
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Root/MuonEfficiencyCorrector.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -705,9 +705,13 @@ EL::StatusCode MuonEfficiencyCorrector :: executeSF ( const xAOD::EventInfo* eve
for (auto const& trig : m_SingleMuTriggerMap) {

auto trig_it = trig.second;
// run numbers from MuonTriggerScaleFactors::getYear()
// https://gitlab.cern.ch/atlas/athena/-/blob/main/PhysicsAnalysis/MuonID/MuonIDAnalysis/MuonEfficiencyCorrections/Root/MuonTriggerScaleFactors.cxx
if (trig.first.find("2015")!=std::string::npos && run>284484) continue;
else if ((trig.first.find("2016")!=std::string::npos || trig.first.find("2017")!=std::string::npos || trig.first.find("2018")!=std::string::npos) && (run<=284484 || run >400000) ) continue;
else if (trig.first.find("2022")!=std::string::npos && run< 400000) continue;
else if ((trig.first.find("2016")!=std::string::npos || trig.first.find("2017")!=std::string::npos || trig.first.find("2018")!=std::string::npos) && (run <= 284484 || run > 364292) ) continue;
else if (trig.first.find("2022")!=std::string::npos && (run <= 364292 || run > 440613) ) continue;
else if (trig.first.find("2023")!=std::string::npos && (run <= 440613 || run > 456749) ) continue;
else if (trig.first.find("2024")!=std::string::npos && run <= 456749 ) continue;

std::unique_ptr< std::vector< std::string > > sysVariationNamesTrig = nullptr;
if ( writeSystNames ) sysVariationNamesTrig = std::make_unique< std::vector< std::string > >();
Expand Down

0 comments on commit 36b9f93

Please sign in to comment.