ATLAS Offline Software
Loading...
Searching...
No Matches
DRAW_ZMUMUSkimmingTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
6// DRAW_ZMUMUSkimmingTool.h, (c) ATLAS Detector software
8
9#ifndef DERIVATIONFRAMEWORK_SKIMMINGTOOLEXAMPLE_H
10#define DERIVATIONFRAMEWORK_SKIMMINGTOOLEXAMPLE_H 1
11
12#include<string>
13
14// Gaudi & Athena basics
16
17// DerivationFramework includes
21
22namespace DerivationFramework {
23
32
33 public:
35 DRAW_ZMUMUSkimmingTool( const std::string& t, const std::string& n, const IInterface* p );
36
39
40 // Athena algtool's Hooks
41 StatusCode initialize() override;
42 StatusCode finalize() override;
43
45 bool eventPassesFilter() const override;
46
47 private:
48 mutable std::atomic<unsigned int> m_ntot{0};
49 mutable std::atomic<unsigned int> m_npass{0};
50
51 SG::ReadHandleKey<xAOD::MuonContainer> m_muonSGKey{this,"MuonContainerKey","Muons"};
52
53 ToolHandle<CP::IMuonSelectionTool> m_muonSelectionTool{this,"MuonSelectorTool", "CP::MuonSelectionTool/MuonSelectionTool"};
54 Gaudi::Property<unsigned int> m_nMuons{this, "MinimumNumberOfMuons", 1};
55 Gaudi::Property<float> m_muonPtCut{this, "MuonPtCut", 20.};
56
57 };
58
59}
60
61
62#endif
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
SG::ReadHandleKey< xAOD::MuonContainer > m_muonSGKey
ToolHandle< CP::IMuonSelectionTool > m_muonSelectionTool
bool eventPassesFilter() const override
Check that the current event passes this filter.
DRAW_ZMUMUSkimmingTool(const std::string &t, const std::string &n, const IInterface *p)
Constructor with parameters.
Property holding a SG store/key/clid from which a ReadHandle is made.
THE reconstruction tool.