ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
DerivationFramework
DerivationFrameworkJetEtMiss
src
ViewContainerThinning.h
Go to the documentation of this file.
1
2
3
/*
4
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// ViewContainerThinning.h
8
// Header file for class ViewContainerThinning
9
// Author: P-A Delsart
11
#ifndef DERIVATIONFRAMEWORKJETETMISS_VIEWCONTAINERTHINNING_H
12
#define DERIVATIONFRAMEWORKJETETMISS_VIEWCONTAINERTHINNING_H 1
13
14
// STL includes
15
#include <string>
16
17
// FrameWork includes
18
#include "
AthenaBaseComps/AthAlgTool.h
"
19
#include "GaudiKernel/ServiceHandle.h"
20
21
// DerivationFrameworkInterfaces includes
22
#include "
DerivationFrameworkInterfaces/IThinningTool.h
"
23
#include "
xAODCaloEvent/CaloClusterContainer.h
"
24
#include "
xAODTracking/TrackParticleContainer.h
"
25
#include "
xAODTruth/TruthParticleContainer.h
"
26
#include "
StoreGate/ThinningHandleKey.h
"
27
#include "
StoreGate/ReadHandleKey.h
"
28
29
30
namespace
DerivationFramework
{
31
32
class
ViewContainerThinning
33
:
public
extends<AthAlgTool, IThinningTool>
34
{
35
37
// Public methods:
39
public
:
41
using
base_class::base_class;
42
43
// Athena algtool's Hooks
44
virtual
StatusCode
initialize
()
override
;
45
virtual
StatusCode
finalize
()
override
;
46
virtual
StatusCode
doThinning
(
const
EventContext& ctx)
const override
;
47
48
protected
:
49
50
template
<
class
T>
51
StatusCode
doThinningT
(
const
EventContext& ctx,
52
const
SG::ThinningHandleKey<T>
& key,
53
const
SG::ReadHandleKey<T>
& viewKey)
const
;
54
55
StringProperty
m_streamName
56
{
this
,
"StreamName"
,
""
,
"Name of the stream being thinned"
};
57
58
SG::ThinningHandleKey<xAOD::TrackParticleContainer>
m_trackParticleKey
59
{
this
,
"TrackParticleKey"
,
""
,
""
};
60
SG::ThinningHandleKey<xAOD::CaloClusterContainer>
m_caloClusterKey
61
{
this
,
"CaloClusterKey"
,
""
,
""
};
62
SG::ThinningHandleKey<xAOD::TruthParticleContainer>
m_truthParticleKey
63
{
this
,
"TruthParticleKey"
,
""
,
""
};
64
65
SG::ReadHandleKey<xAOD::TrackParticleContainer>
m_trackParticleViewKey
66
{
this
,
"TrackParticleViewKey"
,
""
,
""
};
67
SG::ReadHandleKey<xAOD::CaloClusterContainer>
m_caloClusterViewKey
68
{
this
,
"CaloClusterViewKey"
,
""
,
""
};
69
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_truthParticleViewKey
70
{
this
,
"TruthParticleViewKey"
,
""
,
""
};
71
};
72
73
}
74
75
#endif
//> !DERIVATIONFRAMEWORKJETETMISS_VIEWCONTAINERTHINNING_H
AthAlgTool.h
CaloClusterContainer.h
TrackParticleContainer.h
TruthParticleContainer.h
IThinningTool.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ThinningHandleKey.h
HandleKey object for adding thinning to an object.
DerivationFramework::ViewContainerThinning
Definition
ViewContainerThinning.h:34
DerivationFramework::ViewContainerThinning::m_trackParticleViewKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackParticleViewKey
Definition
ViewContainerThinning.h:66
DerivationFramework::ViewContainerThinning::finalize
virtual StatusCode finalize() override
Definition
ViewContainerThinning.cxx:68
DerivationFramework::ViewContainerThinning::m_truthParticleViewKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticleViewKey
Definition
ViewContainerThinning.h:70
DerivationFramework::ViewContainerThinning::m_caloClusterViewKey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_caloClusterViewKey
Definition
ViewContainerThinning.h:68
DerivationFramework::ViewContainerThinning::m_caloClusterKey
SG::ThinningHandleKey< xAOD::CaloClusterContainer > m_caloClusterKey
Definition
ViewContainerThinning.h:61
DerivationFramework::ViewContainerThinning::m_truthParticleKey
SG::ThinningHandleKey< xAOD::TruthParticleContainer > m_truthParticleKey
Definition
ViewContainerThinning.h:63
DerivationFramework::ViewContainerThinning::doThinning
virtual StatusCode doThinning(const EventContext &ctx) const override
Definition
ViewContainerThinning.cxx:75
DerivationFramework::ViewContainerThinning::m_streamName
StringProperty m_streamName
Definition
ViewContainerThinning.h:56
DerivationFramework::ViewContainerThinning::initialize
virtual StatusCode initialize() override
Definition
ViewContainerThinning.cxx:53
DerivationFramework::ViewContainerThinning::doThinningT
StatusCode doThinningT(const EventContext &ctx, const SG::ThinningHandleKey< T > &key, const SG::ReadHandleKey< T > &viewKey) const
Definition
ViewContainerThinning.cxx:31
DerivationFramework::ViewContainerThinning::m_trackParticleKey
SG::ThinningHandleKey< xAOD::TrackParticleContainer > m_trackParticleKey
Definition
ViewContainerThinning.h:59
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::ThinningHandleKey
HandleKey object for adding thinning to an object.
Definition
ThinningHandleKey.h:39
DerivationFramework
THE reconstruction tool.
Definition
CascadeTools.h:16
Generated on
for ATLAS Offline Software by
1.17.0