ATLAS Offline Software
DeltaROverlapTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ASSOCIATIONUTILS_OVERLAPTOOLDR_H
6 #define ASSOCIATIONUTILS_OVERLAPTOOLDR_H
7 
8 // Local includes
12 
13 namespace ORUtils
14 {
15 
23  class DeltaROverlapTool : public virtual IOverlapTool,
24  public BaseOverlapTool
25  {
26 
29 
30  public:
31 
33  DeltaROverlapTool(const std::string& name);
34 
38  virtual StatusCode
40  const xAOD::IParticleContainer& cont2) const override;
41 
42  protected:
43 
45  virtual StatusCode initializeDerived() override;
46 
47  private:
48 
51 
53  float m_dR;
56 
63 
65 
68 
70  std::unique_ptr<DeltaRMatcher> m_dRMatcher;
71 
73 
74  }; // class DeltaROverlapTool
75 
76 } // namespace ORUtils
77 
78 #endif
ORUtils::DeltaROverlapTool::m_useRapidity
bool m_useRapidity
Calculate delta-R using rapidity.
Definition: DeltaROverlapTool.h:55
ORUtils::DeltaROverlapTool::m_dRMatcher
std::unique_ptr< DeltaRMatcher > m_dRMatcher
Delta-R matcher.
Definition: DeltaROverlapTool.h:70
ORUtils::DeltaROverlapTool
A simple overlap finder that uses a dR match.
Definition: DeltaROverlapTool.h:25
ORUtils
Definition: AltMuJetOverlapTool.h:20
ORUtils::DeltaROverlapTool::findOverlaps
virtual StatusCode findOverlaps(const xAOD::IParticleContainer &cont1, const xAOD::IParticleContainer &cont2) const override
Identify overlaps with simple dR check.
Definition: DeltaROverlapTool.cxx:40
ORUtils::BaseOverlapTool
Common base class tool for overlap tools.
Definition: BaseOverlapTool.h:38
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ORUtils::DeltaROverlapTool::m_swapContainerPrecedence
bool m_swapContainerPrecedence
In default configuration, the first container is the one that gets tested for object rejection.
Definition: DeltaROverlapTool.h:62
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
DeltaRMatcher.h
ORUtils::DeltaROverlapTool::initializeDerived
virtual StatusCode initializeDerived() override
Initialize the tool.
Definition: DeltaROverlapTool.cxx:27
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
ORUtils::DeltaROverlapTool::DeltaROverlapTool
DeltaROverlapTool(const std::string &name)
Create proper constructor for Athena.
Definition: DeltaROverlapTool.cxx:14
ORUtils::DeltaROverlapTool::m_dR
float m_dR
Delta-R cone for flagging objects as overlap.
Definition: DeltaROverlapTool.h:53
BaseOverlapTool.h
ORUtils::IOverlapTool
Interface class for overlap removal tools.
Definition: IOverlapTool.h:27
IOverlapTool.h