ATLAS Offline Software
PhysicsAnalysis
DerivationFramework
DerivationFrameworkExamples
DerivationFrameworkExamples
SkimmingToolExample.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// SkimmingToolExample.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 "
xAODMuon/MuonContainer.h
"
20
21
namespace
DerivationFramework
{
22
30
class
SkimmingToolExample
:
public
AthAlgTool
,
public
ISkimmingTool
{
31
32
public
:
34
SkimmingToolExample
(
const
std::string&
t
,
const
std::string&
n
,
const
IInterface*
p
);
35
37
~SkimmingToolExample
();
38
39
// Athena algtool's Hooks
40
virtual
StatusCode
initialize
()
override
;
41
virtual
StatusCode
finalize
()
override
;
42
44
virtual
bool
eventPassesFilter
()
const override
;
45
46
private
:
47
mutable
std::atomic<unsigned int>
m_ntot
;
48
mutable
std::atomic<unsigned int>
m_npass
;
49
std::string
m_muonSGKey
;
50
unsigned
int
m_nMuons
;
51
double
m_muonPtCut
;
52
53
};
54
55
}
56
57
58
#endif
DerivationFramework::SkimmingToolExample::initialize
virtual StatusCode initialize() override
Definition:
SkimmingToolExample.cxx:39
DerivationFramework::SkimmingToolExample::finalize
virtual StatusCode finalize() override
Definition:
SkimmingToolExample.cxx:44
DerivationFramework::SkimmingToolExample::m_muonPtCut
double m_muonPtCut
Definition:
SkimmingToolExample.h:51
DerivationFramework::ISkimmingTool
Definition:
ISkimmingTool.h:25
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
DerivationFramework::SkimmingToolExample::SkimmingToolExample
SkimmingToolExample(const std::string &t, const std::string &n, const IInterface *p)
Constructor with parameters.
Definition:
SkimmingToolExample.cxx:18
DerivationFramework::SkimmingToolExample
Definition:
SkimmingToolExample.h:30
DerivationFramework::SkimmingToolExample::~SkimmingToolExample
~SkimmingToolExample()
Destructor.
Definition:
SkimmingToolExample.cxx:35
python.utils.AtlRunQueryDQUtils.p
p
Definition:
AtlRunQueryDQUtils.py:210
DerivationFramework::SkimmingToolExample::eventPassesFilter
virtual bool eventPassesFilter() const override
Check that the current event passes this filter.
Definition:
SkimmingToolExample.cxx:52
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::SkimmingToolExample::m_ntot
std::atomic< unsigned int > m_ntot
Definition:
SkimmingToolExample.h:47
DerivationFramework
THE reconstruction tool.
Definition:
ParticleSortingAlg.h:24
DerivationFramework::SkimmingToolExample::m_npass
std::atomic< unsigned int > m_npass
Definition:
SkimmingToolExample.h:48
MuonContainer.h
DerivationFramework::SkimmingToolExample::m_nMuons
unsigned int m_nMuons
Definition:
SkimmingToolExample.h:50
AthAlgTool
Definition:
AthAlgTool.h:26
DerivationFramework::SkimmingToolExample::m_muonSGKey
std::string m_muonSGKey
Definition:
SkimmingToolExample.h:49
ISkimmingTool.h
Generated on Thu Nov 7 2024 21:26:20 for ATLAS Offline Software by
1.8.18