Skip to content
Snippets Groups Projects
Commit bd5e3ce9 authored by Hideyuki Oide's avatar Hideyuki Oide
Browse files

VrtSecInclusive:

 protection for user-defined container name conflicts

Former-commit-id: 559eab45
parent f3963b90
No related branches found
No related tags found
Loading
......@@ -266,6 +266,18 @@ namespace VKalVrtAthena {
//
// Setup StoreGate Variables
//
// Check Return StatusCode::Failure if the user-specified container names have duplication.
{
std::vector<std::string> userContainerNames { m_jp.selectedTracksContainerName, m_jp.associableTracksContainerName, m_jp.secondaryVerticesContainerName, m_jp.all2trksVerticesContainerName };
std::set<std::string> userContainerNamesSet;
for( auto& name : userContainerNames ) userContainerNamesSet.insert( name );
if( userContainerNamesSet.size() != userContainerNames.size() ) {
ATH_MSG_ERROR( " > " << __FUNCTION__ << ": detected duplicated user-specified container name. Please check your job property" );
return StatusCode::FAILURE;
}
}
auto *selectedBaseTracks = new xAOD::TrackParticleContainer;
auto *selectedBaseTracksAux = new xAOD::TrackParticleAuxContainer;
auto *associableTracks = new xAOD::TrackParticleContainer;
......
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