ATLAS Offline Software
HardScatterVertexDecorator.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // HardScatterVertexDecorator.h, (c) ATLAS Detector software
8 
9 #ifndef DERIVATIONFRAMEWORK_HARDSCATTERVERTEXDECORATOR_H
10 #define DERIVATIONFRAMEWORK_HARDSCATTERVERTEXDECORATOR_H
11 
12 // Framework include(s):
17 #include "GaudiKernel/ToolHandle.h"
18 
19 // EDM include(s):
22 
23 // Tool include(s):
26 
27 namespace DerivationFramework {
28 
30  public AthAlgTool,
31  public IAugmentationTool
32  {
34  // Public methods:
36  public:
37 
40 
41  HardScatterVertexDecorator(const std::string& type, const std::string& name, const IInterface* parent);
42 
44 
47 
50 
52  virtual StatusCode addBranches() const;
53 
55 
57  // Private data:
59  private:
60 
63 
65  SG::ReadHandleKey<xAOD::VertexContainer> m_vtxContKey{this, "VertexContainerName", "PrimaryVertices",
66  "Name of the input vertex container"};
67 
69  Gaudi::Property<std::string> m_evtDecoName{this, "HardScatterDecoName", "hardScatterVertexLink",
70  "Name of the hardscatter vertex decoration (applied to xAOD::EventInfo)"};
71 
73  ToolHandle<InDet::IInDetHardScatterSelectionTool> m_vtxSelectTool{this, "HardScatterSelectionTool", "",
74  "IInDetHardScatterSelectionTool for selecting the hardscatter vertex" };
75 
77  private:
78 
81 
83  SG::ReadHandleKey<xAOD::EventInfo> m_evtInfoKey {this, "EventInfo", "EventInfo", "EventInfo key"};
84 
86  SG::WriteDecorHandleKey<xAOD::EventInfo> m_evtDecoKey{this, "VertexDecorationKey", "",
87  "Declaration of the HardScatterVertexLink key. Will be overwrriten during initialize"};
88 
90 
91  }; // end: class HardScatterVertexDecorator
92 } // end: namespace DerivationFramework
93 
94 #endif // end: DERIVATIONFRAMEWORK_HARDSCATTERVERTEXDECORATOR_H
SG::WriteDecorHandleKey< xAOD::EventInfo >
PropertyWrapper.h
VertexContainerFwd.h
DerivationFramework::HardScatterVertexDecorator::m_vtxSelectTool
ToolHandle< InDet::IInDetHardScatterSelectionTool > m_vtxSelectTool
ToolHandle for the IInDetHardScatterSelectionTool.
Definition: HardScatterVertexDecorator.h:73
IAugmentationTool.h
DerivationFramework::HardScatterVertexDecorator::m_evtDecoName
Gaudi::Property< std::string > m_evtDecoName
Name of the output hardscatter decoration (applied to xAOD::EventInfo)
Definition: HardScatterVertexDecorator.h:69
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
DerivationFramework::IAugmentationTool
Definition: IAugmentationTool.h:24
DerivationFramework::HardScatterVertexDecorator
Definition: HardScatterVertexDecorator.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::HardScatterVertexDecorator::addBranches
virtual StatusCode addBranches() const
Function decorating the inputs.
Definition: HardScatterVertexDecorator.cxx:65
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
EventInfo.h
DerivationFramework::HardScatterVertexDecorator::m_evtInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_evtInfoKey
xAOD::EventInfo ReadHandleKey
Definition: HardScatterVertexDecorator.h:83
WriteDecorHandleKey.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
IInDetHardScatterSelectionTool.h
DerivationFramework::HardScatterVertexDecorator::m_vtxContKey
SG::ReadHandleKey< xAOD::VertexContainer > m_vtxContKey
ReadHandleKey for the input vertices.
Definition: HardScatterVertexDecorator.h:65
DerivationFramework::HardScatterVertexDecorator::m_evtDecoKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_evtDecoKey
WriteDecorHandleKey for the output hardscatter decoration (applied to xAOD::EventInfo)
Definition: HardScatterVertexDecorator.h:86
AthAlgTool
Definition: AthAlgTool.h:26
DerivationFramework::HardScatterVertexDecorator::initialize
StatusCode initialize()
Function initialising the tool.
Definition: HardScatterVertexDecorator.cxx:30
DerivationFramework::HardScatterVertexDecorator::HardScatterVertexDecorator
HardScatterVertexDecorator(const std::string &type, const std::string &name, const IInterface *parent)
Definition: HardScatterVertexDecorator.cxx:25