6 #ifndef VARIABLE_MULE_H
7 #define VARIABLE_MULE_H
11 #include "Gaudi/Algorithm.h"
18 typename T::const_value_type
from;
19 typename T::const_value_type
to;
22 template <
typename T,
typename C>
26 std::map<std::string,std::string>
toCopy;
33 std::vector<SG::AuxElement::ConstAccessor<T>>
m_fromAcc;
37 const std::vector<std::string>& froms,
38 const std::string&
to) {
40 std::string fullto =
to +
"." +
key.second;
41 std::string
doc =
"Key to move " +
key.first +
"->" +
key.second;
42 for (
const auto& from: froms) {
43 std::string fullfrom = from +
"." +
key.first;
51 return StatusCode::SUCCESS;
55 std::vector<SG::ReadDecorHandle<C,T>> from;
56 std::vector<SG::WriteDecorHandle<C,T>>
to;
58 from.emplace_back(
k, cxt);
61 to.emplace_back(
k, cxt);
64 for (
const auto& pair:
pairs) {
65 for (
size_t iii = 0; iii < n_keys; iii++) {
67 to.at(iii)(*pair.to) =
m_fromAcc.at(iii)(*pair.from);