44 auto itr = m_varnameToProxyLoader.find(
varname);
45 if (itr != m_varnameToProxyLoader.end()) {
46 return itr->second->variableTypeFromString(
varname);
54 }
catch (
const std::runtime_error &) {
57 m_varnameToProxyLoader.emplace(
varname, proxyLoader);
60 std::stringstream
msg;
61 msg <<
"MultipleProxyLoader: unable to find valid proxy loader for " <<
varname <<
"."
62 <<
" If it is an xAOD element or container which is read from the input file"
63 <<
" this problem may occur if it is not accessed anywhere in the job via read handles."
64 <<
" The problem can be mitigated by providing the missing information in the property "
65 <<
" ExtraDataForDynamicConsumers of the sequence which has the property "
66 <<
" ProcessDynamicDataDependencies set to True."
67 <<
" The property takes a list of strings of the form \'type/container-name\' e.g."
68 <<
" \'xAOD::TrackParticleContainer/InDetTrackParticles\'.";
69 throw std::runtime_error(
msg.str());
74 return m_varnameToProxyLoader.at(
varname)->loadIntVariableFromString(
varname);
79 return m_varnameToProxyLoader.at(
varname)->loadDoubleVariableFromString(
varname);
84 return m_varnameToProxyLoader.at(
varname)->loadVecIntVariableFromString(
varname);
89 return m_varnameToProxyLoader.at(
varname)->loadVecDoubleVariableFromString(
varname);