ATLAS Offline Software
EGSelectionToolWrapper.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // EGSelectionToolWrapper.h, (c) ATLAS Detector software
8 
9 #ifndef DERIVATIONFRAMEWORK_EGSELECTIONTOOLWRAPPER_H
10 #define DERIVATIONFRAMEWORK_EGSELECTIONTOOLWRAPPER_H
11 
13 //
14 #include "StoreGate/ReadHandle.h"
18 //
19 #include "AsgTools/IAsgTool.h"
23 #include "GaudiKernel/ToolHandle.h"
25 //
26 #include <string>
27 
28 namespace DerivationFramework {
29 
30 class EGSelectionToolWrapper : public extends<AthAlgTool, IAugmentationTool>
31 {
32 public:
33  EGSelectionToolWrapper(const std::string& t,
34  const std::string& n,
35  const IInterface* p);
36 
37  virtual StatusCode initialize() override final;
38  virtual StatusCode addBranches() const override final;
39 
40 private:
41  ToolHandle<IAsgEGammaIsEMSelector> m_tool{
42  this,
43  "EGammaSelectionTool",
44  "",
45  "Selector tool",
46  };
47  ToolHandle<IElectronPhotonShowerShapeFudgeTool>
48  m_fudgeMCTool{ this, "EGammaFudgeMCTool", "", "Fudging tool" };
49 
51  "ContainerN"
52  "ame",
53  "",
54  "Input" };
55 
56  // Write decoration handle keys
57  // these are not really configuarable
59  m_decoratorPass{ this, "decoratorPass", "", "" };
61  m_decoratorIsEM{ this, "decoratorIsEM", "", "" };
62  Gaudi::Property<std::string> m_cut{ this, "CutType", "", "cut type" };
63 
64  Gaudi::Property<std::string> m_sgName{ this,
65  "StoreGateEntryName",
66  "",
67  "Store entry name" };
68 };
69 }
70 
71 #endif // DERIVATIONFRAMEWORK_EGSELECTIONTOOLWRAPPER_H
DerivationFramework::EGSelectionToolWrapper
Definition: EGSelectionToolWrapper.h:31
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
DerivationFramework::EGSelectionToolWrapper::EGSelectionToolWrapper
EGSelectionToolWrapper(const std::string &t, const std::string &n, const IInterface *p)
Definition: EGSelectionToolWrapper.cxx:20
IAugmentationTool.h
DerivationFramework::EGSelectionToolWrapper::m_decoratorIsEM
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_decoratorIsEM
Definition: EGSelectionToolWrapper.h:61
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
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:59
DerivationFramework::EGSelectionToolWrapper::m_tool
ToolHandle< IAsgEGammaIsEMSelector > m_tool
Definition: EGSelectionToolWrapper.h:41
DerivationFramework::EGSelectionToolWrapper::initialize
virtual StatusCode initialize() override final
Definition: EGSelectionToolWrapper.cxx:28
EgammaContainer.h
DerivationFramework::EGSelectionToolWrapper::m_cut
Gaudi::Property< std::string > m_cut
Definition: EGSelectionToolWrapper.h:62
IElectronPhotonShowerShapeFudgeTool.h
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
DerivationFramework::EGSelectionToolWrapper::m_sgName
Gaudi::Property< std::string > m_sgName
Definition: EGSelectionToolWrapper.h:64
beamspotman.n
n
Definition: beamspotman.py:727
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:50
DerivationFramework::EGSelectionToolWrapper::addBranches
virtual StatusCode addBranches() const override final
Definition: EGSelectionToolWrapper.cxx:54
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
IAsgEGammaIsEMSelector.h
DerivationFramework::EGSelectionToolWrapper::m_fudgeMCTool
ToolHandle< IElectronPhotonShowerShapeFudgeTool > m_fudgeMCTool
Definition: EGSelectionToolWrapper.h:48
ReadHandle.h
Handle class for reading from StoreGate.