ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
FTagScaleFactorTools
src
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
7
#include "
AthContainers/AuxElement.h
"
8
#include <string>
9
#include <nlohmann/json.hpp>
10
11
class
VariableFactory
{
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
AuxElement.h
Base class for elements of a container that can have aux data.
VariableFactory
Definition
VariableFactory.h:11
VariableFactory::floatVariableFactory
static FloatFunc floatVariableFactory(const nlohmann::json &cfg)
Definition
VariableFactory.cxx:8
VariableFactory::FloatFunc
std::function< float(const SG::AuxElement &)> FloatFunc
Definition
VariableFactory.h:14
VariableFactory::intVariableFactory
static IntFunc intVariableFactory(const nlohmann::json &cfg)
Definition
VariableFactory.cxx:63
VariableFactory::IntFunc
std::function< int(const SG::AuxElement &)> IntFunc
Definition
VariableFactory.h:15
SG::AuxElement
AuxElement(SG::AuxVectorData *container, size_t index)
Base class for elements of a container that can have aux data.
Generated on
for ATLAS Offline Software by
1.17.0