14 const std::string jetLinkName =
"jetLink";
15 template<
typename T,
typename C>
16 std::set<std::string> merged(T
get,
const C&
c) {
20 throw std::runtime_error(
"inconsistent dependencies in folds");
26 const std::vector<std::string>& nn_files,
29 std::vector<std::shared_ptr<const GNN>> nns;
30 for (
const auto& nn_file: nn_files) {
31 nns.emplace_back(std::make_shared<const GNN>(nn_file, o));
40 const std::vector<std::string>& nn_files,
41 const std::string& fold_hash_name,
47 const std::vector<std::shared_ptr<const GNN>>& nns,
48 const std::string& fold_hash_name):
50 m_fold_hash(fold_hash_name),
51 m_jetLink(jetLinkName)
73 return merged([](
const auto&
f){
return f.getDecoratorKeys(); },
m_folds);
76 return merged([](
const auto&
f){
return f.getAuxInputKeys(); },
m_folds);
79 return merged([](
const auto&
f){
return f.getConstituentAuxInputKeys(); },
m_folds);