ATLAS Offline Software
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 
19 namespace DerivationFramework {
20 
22  const std::string& n,
23  const IInterface* p) :
25  m_expression("true")
26  {
27  declareInterface<DerivationFramework::ISkimmingTool>(this);
28  declareProperty("expression", m_expression);
29  }
30 
32  {
34  return StatusCode::SUCCESS;
35  }
36 
38  {
40  return StatusCode::SUCCESS;
41  }
42 
44  {
45  return m_parser->evaluateAsBool();
46  }
47 }
ExpressionParserUserBase< AthAlgTool, 1 >::finalizeParser
StatusCode finalizeParser()
DerivationFramework::xAODStringSkimmingTool::m_expression
std::string m_expression
Definition: xAODStringSkimmingTool.h:30
DerivationFramework::xAODStringSkimmingTool::eventPassesFilter
virtual bool eventPassesFilter() const
Check that the current event passes this filter.
Definition: xAODStringSkimmingTool.cxx:43
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
ExpressionParserUserBase< AthAlgTool, 1 >::m_parser
std::conditional< NUM_PARSER==1, std::unique_ptr< ExpressionParsing::ExpressionParser >, std::array< std::unique_ptr< ExpressionParsing::ExpressionParser >, NUM_PARSER > >::type m_parser
Definition: ExpressionParserUser.h:100
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ExpressionParserUserWithTrigSupport< AthAlgTool >::initializeParser
StatusCode initializeParser(ExpressionParsing::SelectionArg< 1 > selection_string)
Definition: ExpressionParserUserWithTrigSupport.h:25
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
DerivationFramework::xAODStringSkimmingTool::initialize
StatusCode initialize()
Definition: xAODStringSkimmingTool.cxx:31
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
ExpressionParserUserWithTrigSupport
Definition: ExpressionParserUserWithTrigSupport.h:16
xAODStringSkimmingTool.h
AthAlgTool
Definition: AthAlgTool.h:26
DerivationFramework::xAODStringSkimmingTool::xAODStringSkimmingTool
xAODStringSkimmingTool(const std::string &t, const std::string &n, const IInterface *p)
Definition: xAODStringSkimmingTool.cxx:21
DerivationFramework::xAODStringSkimmingTool::finalize
StatusCode finalize()
Definition: xAODStringSkimmingTool.cxx:37