ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
AnalysisCommon
AssociationUtils
src
OverlapRemovalTestAlg.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_OVERLAPREMOVALTESTALG_H
6
#define ASSOCIATIONUTILS_OVERLAPREMOVALTESTALG_H
7
8
// Framework includes
9
#include "GaudiKernel/ToolHandle.h"
10
#include "
AthenaBaseComps/AthAlgorithm.h
"
11
12
// EDM includes
13
#include "
xAODBase/IParticleContainer.h
"
14
15
// Local includes
16
#include "
AssociationUtils/IOverlapRemovalTool.h
"
17
22
class
OverlapRemovalTestAlg
:
public
AthAlgorithm
23
{
24
25
public
:
26
28
OverlapRemovalTestAlg
(
const
std::string& name, ISvcLocator* svcLoc);
29
31
virtual
StatusCode
initialize
();
32
34
virtual
StatusCode
execute
(
const
EventContext& ctx);
35
36
private
:
37
39
template
<
class
ContainerType>
40
void
applySelection
(
const
ContainerType& container);
41
43
template
<
class
ObjType>
44
bool
selectObject
(
const
ObjType& obj);
45
47
void
printObjects
(
const
xAOD::IParticleContainer
& container,
48
const
std::string&
type
);
49
51
ToolHandle<ORUtils::IOverlapRemovalTool>
m_orTool
;
52
54
std::string
m_selectionLabel
;
55
std::string
m_overlapLabel
;
56
std::string
m_bJetLabel
;
57
58
};
59
60
#endif
AthAlgorithm.h
IOverlapRemovalTool.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
OverlapRemovalTestAlg::initialize
virtual StatusCode initialize()
Initialize the algorithm.
Definition
OverlapRemovalTestAlg.cxx:39
OverlapRemovalTestAlg::m_selectionLabel
std::string m_selectionLabel
Configuration.
Definition
OverlapRemovalTestAlg.h:54
OverlapRemovalTestAlg::applySelection
void applySelection(const ContainerType &container)
Simple object selection.
Definition
OverlapRemovalTestAlg.cxx:93
OverlapRemovalTestAlg::OverlapRemovalTestAlg
OverlapRemovalTestAlg(const std::string &name, ISvcLocator *svcLoc)
Standard algorithm constructor.
Definition
OverlapRemovalTestAlg.cxx:22
OverlapRemovalTestAlg::m_orTool
ToolHandle< ORUtils::IOverlapRemovalTool > m_orTool
Handle to the tool.
Definition
OverlapRemovalTestAlg.h:51
OverlapRemovalTestAlg::m_bJetLabel
std::string m_bJetLabel
Definition
OverlapRemovalTestAlg.h:56
OverlapRemovalTestAlg::execute
virtual StatusCode execute(const EventContext &ctx)
Execute the algorithm.
Definition
OverlapRemovalTestAlg.cxx:52
OverlapRemovalTestAlg::m_overlapLabel
std::string m_overlapLabel
Definition
OverlapRemovalTestAlg.h:55
OverlapRemovalTestAlg::selectObject
bool selectObject(const ObjType &obj)
Simple object selection.
Definition
OverlapRemovalTestAlg.cxx:102
OverlapRemovalTestAlg::printObjects
void printObjects(const xAOD::IParticleContainer &container, const std::string &type)
Print object info.
Definition
OverlapRemovalTestAlg.cxx:138
xAOD::IParticleContainer
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.
Definition
xAOD/xAODBase/xAODBase/IParticleContainer.h:32
type
IParticleContainer.h
Generated on
for ATLAS Offline Software by
1.17.0