ATLAS Offline Software
SGNTUPProxyLoader.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 // 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 
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 {
24  public:
26 
27  SGNTUPProxyLoader(StoreGateSvc_t &evtStore) : m_evtStore(evtStore) { }
28  virtual ~SGNTUPProxyLoader();
29 
30  virtual void reset();
31 
32  virtual IProxyLoader::VariableType variableTypeFromString(const std::string &varname) const;
33 
34  virtual int loadIntVariableFromString(const std::string &varname) const;
35  virtual double loadDoubleVariableFromString(const std::string &varname) const;
36  virtual std::vector<int> loadVecIntVariableFromString(const std::string &varname) const;
37  virtual std::vector<double> loadVecDoubleVariableFromString(const std::string &varname) const;
38 
39  private:
41  };
42 }
43 
44 #endif // SG_NTUP_PROXY_LOADER_H
ExpressionParsing::SGNTUPProxyLoader::loadDoubleVariableFromString
virtual double loadDoubleVariableFromString(const std::string &varname) const
Definition: SGNTUPProxyLoader.cxx:68
ExpressionParsing::SGNTUPProxyLoader::SGNTUPProxyLoader
SGNTUPProxyLoader(StoreGateSvc_t &evtStore)
Definition: SGNTUPProxyLoader.h:27
BuiltinsClids.h
ExpressionParsing::IProxyLoader
Definition: IProxyLoader.h:19
ExpressionParsing::SGNTUPProxyLoader::StoreGateSvc_t
ServiceHandle< StoreGateSvc > StoreGateSvc_t
Definition: SGNTUPProxyLoader.h:25
ExpressionParsing::IProxyLoader::VariableType
VariableType
Definition: IProxyLoader.h:21
StlVectorClids.h
ExpressionParsing::SGNTUPProxyLoader
Definition: SGNTUPProxyLoader.h:23
ExpressionParsing
Namespace holding all the expression evaluation code.
Definition: ExpressionParser.h:26
ExpressionParsing::SGNTUPProxyLoader::variableTypeFromString
virtual IProxyLoader::VariableType variableTypeFromString(const std::string &varname) const
Definition: SGNTUPProxyLoader.cxx:45
ExpressionParsing::SGNTUPProxyLoader::~SGNTUPProxyLoader
virtual ~SGNTUPProxyLoader()
Definition: SGNTUPProxyLoader.cxx:37
ExpressionParsing::SGNTUPProxyLoader::loadVecIntVariableFromString
virtual std::vector< int > loadVecIntVariableFromString(const std::string &varname) const
Definition: SGNTUPProxyLoader.cxx:75
ExpressionParsing::SGNTUPProxyLoader::loadIntVariableFromString
virtual int loadIntVariableFromString(const std::string &varname) const
Definition: SGNTUPProxyLoader.cxx:60
LArG4AODNtuplePlotter.varname
def varname(hname)
Definition: LArG4AODNtuplePlotter.py:37
ExpressionParsing::SGNTUPProxyLoader::m_evtStore
StoreGateSvc_t m_evtStore
Definition: SGNTUPProxyLoader.h:40
ExpressionParsing::SGNTUPProxyLoader::reset
virtual void reset()
Definition: SGNTUPProxyLoader.cxx:41
ExpressionParsing::SGNTUPProxyLoader::loadVecDoubleVariableFromString
virtual std::vector< double > loadVecDoubleVariableFromString(const std::string &varname) const
Definition: SGNTUPProxyLoader.cxx:83
IProxyLoader.h
StoreGateSvc.h
ServiceHandle< StoreGateSvc >