ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
DerivationFramework
DerivationFrameworkMCTruth
DerivationFrameworkMCTruth
TruthPVCollectionMaker.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef DERIVATIONFRAMEWORK_TRUTHPVCOLLECTIONMAKER_H
6
#define DERIVATIONFRAMEWORK_TRUTHPVCOLLECTIONMAKER_H
7
8
// Base classes
9
#include "
AthenaBaseComps/AthAlgTool.h
"
10
#include "
DerivationFrameworkInterfaces/IAugmentationTool.h
"
11
#include "
xAODTruth/TruthEventContainer.h
"
12
#include "
xAODTruth/TruthVertexContainer.h
"
13
#include "
StoreGate/WriteHandleKey.h
"
14
#include "
StoreGate/ReadHandleKey.h
"
15
16
namespace
DerivationFramework
{
17
18
class
TruthPVCollectionMaker
:
public
extends<AthAlgTool, IAugmentationTool> {
19
public
:
20
21
using
base_class::base_class;
22
23
virtual
StatusCode
initialize
()
override
final
;
24
virtual
StatusCode
addBranches
(
const
EventContext& ctx)
const
override
final
;
25
26
private
:
27
SG::ReadHandleKey<xAOD::TruthEventContainer>
m_eventsKey
{
this
,
"EventsKey"
,
"TruthEvents"
};
28
SG::WriteHandleKey<xAOD::TruthVertexContainer>
m_outVtxKey
{
this
,
"NewCollectionName"
,
""
};
29
};
30
}
31
32
#endif
// DERIVATIONFRAMEWORK_TRUTHPVCOLLECTIONMAKER_H
AthAlgTool.h
IAugmentationTool.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
TruthEventContainer.h
TruthVertexContainer.h
DerivationFramework::TruthPVCollectionMaker
Definition
TruthPVCollectionMaker.h:18
DerivationFramework::TruthPVCollectionMaker::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override final
Definition
TruthPVCollectionMaker.cxx:34
DerivationFramework::TruthPVCollectionMaker::m_outVtxKey
SG::WriteHandleKey< xAOD::TruthVertexContainer > m_outVtxKey
Output collection name.
Definition
TruthPVCollectionMaker.h:28
DerivationFramework::TruthPVCollectionMaker::initialize
virtual StatusCode initialize() override final
Definition
TruthPVCollectionMaker.cxx:19
DerivationFramework::TruthPVCollectionMaker::m_eventsKey
SG::ReadHandleKey< xAOD::TruthEventContainer > m_eventsKey
Input event collection (navigates to the vertices).
Definition
TruthPVCollectionMaker.h:27
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
DerivationFramework
THE reconstruction tool.
Definition
CascadeTools.h:16
Generated on
for ATLAS Offline Software by
1.17.0