ATLAS Offline Software
Loading...
Searching...
No Matches
VariableFactory.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef CP_VARIABLEFACTORY_H
5#define CP_VARIABLEFACTORY_H
6
8#include <string>
9#include <nlohmann/json.hpp>
10
12
13 public:
14 using FloatFunc = std::function<float(const SG::AuxElement&)>;
15 using IntFunc = std::function<int(const SG::AuxElement&)>;
16
17 static FloatFunc floatVariableFactory(const nlohmann::json& cfg);
18 static IntFunc intVariableFactory(const nlohmann::json& cfg);
19
20};
21#endif // CP_VARIABLEFACTORY_H
Base class for elements of a container that can have aux data.
static FloatFunc floatVariableFactory(const nlohmann::json &cfg)
std::function< float(const SG::AuxElement &)> FloatFunc
static IntFunc intVariableFactory(const nlohmann::json &cfg)
std::function< int(const SG::AuxElement &)> IntFunc
AuxElement(SG::AuxVectorData *container, size_t index)
Base class for elements of a container that can have aux data.