ATLAS Offline Software
Loading...
Searching...
No Matches
IAccessor.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 _ExpressionParsing_IAccessor_h_
5#define _ExpressionParsing_IAccessor_h_
6
7#include <string>
8#include <vector>
9class EventContext;
10
11namespace ExpressionParsing {
12
17 class IAccessor {
18 public :
20
21 virtual ~IAccessor() {}
22 virtual VariableType variableType(const std::string &var_name) const =0;
23 virtual int loadInt(const EventContext& ctx, const std::string &var_name) const = 0;
24 virtual double loadDouble(const EventContext& ctx, const std::string &var_name) const = 0;
25 virtual std::vector<int> loadVecInt(const EventContext& ctx, const std::string &var_name) const = 0;
26 virtual std::vector<double> loadVec(const EventContext& ctx, const std::string &var_name) const = 0;
27 };
28
29}
30#endif
Interface of auxiliary classes to access xAOD object content.
Definition IAccessor.h:17
virtual int loadInt(const EventContext &ctx, const std::string &var_name) const =0
virtual std::vector< int > loadVecInt(const EventContext &ctx, const std::string &var_name) const =0
virtual VariableType variableType(const std::string &var_name) const =0
virtual std::vector< double > loadVec(const EventContext &ctx, const std::string &var_name) const =0
virtual double loadDouble(const EventContext &ctx, const std::string &var_name) const =0
Namespace holding all the expression evaluation code.