ATLAS Offline Software
TopIsolationCPTools.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 TOPCPTOOLS_TOPISOLATIONCPTOOLS_H_
6 #define TOPCPTOOLS_TOPISOLATIONCPTOOLS_H_
7 
8 // Include what you use
9 #include <vector>
10 #include <string>
11 
12 // Framework include(s):
13 #include "AsgTools/AsgTool.h"
14 #include "AsgTools/ToolHandle.h"
16 #include "AsgTools/AnaToolHandle.h"
17 
18 // Isolation include(s):
21 
22 namespace top {
23  class TopConfig;
24 
25  class IsolationCPTools final: public asg::AsgTool {
26  public:
27  explicit IsolationCPTools(const std::string& name);
28  virtual ~IsolationCPTools() {}
29 
31  private:
32  std::shared_ptr<top::TopConfig> m_config;
33 
34  std::string m_isolationCalibFile;
35 
36  ToolHandle<CP::IIsolationCorrectionTool> m_isolationCorr;
37  ToolHandleArray<CP::IIsolationSelectionTool> m_isolationTools;
38 
40 
49  StatusCode setupPerObjectWPs(const std::vector<std::string>& WPs, const std::string& objectWPtype);
50  };
51 } // namespace top
52 
53 #endif // TOPCPTOOLS_TOPISOLATIONCPTOOLS_H_
top::IsolationCPTools::initialize
StatusCode initialize()
Dummy implementation of the initialisation function.
Definition: TopIsolationCPTools.cxx:30
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
top
TopConfig A simple configuration that is NOT a singleton.
Definition: AnalysisTrackingHelper.cxx:58
top::IsolationCPTools::m_isolationCalibFile
std::string m_isolationCalibFile
Definition: TopIsolationCPTools.h:34
ToolHandleArray.h
IIsolationCorrectionTool.h
top::IsolationCPTools
Definition: TopIsolationCPTools.h:25
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
top::IsolationCPTools::setupPerObjectWPs
StatusCode setupPerObjectWPs(const std::vector< std::string > &WPs, const std::string &objectWPtype)
Setup IsolationSelectonTools for all WPs specified for one object type (electron, muon,...
Definition: TopIsolationCPTools.cxx:79
top::IsolationCPTools::~IsolationCPTools
virtual ~IsolationCPTools()
Definition: TopIsolationCPTools.h:28
AnaToolHandle.h
top::IsolationCPTools::m_config
std::shared_ptr< top::TopConfig > m_config
Definition: TopIsolationCPTools.h:32
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
IIsolationSelectionTool.h
top::IsolationCPTools::IsolationCPTools
IsolationCPTools(const std::string &name)
Definition: TopIsolationCPTools.cxx:22
top::IsolationCPTools::setupIsolation
StatusCode setupIsolation()
Definition: TopIsolationCPTools.cxx:46
top::IsolationCPTools::m_isolationCorr
ToolHandle< CP::IIsolationCorrectionTool > m_isolationCorr
Definition: TopIsolationCPTools.h:36
top::IsolationCPTools::m_isolationTools
ToolHandleArray< CP::IIsolationSelectionTool > m_isolationTools
Definition: TopIsolationCPTools.h:37
ToolHandle.h
AsgTool.h
CheckAppliedSFs.WPs
WPs
Definition: CheckAppliedSFs.py:206