ATLAS Offline Software
Loading...
Searching...
No Matches
xAODStringSkimmingTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
6// xAODStringSkimmingTool.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
18
19namespace DerivationFramework {
20
22 const std::string& n,
23 const IInterface* p) :
25 m_expression("true")
26 {
27 declareProperty("expression", m_expression);
28 }
29
31 {
33 return StatusCode::SUCCESS;
34 }
35
37 {
39 return StatusCode::SUCCESS;
40 }
41
43 {
44 return m_parser->evaluateAsBool();
45 }
46}
#define ATH_CHECK
Evaluate an expression and check for errors.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
virtual bool eventPassesFilter() const
Check that the current event passes this filter.
xAODStringSkimmingTool(const std::string &t, const std::string &n, const IInterface *p)
std::conditional< 1==1, std::unique_ptr< ExpressionParsing::ExpressionParser >, std::array< std::unique_ptr< ExpressionParsing::ExpressionParser >, 1 > >::type m_parser
StatusCode initializeParser(ExpressionParsing::SelectionArg< 1 > selection_string)
THE reconstruction tool.