ATLAS Offline Software
Loading...
Searching...
No Matches
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
9#include "GaudiKernel/EventContext.h"
10#include "GaudiKernel/ToolHandle.h"
11
17
20
43{
44public:
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
49private:
51 template <typename T> StatusCode RetrieveTool(ToolHandle<T> &tool, bool tool_requested);
54 this,
55 "InputClusterContainerName",
56 "egammaTopoCluster",
57 "Name of input cluster container"
58 };
59
62 this,
63 "egammaRecContainer",
64 "egammaRecCollection",
65 "Output container for egammaRec objects"
66 };
67
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
DataVector adapter that acts like it holds const pointers.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
Interface for the Reconstruction/egamma/egammaRec/EMConversionBuilder.
Interface for the Reconstruction/egamma/egammaTools/EMTrackMatchBuilder.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
SG::WriteHandleKey< EgammaRecContainer > m_egammaRecContainerKey
Key for egammaRec container.
Gaudi::Property< bool > m_doTrackMatching
private member flag to do the track matching
StatusCode RetrieveTool(ToolHandle< T > &tool, bool tool_requested)
Wrap tool retrieval, ensuring it was named and requested.
virtual StatusCode execute(const EventContext &ctx) const override final
SG::WriteHandleKey< ConstDataVector< EgammaRecContainer > > m_trackMatchedEgammaRecs
Gaudi::Property< bool > m_doTrackMatchedView
private member flag to produce of view of track matched egammaRecs
egammaRecBuilder(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< bool > m_doConversions
private member flag to do the conversion matching
ToolHandle< IEMConversionBuilder > m_conversionBuilder
Tool to perfrom conversion vertex matching.
virtual StatusCode initialize() override final
ToolHandle< IEMTrackMatchBuilder > m_trackMatchBuilder
Tool to perform track matching.
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_inputClusterContainerKey
Key for the topo cluster input collection.