ATLAS Offline Software
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 {
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);
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  };
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
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
egammaRecBuilder::m_conversionBuilder
ToolHandle< IEMConversionBuilder > m_conversionBuilder
Tool to perfrom conversion vertex matching.
Definition: egammaRecBuilder.h:84
egammaRecBuilder::m_inputClusterContainerKey
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_inputClusterContainerKey
Key for the topo cluster input collection.
Definition: egammaRecBuilder.h:53
egammaRecBuilder::m_doTrackMatchedView
Gaudi::Property< bool > m_doTrackMatchedView
private member flag to produce of view of track matched egammaRecs
Definition: egammaRecBuilder.h:105
ConstDataVector.h
DataVector adapter that acts like it holds const pointers.
IEMTrackMatchBuilder
Definition: IEMTrackMatchBuilder.h:34
SG::ReadHandleKey< xAOD::CaloClusterContainer >
egammaRecBuilder::initialize
virtual StatusCode initialize() override final
Definition: egammaRecBuilder.cxx:28
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
egammaRecBuilder::egammaRecBuilder
egammaRecBuilder(const std::string &name, ISvcLocator *pSvcLocator)
Definition: egammaRecBuilder.cxx:22
egammaRecBuilder::m_doTrackMatching
Gaudi::Property< bool > m_doTrackMatching
private member flag to do the track matching
Definition: egammaRecBuilder.h:92
IEMConversionBuilder
Definition: IEMConversionBuilder.h:31
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
AtlCoolConsole.tool
tool
Definition: AtlCoolConsole.py:453
egammaRecBuilder::RetrieveTool
StatusCode RetrieveTool(ToolHandle< T > &tool, bool tool_requested)
Wrap tool retrieval, ensuring it was named and requested.
Definition: egammaRecBuilder.cxx:43
egammaRecBuilder::m_egammaRecContainerKey
SG::WriteHandleKey< EgammaRecContainer > m_egammaRecContainerKey
Key for egammaRec container.
Definition: egammaRecBuilder.h:61
CaloClusterContainer.h
egammaRecBuilder::m_doConversions
Gaudi::Property< bool > m_doConversions
private member flag to do the conversion matching
Definition: egammaRecBuilder.h:98
egammaRecContainer.h
egammaRecBuilder::m_trackMatchBuilder
ToolHandle< IEMTrackMatchBuilder > m_trackMatchBuilder
Tool to perform track matching.
Definition: egammaRecBuilder.h:76
egammaRecBuilder::m_trackMatchedEgammaRecs
SG::WriteHandleKey< ConstDataVector< EgammaRecContainer > > m_trackMatchedEgammaRecs
Definition: egammaRecBuilder.h:69
egammaRecBuilder
Produces egammaRec objects starting from clusters. The algorithm produces an egammaRec for each input...
Definition: egammaRecBuilder.h:43
egammaRecBuilder::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: egammaRecBuilder.cxx:58