ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
DerivationFramework::ExpressionParserHelper Class Reference

Helper class for using ExpressionParsing::ExpressionParser. More...

#include <ExpressionParserHelper.h>

Collaboration diagram for DerivationFramework::ExpressionParserHelper:

Public Member Functions

 ExpressionParserHelper (ServiceHandle< StoreGateSvc > &evtStore)
 Default constructor. More...
 
ExpressionParsing::ExpressionParserparser ()
 Return a reference to the expression parser. More...
 

Private Attributes

ExpressionParsing::SGxAODProxyLoader m_xaodLoader
 The xAOD proxy loader. More...
 
ExpressionParsing::SGNTUPProxyLoader m_ntupLoader
 The ntuple variable proxy loader. More...
 
ExpressionParsing::MultipleProxyLoader m_proxyLoader
 The multiple proxy loader. More...
 
ExpressionParsing::ExpressionParser m_parser
 The main expression parser object. More...
 

Detailed Description

Helper class for using ExpressionParsing::ExpressionParser.

Since the correct memory management for ExpressionParsing::ExpressionParser is not so trivial, instead of implementing that individually in every DF class that uses it, would not be a too good design. Instead each DF class should migrate to using this helper class to avoid memory leaks coming from the expression parsing code.

Author
Attila Krasznahorkay Attil.nosp@m.a.Kr.nosp@m.aszna.nosp@m.hork.nosp@m.ay@ce.nosp@m.rn.c.nosp@m.h

Definition at line 31 of file ExpressionParserHelper.h.

Constructor & Destructor Documentation

◆ ExpressionParserHelper()

DerivationFramework::ExpressionParserHelper::ExpressionParserHelper ( ServiceHandle< StoreGateSvc > &  evtStore)
inline

Default constructor.

Definition at line 35 of file ExpressionParserHelper.h.

36  : m_xaodLoader( evtStore ), m_ntupLoader( evtStore ),
38  }

Member Function Documentation

◆ parser()

ExpressionParsing::ExpressionParser& DerivationFramework::ExpressionParserHelper::parser ( )
inline

Return a reference to the expression parser.

Definition at line 41 of file ExpressionParserHelper.h.

41  {
42  return m_parser;
43  }

Member Data Documentation

◆ m_ntupLoader

ExpressionParsing::SGNTUPProxyLoader DerivationFramework::ExpressionParserHelper::m_ntupLoader
private

The ntuple variable proxy loader.

Definition at line 49 of file ExpressionParserHelper.h.

◆ m_parser

ExpressionParsing::ExpressionParser DerivationFramework::ExpressionParserHelper::m_parser
private

The main expression parser object.

Definition at line 53 of file ExpressionParserHelper.h.

◆ m_proxyLoader

ExpressionParsing::MultipleProxyLoader DerivationFramework::ExpressionParserHelper::m_proxyLoader
private

The multiple proxy loader.

Definition at line 51 of file ExpressionParserHelper.h.

◆ m_xaodLoader

ExpressionParsing::SGxAODProxyLoader DerivationFramework::ExpressionParserHelper::m_xaodLoader
private

The xAOD proxy loader.

Definition at line 47 of file ExpressionParserHelper.h.


The documentation for this class was generated from the following file:
DerivationFramework::ExpressionParserHelper::m_proxyLoader
ExpressionParsing::MultipleProxyLoader m_proxyLoader
The multiple proxy loader.
Definition: ExpressionParserHelper.h:51
DerivationFramework::ExpressionParserHelper::m_parser
ExpressionParsing::ExpressionParser m_parser
The main expression parser object.
Definition: ExpressionParserHelper.h:53
DerivationFramework::ExpressionParserHelper::m_xaodLoader
ExpressionParsing::SGxAODProxyLoader m_xaodLoader
The xAOD proxy loader.
Definition: ExpressionParserHelper.h:47
DerivationFramework::ExpressionParserHelper::m_ntupLoader
ExpressionParsing::SGNTUPProxyLoader m_ntupLoader
The ntuple variable proxy loader.
Definition: ExpressionParserHelper.h:49