ATLAS Offline Software
EGSelectionToolWrapper.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_EGSELECTIONTOOLWRAPPER_H
6 #define DERIVATIONFRAMEWORK_EGSELECTIONTOOLWRAPPER_H
7 
9 //
10 #include "StoreGate/ReadHandle.h"
14 //
15 #include "AsgTools/IAsgTool.h"
19 #include "GaudiKernel/ToolHandle.h"
21 //
22 #include <string>
23 
24 namespace DerivationFramework {
25 
26  class EGSelectionToolWrapper : public extends<AthAlgTool, IAugmentationTool>
27  {
28  public:
29 
30  using base_class::base_class;
31 
32  virtual StatusCode initialize() override final;
33  virtual StatusCode addBranches(const EventContext& ctx) const override final;
34 
35  private:
36  ToolHandle<IAsgEGammaIsEMSelector> m_tool{
37  this,
38  "EGammaSelectionTool",
39  "",
40  "Selector tool",
41  };
42  ToolHandle<IElectronPhotonShowerShapeFudgeTool>
43  m_fudgeMCTool{ this, "EGammaFudgeMCTool", "", "Fudging tool" };
44 
46  "ContainerName", "", "Input" };
47 
48  // Write decoration handle keys
49  // these are not really configuarable
51  "decoratorPass", m_ContainerName, "", "" };
53  "decoratorIsEM", m_ContainerName, "", "" };
54  Gaudi::Property<std::string> m_cut{ this, "CutType", "", "cut type" };
55 
56  };
57 }
58 
59 #endif // DERIVATIONFRAMEWORK_EGSELECTIONTOOLWRAPPER_H
DerivationFramework::EGSelectionToolWrapper
Definition: EGSelectionToolWrapper.h:27
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
IAugmentationTool.h
DerivationFramework::EGSelectionToolWrapper::m_decoratorIsEM
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_decoratorIsEM
Definition: EGSelectionToolWrapper.h:52
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
DerivationFramework::EGSelectionToolWrapper::m_decoratorPass
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_decoratorPass
Definition: EGSelectionToolWrapper.h:50
DerivationFramework::EGSelectionToolWrapper::m_tool
ToolHandle< IAsgEGammaIsEMSelector > m_tool
Definition: EGSelectionToolWrapper.h:36
DerivationFramework::EGSelectionToolWrapper::initialize
virtual StatusCode initialize() override final
Definition: EGSelectionToolWrapper.cxx:18
EgammaContainer.h
DerivationFramework::EGSelectionToolWrapper::m_cut
Gaudi::Property< std::string > m_cut
Definition: EGSelectionToolWrapper.h:54
IElectronPhotonShowerShapeFudgeTool.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
WriteDecorHandle.h
Handle class for adding a decoration to an object.
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
IAsgTool.h
DerivationFramework::EGSelectionToolWrapper::m_ContainerName
SG::ReadHandleKey< xAOD::EgammaContainer > m_ContainerName
Definition: EGSelectionToolWrapper.h:45
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
IAsgEGammaIsEMSelector.h
DerivationFramework::EGSelectionToolWrapper::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override final
Definition: EGSelectionToolWrapper.cxx:36
DerivationFramework::EGSelectionToolWrapper::m_fudgeMCTool
ToolHandle< IElectronPhotonShowerShapeFudgeTool > m_fudgeMCTool
Definition: EGSelectionToolWrapper.h:43
ReadHandle.h
Handle class for reading from StoreGate.