ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
DerivationFramework
DerivationFrameworkBPhys
src
BPhysPVThinningTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// BPhysPVThinningTool.h
8
9
#ifndef DERIVATIONFRAMEWORK_BPhysPVThinningTool_H
10
#define DERIVATIONFRAMEWORK_BPhysPVThinningTool_H 1
11
12
#include "
xAODTracking/VertexContainer.h
"
13
// Gaudi & Athena basics
14
#include "
AthenaBaseComps/AthAlgTool.h
"
15
#include "
StoreGate/ReadHandleKeyArray.h
"
16
#include "
StoreGate/ThinningHandleKey.h
"
17
// DerivationFramework includes
18
#include "
DerivationFrameworkInterfaces/IThinningTool.h
"
19
20
namespace
DerivationFramework
{
21
22
23
class
BPhysPVThinningTool
:
public
extends<AthAlgTool, IThinningTool> {
24
25
public
:
27
BPhysPVThinningTool
(
const
std::string& t,
const
std::string& n,
const
IInterface* p );
28
30
~BPhysPVThinningTool
();
31
32
// Athena algtool's Hooks
33
virtual
StatusCode
initialize
()
override
;
34
virtual
StatusCode
finalize
()
override
;
35
37
virtual
StatusCode
doThinning
(
const
EventContext& ctx)
const override
;
38
39
private
:
40
StringProperty
m_streamName
{
this
,
"StreamName"
,
""
,
"Name of the stream being thinned"
};
41
SG::ReadHandleKeyArray<xAOD::VertexContainer>
m_BPhyCandList
;
42
SG::ThinningHandleKey<xAOD::TrackParticleContainer>
m_TrackContainerName
;
43
SG::ThinningHandleKey<xAOD::VertexContainer>
m_PVContainerName
;
44
mutable
std::atomic<unsigned int>
m_ntot
;
45
mutable
std::atomic<unsigned int>
m_npass
;
46
mutable
std::atomic<unsigned int>
m_tracks_kept
;
47
bool
m_keepTracks
;
48
};
49
50
}
51
52
53
#endif
AthAlgTool.h
IThinningTool.h
ReadHandleKeyArray.h
ThinningHandleKey.h
HandleKey object for adding thinning to an object.
VertexContainer.h
DerivationFramework::BPhysPVThinningTool::m_ntot
std::atomic< unsigned int > m_ntot
Definition
BPhysPVThinningTool.h:44
DerivationFramework::BPhysPVThinningTool::initialize
virtual StatusCode initialize() override
Definition
BPhysPVThinningTool.cxx:46
DerivationFramework::BPhysPVThinningTool::m_BPhyCandList
SG::ReadHandleKeyArray< xAOD::VertexContainer > m_BPhyCandList
Definition
BPhysPVThinningTool.h:41
DerivationFramework::BPhysPVThinningTool::BPhysPVThinningTool
BPhysPVThinningTool(const std::string &t, const std::string &n, const IInterface *p)
Constructor with parameters.
Definition
BPhysPVThinningTool.cxx:26
DerivationFramework::BPhysPVThinningTool::m_PVContainerName
SG::ThinningHandleKey< xAOD::VertexContainer > m_PVContainerName
Definition
BPhysPVThinningTool.h:43
DerivationFramework::BPhysPVThinningTool::~BPhysPVThinningTool
~BPhysPVThinningTool()
Destructor.
Definition
BPhysPVThinningTool.cxx:42
DerivationFramework::BPhysPVThinningTool::m_npass
std::atomic< unsigned int > m_npass
Definition
BPhysPVThinningTool.h:45
DerivationFramework::BPhysPVThinningTool::m_TrackContainerName
SG::ThinningHandleKey< xAOD::TrackParticleContainer > m_TrackContainerName
Definition
BPhysPVThinningTool.h:42
DerivationFramework::BPhysPVThinningTool::m_tracks_kept
std::atomic< unsigned int > m_tracks_kept
Definition
BPhysPVThinningTool.h:46
DerivationFramework::BPhysPVThinningTool::m_keepTracks
bool m_keepTracks
Definition
BPhysPVThinningTool.h:47
DerivationFramework::BPhysPVThinningTool::m_streamName
StringProperty m_streamName
Definition
BPhysPVThinningTool.h:40
DerivationFramework::BPhysPVThinningTool::doThinning
virtual StatusCode doThinning(const EventContext &ctx) const override
Check that the current event passes this filter.
Definition
BPhysPVThinningTool.cxx:64
DerivationFramework::BPhysPVThinningTool::finalize
virtual StatusCode finalize() override
Definition
BPhysPVThinningTool.cxx:55
SG::ThinningHandleKey
HandleKey object for adding thinning to an object.
Definition
ThinningHandleKey.h:39
DerivationFramework
THE reconstruction tool.
Definition
CascadeTools.h:16
SG::ReadHandleKeyArray
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
Definition
StoreGate/StoreGate/ReadHandleKeyArray.h:32
Generated on
for ATLAS Offline Software by
1.17.0