ATLAS Offline Software
PhysicsAnalysis
CommonTools
ExpressionEvaluation
ExpressionEvaluation
IProxyLoader.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// IProxyLoader.h, (c) ATLAS Detector software
8
// Author: Thomas Gillam (thomas.gillam@cern.ch)
9
// ExpressionParsing library
11
12
#ifndef IPROXY_LOADER_H
13
#define IPROXY_LOADER_H
14
15
#include <string>
16
#include <vector>
17
18
namespace
ExpressionParsing
{
19
class
IProxyLoader
{
20
public
:
21
enum
VariableType
{
VT_UNK
,
VT_INT
,
VT_DOUBLE
,
VT_VECINT
,
VT_VECDOUBLE
,
VT_VECEMPTY
};
22
23
virtual
~IProxyLoader
() { }
24
25
virtual
void
reset
() = 0;
26
27
virtual
VariableType
variableTypeFromString
(
const
std::string &
varname
)
const
= 0;
28
29
virtual
int
loadIntVariableFromString
(
const
std::string &
varname
)
const
= 0;
30
virtual
double
loadDoubleVariableFromString
(
const
std::string &
varname
)
const
= 0;
31
virtual
std::vector<int>
loadVecIntVariableFromString
(
const
std::string &
varname
)
const
= 0;
32
virtual
std::vector<double>
loadVecDoubleVariableFromString
(
const
std::string &
varname
)
const
= 0;
33
};
34
}
35
36
#endif // IPROXY_LOADER_H
ExpressionParsing::IProxyLoader::VT_VECEMPTY
@ VT_VECEMPTY
Definition:
IProxyLoader.h:21
ExpressionParsing::IProxyLoader::VT_VECDOUBLE
@ VT_VECDOUBLE
Definition:
IProxyLoader.h:21
ExpressionParsing::IProxyLoader::loadDoubleVariableFromString
virtual double loadDoubleVariableFromString(const std::string &varname) const =0
ExpressionParsing::IProxyLoader::variableTypeFromString
virtual VariableType variableTypeFromString(const std::string &varname) const =0
ExpressionParsing::IProxyLoader
Definition:
IProxyLoader.h:19
ExpressionParsing::IProxyLoader::VariableType
VariableType
Definition:
IProxyLoader.h:21
ExpressionParsing::IProxyLoader::VT_DOUBLE
@ VT_DOUBLE
Definition:
IProxyLoader.h:21
ExpressionParsing::IProxyLoader::VT_UNK
@ VT_UNK
Definition:
IProxyLoader.h:21
ExpressionParsing::IProxyLoader::loadVecIntVariableFromString
virtual std::vector< int > loadVecIntVariableFromString(const std::string &varname) const =0
ExpressionParsing::IProxyLoader::~IProxyLoader
virtual ~IProxyLoader()
Definition:
IProxyLoader.h:23
ExpressionParsing
Namespace holding all the expression evaluation code.
Definition:
ExpressionParser.h:26
ExpressionParsing::IProxyLoader::VT_VECINT
@ VT_VECINT
Definition:
IProxyLoader.h:21
ExpressionParsing::IProxyLoader::VT_INT
@ VT_INT
Definition:
IProxyLoader.h:21
ExpressionParsing::IProxyLoader::loadVecDoubleVariableFromString
virtual std::vector< double > loadVecDoubleVariableFromString(const std::string &varname) const =0
LArG4AODNtuplePlotter.varname
def varname(hname)
Definition:
LArG4AODNtuplePlotter.py:37
ExpressionParsing::IProxyLoader::reset
virtual void reset()=0
ExpressionParsing::IProxyLoader::loadIntVariableFromString
virtual int loadIntVariableFromString(const std::string &varname) const =0
Generated on Thu Nov 7 2024 21:17:25 for ATLAS Offline Software by
1.8.18