ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
CommonTools
ExpressionEvaluation
ExpressionEvaluation
SGNTUPProxyLoader.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// SGNTUPProxyLoader.h, (c) ATLAS Detector software
8
// Author: Thomas Gillam (thomas.gillam@cern.ch)
9
// ExpressionParsing library
11
12
#ifndef SG_NTUP_PROXY_LOADER_H
13
#define SG_NTUP_PROXY_LOADER_H
14
15
#include "
ExpressionEvaluation/RelayProxyLoader.h
"
16
17
#include "GaudiKernel/ServiceHandle.h"
18
#include "
StoreGate/StoreGateSvc.h
"
19
#include "
SGTools/StlVectorClids.h
"
20
#include "
SGTools/BuiltinsClids.h
"
21
22
namespace
ExpressionParsing
{
23
class
SGNTUPProxyLoader
:
public
RelayProxyLoader
{
24
public
:
25
typedef
ServiceHandle<StoreGateSvc>
StoreGateSvc_t
;
26
27
SGNTUPProxyLoader
(
StoreGateSvc_t
&evtStore) :
m_evtStore
(evtStore) { }
28
virtual
~SGNTUPProxyLoader
();
29
30
virtual
void
reset
()
override
;
31
32
virtual
IAccessor::VariableType
variableTypeFromString
(
const
std::string &varname)
const override
;
33
34
virtual
int
loadInt
(
const
EventContext& ctx,
const
std::string &varname)
const override
;
35
virtual
double
loadDouble
(
const
EventContext& ctx,
const
std::string &varname)
const override
;
36
virtual
std::vector<int>
loadVecInt
(
const
EventContext& ctx,
const
std::string &varname)
const override
;
37
virtual
std::vector<double>
loadVec
(
const
EventContext& ctx,
const
std::string &varname)
const override
;
38
39
private
:
40
StoreGateSvc_t
m_evtStore
;
41
};
42
}
43
44
#endif
// SG_NTUP_PROXY_LOADER_H
BuiltinsClids.h
RelayProxyLoader.h
StlVectorClids.h
StoreGateSvc.h
ExpressionParsing::IAccessor::VariableType
VariableType
Definition
IAccessor.h:19
ExpressionParsing::RelayProxyLoader
Definition
RelayProxyLoader.h:9
ExpressionParsing::SGNTUPProxyLoader::loadDouble
virtual double loadDouble(const EventContext &ctx, const std::string &varname) const override
Definition
SGNTUPProxyLoader.cxx:68
ExpressionParsing::SGNTUPProxyLoader::m_evtStore
StoreGateSvc_t m_evtStore
Definition
SGNTUPProxyLoader.h:40
ExpressionParsing::SGNTUPProxyLoader::variableTypeFromString
virtual IAccessor::VariableType variableTypeFromString(const std::string &varname) const override
Definition
SGNTUPProxyLoader.cxx:45
ExpressionParsing::SGNTUPProxyLoader::loadInt
virtual int loadInt(const EventContext &ctx, const std::string &varname) const override
Definition
SGNTUPProxyLoader.cxx:60
ExpressionParsing::SGNTUPProxyLoader::loadVecInt
virtual std::vector< int > loadVecInt(const EventContext &ctx, const std::string &varname) const override
Definition
SGNTUPProxyLoader.cxx:75
ExpressionParsing::SGNTUPProxyLoader::StoreGateSvc_t
ServiceHandle< StoreGateSvc > StoreGateSvc_t
Definition
SGNTUPProxyLoader.h:25
ExpressionParsing::SGNTUPProxyLoader::~SGNTUPProxyLoader
virtual ~SGNTUPProxyLoader()
Definition
SGNTUPProxyLoader.cxx:37
ExpressionParsing::SGNTUPProxyLoader::loadVec
virtual std::vector< double > loadVec(const EventContext &ctx, const std::string &varname) const override
Definition
SGNTUPProxyLoader.cxx:83
ExpressionParsing::SGNTUPProxyLoader::SGNTUPProxyLoader
SGNTUPProxyLoader(StoreGateSvc_t &evtStore)
Definition
SGNTUPProxyLoader.h:27
ExpressionParsing::SGNTUPProxyLoader::reset
virtual void reset() override
Definition
SGNTUPProxyLoader.cxx:41
ServiceHandle
Definition
ClusterMakerTool.h:36
ExpressionParsing
Namespace holding all the expression evaluation code.
Definition
ExpressionParser.h:26
Generated on
for ATLAS Offline Software by
1.17.0