ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
PrimaryDPDMaker
PrimaryDPDMaker
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
15
#include "
AthenaBaseComps/AthAlgTool.h
"
16
17
// DerivationFramework includes
18
#include "
DerivationFrameworkInterfaces/ISkimmingTool.h
"
19
#include "
MuonAnalysisInterfaces/IMuonSelectionTool.h
"
20
#include "
xAODMuon/MuonContainer.h
"
21
22
namespace
DerivationFramework
{
23
31
class
DRAW_ZMUMUSkimmingTool
:
public
AthAlgTool
,
public
ISkimmingTool
{
32
33
public
:
35
DRAW_ZMUMUSkimmingTool
(
const
std::string& t,
const
std::string& n,
const
IInterface* p );
36
38
~DRAW_ZMUMUSkimmingTool
();
39
40
// Athena algtool's Hooks
41
StatusCode
initialize
()
override
;
42
StatusCode
finalize
()
override
;
43
45
bool
eventPassesFilter
(
const
EventContext& ctx)
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.h
MuonContainer.h
IMuonSelectionTool.h
ISkimmingTool.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
DerivationFramework::DRAW_ZMUMUSkimmingTool::m_muonSGKey
SG::ReadHandleKey< xAOD::MuonContainer > m_muonSGKey
Definition
DRAW_ZMUMUSkimmingTool.h:51
DerivationFramework::DRAW_ZMUMUSkimmingTool::~DRAW_ZMUMUSkimmingTool
~DRAW_ZMUMUSkimmingTool()
Destructor.
DerivationFramework::DRAW_ZMUMUSkimmingTool::m_muonSelectionTool
ToolHandle< CP::IMuonSelectionTool > m_muonSelectionTool
Definition
DRAW_ZMUMUSkimmingTool.h:53
DerivationFramework::DRAW_ZMUMUSkimmingTool::m_ntot
std::atomic< unsigned int > m_ntot
Definition
DRAW_ZMUMUSkimmingTool.h:48
DerivationFramework::DRAW_ZMUMUSkimmingTool::eventPassesFilter
bool eventPassesFilter(const EventContext &ctx) const override
Check that the current event passes this filter.
Definition
DRAW_ZMUMU_SkimmingTool.cxx:43
DerivationFramework::DRAW_ZMUMUSkimmingTool::m_nMuons
Gaudi::Property< unsigned int > m_nMuons
Definition
DRAW_ZMUMUSkimmingTool.h:54
DerivationFramework::DRAW_ZMUMUSkimmingTool::finalize
StatusCode finalize() override
Definition
DRAW_ZMUMU_SkimmingTool.cxx:35
DerivationFramework::DRAW_ZMUMUSkimmingTool::m_npass
std::atomic< unsigned int > m_npass
Definition
DRAW_ZMUMUSkimmingTool.h:49
DerivationFramework::DRAW_ZMUMUSkimmingTool::m_muonPtCut
Gaudi::Property< float > m_muonPtCut
Definition
DRAW_ZMUMUSkimmingTool.h:55
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::initialize
StatusCode initialize() override
Definition
DRAW_ZMUMU_SkimmingTool.cxx:29
DerivationFramework::ISkimmingTool
Definition
ISkimmingTool.h:24
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
DerivationFramework
THE reconstruction tool.
Definition
CascadeTools.h:16
Generated on
for ATLAS Offline Software by
1.17.0