Skip to content
Snippets Groups Projects
Commit 263909b5 authored by Emily Anne Thompson's avatar Emily Anne Thompson
Browse files

Migrate DiLepSkimTools to use DataHandles

parent 9d38584c
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!39666Migrate LongLivedParticleDPDMaker to R22
......@@ -44,12 +44,21 @@ bool DerivationFramework::DiLepSkim::eventPassesFilter() const
if(!m_dlf->GetTriggers(passFlags)) return false;
// retrieve particle containers
const xAOD::ElectronContainer* elc = nullptr;
CHECK(evtStore()->retrieve(elc, "Electrons"), false);
const xAOD::MuonContainer* muc = nullptr;
CHECK(evtStore()->retrieve(muc, "Muons"), false);
const xAOD::PhotonContainer* phc = nullptr;
CHECK(evtStore()->retrieve(phc, "Photons"), false);
SG::ReadHandle<xAOD::ElectronContainer> elc("Electrons");
if( !elc.isValid() ) {
msg(MSG::WARNING) << "No Jet container found, will skip this event" << endmsg;
return false;
}
SG::ReadHandle<xAOD::MuonContainer> muc("Muons");
if( !muc.isValid() ) {
msg(MSG::WARNING) << "No Muon container found, will skip this event" << endmsg;
return false;
}
SG::ReadHandle<xAOD::PhotonContainer> phc("Photons");
if( !phc.isValid() ) {
msg(MSG::WARNING) << "No Photon container found, will skip this event" << endmsg;
return false;
}
// loop over containers and check filters
if(m_filter == Filters::SiEl)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment