Skip to content

Commit

Permalink
Add functionality for checking deep copy container existence instead …
Browse files Browse the repository at this point in the history
…of ConstDataVector for jets and photons
  • Loading branch information
mamerl committed Feb 16, 2024
1 parent e5e469c commit 153c6c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Root/OverlapRemover.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -480,15 +480,15 @@ EL::StatusCode OverlapRemover :: executeOR( const xAOD::ElectronContainer* inEl
}
}

if ( m_store->contains<ConstDataVector<xAOD::JetContainer> >(m_inContainerName_Jets) ) {
if ( m_store->contains<ConstDataVector<xAOD::JetContainer> >(m_inContainerName_Jets) || m_store->contains<xAOD::JetContainer>(m_inContainerName_Jets) ) {
ANA_CHECK( HelperFunctions::retrieve(inJets, m_inContainerName_Jets, m_event, m_store, msg()) );
} else {
nomContainerNotFound = true;
if ( m_numEvent == 1 ) { ANA_MSG_WARNING( "Could not find nominal container " << m_inContainerName_Jets << " in xAOD::TStore. Overlap Removal will not be done for the 'all-nominal' case..."); }
}

if ( m_usePhotons ) {
if ( m_store->contains<ConstDataVector<xAOD::PhotonContainer> >(m_inContainerName_Photons) ) {
if ( m_store->contains<ConstDataVector<xAOD::PhotonContainer> >(m_inContainerName_Photons) || m_store->contains<xAOD::PhotonContainer>(m_inContainerName_Photons) ) {
ANA_CHECK( HelperFunctions::retrieve(inPhotons, m_inContainerName_Photons, m_event, m_store, msg()) );
} else {
nomContainerNotFound = true;
Expand Down

0 comments on commit 153c6c8

Please sign in to comment.