ATLAS Offline Software
CutTool.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // CutTool.h
8 // Header file for class CutTool
9 // Author: Karsten Koeneke <karsten.koeneke@cern.ch>
11 #ifndef EVENTUTILS_CUTTOOL_H
12 #define EVENTUTILS_CUTTOOL_H 1
13 
14 // STL includes
15 #include <string>
16 
17 // FrameWork includes
21 
22 class CutTool
23  : public ExpressionParserUserWithTrigSupport<::AthAlgTool>,
25 {
26 
28  // Public methods:
30  public:
31 
32  // Copy constructor:
33 
35  CutTool( const std::string& type,
36  const std::string& name,
37  const IInterface* parent );
38 
40  virtual ~CutTool();
41 
43  virtual StatusCode initialize() override;
44 
46  virtual StatusCode finalize() override;
47 
48 
50  virtual bool eventPassesFilter() const final override;
51 
53  // Private data:
55  private:
56 
58  StringProperty m_cut;
59 
60 
62  //mutable unsigned long m_nEventsProcessed;
63 
64 
65 };
66 
68 // Inline methods:
70 
71 
72 #endif //> !EVENTUTILS_CUTTOOL_H
CutTool::CutTool
CutTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition: CutTool.cxx:28
CutTool::eventPassesFilter
virtual bool eventPassesFilter() const final override
Implement the method from the ISkimmingTool interface.
Definition: CutTool.cxx:72
CutTool::m_cut
StringProperty m_cut
The cut string.
Definition: CutTool.h:58
CutTool::initialize
virtual StatusCode initialize() override
Athena algtool's initialize.
Definition: CutTool.cxx:48
CutTool::~CutTool
virtual ~CutTool()
Destructor:
Definition: CutTool.cxx:41
DerivationFramework::ISkimmingTool
Definition: ISkimmingTool.h:25
ExpressionParserUserWithTrigSupport.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CutTool::finalize
virtual StatusCode finalize() override
Athena algtool's finalize.
Definition: CutTool.cxx:61
CutTool
Definition: CutTool.h:25
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
ExpressionParserUserWithTrigSupport
Definition: ExpressionParserUserWithTrigSupport.h:16
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
ISkimmingTool.h