ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
egamma
egammaAlgs
src
egammaRecBuilder.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef EGAMMAALGS_EGAMMARECBUILDER_H
6
#define EGAMMAALGS_EGAMMARECBUILDER_H
7
8
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
9
#include "GaudiKernel/EventContext.h"
10
#include "GaudiKernel/ToolHandle.h"
11
12
#include "
StoreGate/ReadHandleKey.h
"
13
#include "
StoreGate/WriteHandleKey.h
"
14
#include "
AthContainers/ConstDataVector.h
"
15
#include "
egammaRecEvent/egammaRecContainer.h
"
16
#include "
xAODCaloEvent/CaloClusterContainer.h
"
17
18
class
IEMTrackMatchBuilder
;
19
class
IEMConversionBuilder
;
20
42
class
egammaRecBuilder
:
public
AthReentrantAlgorithm
43
{
44
public
:
45
egammaRecBuilder
(
const
std::string& name, ISvcLocator* pSvcLocator);
46
virtual
StatusCode
initialize
()
override
final
;
47
virtual
StatusCode
execute
(
const
EventContext& ctx)
const
override
final
;
48
49
private
:
51
template
<
typename
T> StatusCode
RetrieveTool
(ToolHandle<T> &tool,
bool
tool_requested);
53
SG::ReadHandleKey<xAOD::CaloClusterContainer>
m_inputClusterContainerKey
{
54
this
,
55
"InputClusterContainerName"
,
56
"egammaTopoCluster"
,
57
"Name of input cluster container"
58
};
59
61
SG::WriteHandleKey<EgammaRecContainer>
m_egammaRecContainerKey
{
62
this
,
63
"egammaRecContainer"
,
64
"egammaRecCollection"
,
65
"Output container for egammaRec objects"
66
};
67
68
SG::WriteHandleKey<ConstDataVector<EgammaRecContainer>
>
69
m_trackMatchedEgammaRecs
{
70
this
,
71
"trackMatchedEgammaRecs"
,
72
"trackMatchedEgammaRecs"
,
73
"View container of the track matched egammaRecs"
74
};
75
76
ToolHandle<IEMTrackMatchBuilder>
m_trackMatchBuilder
{
77
this
,
78
"TrackMatchBuilderTool"
,
79
"EMTrackMatchBuilder"
,
80
"Tool that matches tracks to egammaRecs"
81
};
82
84
ToolHandle<IEMConversionBuilder>
m_conversionBuilder
{
85
this
,
86
"ConversionBuilderTool"
,
87
"EMConversionBuilder"
,
88
"Tool that matches conversion vertices to egammaRecs"
89
};
90
92
Gaudi::Property<bool>
m_doTrackMatching
{
this
,
93
"doTrackMatching"
,
94
true
,
95
"Boolean to do track matching"
};
96
98
Gaudi::Property<bool>
m_doConversions
{
this
,
99
"doConversions"
,
100
true
,
101
"Boolean to do conversion matching"
};
102
105
Gaudi::Property<bool>
m_doTrackMatchedView
{
106
this
,
107
"doTrackMatchedView"
,
108
false
,
109
"Produce a view of the egammaRecs that have an attached track"
110
};
111
};
112
113
#endif
AthReentrantAlgorithm.h
ConstDataVector.h
DataVector adapter that acts like it holds const pointers.
CaloClusterContainer.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.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
IEMConversionBuilder
Interface for the Reconstruction/egamma/egammaRec/EMConversionBuilder.
Definition
IEMConversionBuilder.h:31
IEMTrackMatchBuilder
Interface for the Reconstruction/egamma/egammaTools/EMTrackMatchBuilder.
Definition
IEMTrackMatchBuilder.h:34
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
egammaRecBuilder::m_egammaRecContainerKey
SG::WriteHandleKey< EgammaRecContainer > m_egammaRecContainerKey
Key for egammaRec container.
Definition
egammaRecBuilder.h:61
egammaRecBuilder::m_doTrackMatching
Gaudi::Property< bool > m_doTrackMatching
private member flag to do the track matching
Definition
egammaRecBuilder.h:92
egammaRecBuilder::RetrieveTool
StatusCode RetrieveTool(ToolHandle< T > &tool, bool tool_requested)
Wrap tool retrieval, ensuring it was named and requested.
Definition
egammaRecBuilder.cxx:43
egammaRecBuilder::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition
egammaRecBuilder.cxx:58
egammaRecBuilder::m_trackMatchedEgammaRecs
SG::WriteHandleKey< ConstDataVector< EgammaRecContainer > > m_trackMatchedEgammaRecs
Definition
egammaRecBuilder.h:69
egammaRecBuilder::m_doTrackMatchedView
Gaudi::Property< bool > m_doTrackMatchedView
private member flag to produce of view of track matched egammaRecs
Definition
egammaRecBuilder.h:105
egammaRecBuilder::egammaRecBuilder
egammaRecBuilder(const std::string &name, ISvcLocator *pSvcLocator)
Definition
egammaRecBuilder.cxx:22
egammaRecBuilder::m_doConversions
Gaudi::Property< bool > m_doConversions
private member flag to do the conversion matching
Definition
egammaRecBuilder.h:98
egammaRecBuilder::m_conversionBuilder
ToolHandle< IEMConversionBuilder > m_conversionBuilder
Tool to perfrom conversion vertex matching.
Definition
egammaRecBuilder.h:84
egammaRecBuilder::initialize
virtual StatusCode initialize() override final
Definition
egammaRecBuilder.cxx:28
egammaRecBuilder::m_trackMatchBuilder
ToolHandle< IEMTrackMatchBuilder > m_trackMatchBuilder
Tool to perform track matching.
Definition
egammaRecBuilder.h:76
egammaRecBuilder::m_inputClusterContainerKey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_inputClusterContainerKey
Key for the topo cluster input collection.
Definition
egammaRecBuilder.h:53
egammaRecContainer.h
Generated on
for ATLAS Offline Software by
1.17.0