ATLAS Offline Software
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
20 #include "xAODMuon/MuonContainer.h"
21 
22 namespace 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
DerivationFramework::DRAW_ZMUMUSkimmingTool::m_npass
std::atomic< unsigned int > m_npass
Definition: DRAW_ZMUMUSkimmingTool.h:49
DerivationFramework::DRAW_ZMUMUSkimmingTool::DRAW_ZMUMUSkimmingTool
DRAW_ZMUMUSkimmingTool(const std::string &t, const std::string &n, const IInterface *p)
Constructor with parameters.
Definition: DRAW_ZMUMU_SkimmingTool.cxx:18
DerivationFramework::DRAW_ZMUMUSkimmingTool::eventPassesFilter
bool eventPassesFilter() const override
Check that the current event passes this filter.
Definition: DRAW_ZMUMU_SkimmingTool.cxx:43
DerivationFramework::DRAW_ZMUMUSkimmingTool::initialize
StatusCode initialize() override
Definition: DRAW_ZMUMU_SkimmingTool.cxx:29
DerivationFramework::ISkimmingTool
Definition: ISkimmingTool.h:25
DerivationFramework::DRAW_ZMUMUSkimmingTool::m_nMuons
Gaudi::Property< unsigned int > m_nMuons
Definition: DRAW_ZMUMUSkimmingTool.h:54
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
DerivationFramework::DRAW_ZMUMUSkimmingTool::m_muonSelectionTool
ToolHandle< CP::IMuonSelectionTool > m_muonSelectionTool
Definition: DRAW_ZMUMUSkimmingTool.h:53
IMuonSelectionTool.h
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
DerivationFramework::DRAW_ZMUMUSkimmingTool::m_muonSGKey
SG::ReadHandleKey< xAOD::MuonContainer > m_muonSGKey
Definition: DRAW_ZMUMUSkimmingTool.h:51
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::DRAW_ZMUMUSkimmingTool
Definition: DRAW_ZMUMUSkimmingTool.h:31
MuonContainer.h
DerivationFramework::DRAW_ZMUMUSkimmingTool::m_muonPtCut
Gaudi::Property< float > m_muonPtCut
Definition: DRAW_ZMUMUSkimmingTool.h:55
AthAlgTool
Definition: AthAlgTool.h:26
DerivationFramework::DRAW_ZMUMUSkimmingTool::finalize
StatusCode finalize() override
Definition: DRAW_ZMUMU_SkimmingTool.cxx:35
ISkimmingTool.h
DerivationFramework::DRAW_ZMUMUSkimmingTool::~DRAW_ZMUMUSkimmingTool
~DRAW_ZMUMUSkimmingTool()
Destructor.
DerivationFramework::DRAW_ZMUMUSkimmingTool::m_ntot
std::atomic< unsigned int > m_ntot
Definition: DRAW_ZMUMUSkimmingTool.h:48