ATLAS Offline Software
Loading...
Searching...
No Matches
NTUPStringSkimmingTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6// NTUPStringSkimmingTool.cxx, (c) ATLAS Detector software
8// Author: Thomas Gillam (thomas.gillam@cern.ch)
9// Based on the Integrated Simulation Framework
10//
11// Use of ExpressionParsing to analyse a more complex string
12
14
15#include <vector>
16#include <string>
17
20
21namespace DerivationFramework {
22
24 const std::string& n,
25 const IInterface* p) :
26 base_class(t,n,p),
27 m_expression("true")
28 {
29 declareProperty("expression", m_expression);
30 }
31
33 {
34 m_parser = std::make_unique<ExpressionParsing::ExpressionParser>(new ExpressionParsing::SGNTUPProxyLoader(evtStore()));
35 m_parser->loadExpression(m_expression);
36 return StatusCode::SUCCESS;
37 }
38
40 {
41 return m_parser->evaluateAsBool();
42 return true;
43 }
44
45}
std::unique_ptr< ExpressionParsing::ExpressionParser > m_parser
NTUPStringSkimmingTool(const std::string &t, const std::string &n, const IInterface *p)
THE reconstruction tool.