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 
31  : public AthAlgTool
32  , public IAugmentationTool
33 {
34 public:
35  EGSelectionToolWrapper(const std::string& t,
36  const std::string& n,
37  const IInterface* p);
38 
39  virtual StatusCode initialize() override final;
40  virtual StatusCode addBranches() const override final;
41 
42 private:
43  ToolHandle<IAsgEGammaIsEMSelector> m_tool{
44  this,
45  "EGammaSelectionTool",
46  "",
47  "Selector tool",
48  };
49  ToolHandle<IElectronPhotonShowerShapeFudgeTool>
50  m_fudgeMCTool{ this, "EGammaFudgeMCTool", "", "Fudging tool" };
51 
53  "ContainerN"
54  "ame",
55  "",
56  "Input" };
57 
58  // Write decoration handle keys
59  // these are not really configuarable
61  m_decoratorPass{ this, "decoratorPass", "", "" };
63  m_decoratorIsEM{ this, "decoratorIsEM", "", "" };
64  Gaudi::Property<std::string> m_cut{ this, "CutType", "", "cut type" };
65 
66  Gaudi::Property<std::string> m_sgName{ this,
67  "StoreGateEntryName",
68  "",
69  "Store entry name" };
70 };
71 }
72 
73 #endif // DERIVATIONFRAMEWORK_EGSELECTIONTOOLWRAPPER_H
DerivationFramework::EGSelectionToolWrapper
Definition: EGSelectionToolWrapper.h:33
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
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
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:63
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:61
DerivationFramework::EGSelectionToolWrapper::m_tool
ToolHandle< IAsgEGammaIsEMSelector > m_tool
Definition: EGSelectionToolWrapper.h:43
DerivationFramework::IAugmentationTool
Definition: IAugmentationTool.h:24
DerivationFramework::EGSelectionToolWrapper::initialize
virtual StatusCode initialize() override final
Definition: EGSelectionToolWrapper.cxx:29
EgammaContainer.h
DerivationFramework::EGSelectionToolWrapper::m_cut
Gaudi::Property< std::string > m_cut
Definition: EGSelectionToolWrapper.h:64
IElectronPhotonShowerShapeFudgeTool.h
DerivationFramework::EGSelectionToolWrapper::m_sgName
Gaudi::Property< std::string > m_sgName
Definition: EGSelectionToolWrapper.h:66
beamspotman.n
n
Definition: beamspotman.py:731
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:52
DerivationFramework::EGSelectionToolWrapper::addBranches
virtual StatusCode addBranches() const override final
Pass the thinning service
Definition: EGSelectionToolWrapper.cxx:55
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:50
ReadHandle.h
Handle class for reading from StoreGate.
AthAlgTool
Definition: AthAlgTool.h:26