ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
AnalysisCommon
AssociationUtils
src
ORToolBoxTestAlg.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_ORTOOLBOXTESTALG_H
6
#define ASSOCIATIONUTILS_ORTOOLBOXTESTALG_H
7
8
// Framework includes
9
#include "
AthenaBaseComps/AthAlgorithm.h
"
10
11
// Local includes
12
#include "
AssociationUtils/ToolBox.h
"
13
#include "
AssociationUtils/OverlapRemovalInit.h
"
14
15
25
class
ORToolBoxTestAlg
:
public
AthAlgorithm
26
{
27
28
public
:
29
31
ORToolBoxTestAlg
(
const
std::string& name, ISvcLocator* svcLoc);
32
34
virtual
StatusCode
initialize
();
35
37
virtual
StatusCode
execute
(
const
EventContext& ctx);
38
39
private
:
40
42
template
<
class
ContainerType>
43
void
applySelection
(
const
ContainerType& container);
44
46
template
<
class
ObjType>
47
bool
selectObject
(
const
ObjType& obj);
48
50
void
printObjects
(
const
xAOD::IParticleContainer
& container,
51
const
std::string&
type
);
52
54
ORUtils::ToolBox
m_toolBox
;
55
57
ORUtils::ORFlags
m_flags
;
58
59
};
60
61
#endif
AthAlgorithm.h
OverlapRemovalInit.h
Defines helper functions for initializing the OR tools in C++.
ToolBox.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
ORToolBoxTestAlg::applySelection
void applySelection(const ContainerType &container)
Simple object selection.
Definition
ORToolBoxTestAlg.cxx:87
ORToolBoxTestAlg::ORToolBoxTestAlg
ORToolBoxTestAlg(const std::string &name, ISvcLocator *svcLoc)
Standard algorithm constructor.
Definition
ORToolBoxTestAlg.cxx:20
ORToolBoxTestAlg::printObjects
void printObjects(const xAOD::IParticleContainer &container, const std::string &type)
Print object info.
ORToolBoxTestAlg::initialize
virtual StatusCode initialize()
Initialize the algorithm.
Definition
ORToolBoxTestAlg.cxx:36
ORToolBoxTestAlg::m_toolBox
ORUtils::ToolBox m_toolBox
The overlap removal tools' toolbox.
Definition
ORToolBoxTestAlg.h:54
ORToolBoxTestAlg::execute
virtual StatusCode execute(const EventContext &ctx)
Execute the algorithm.
Definition
ORToolBoxTestAlg.cxx:52
ORToolBoxTestAlg::selectObject
bool selectObject(const ObjType &obj)
Simple object selection.
Definition
ORToolBoxTestAlg.cxx:96
ORToolBoxTestAlg::m_flags
ORUtils::ORFlags m_flags
The overlap removal tools' configuration flags.
Definition
ORToolBoxTestAlg.h:57
ORUtils::ToolBox
A container and helper class for overlap removal tools.
Definition
ToolBox.h:39
xAOD::IParticleContainer
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.
Definition
xAOD/xAODBase/xAODBase/IParticleContainer.h:32
type
ORUtils::ORFlags
A struct of global config options used to simplify the config helper interface.
Definition
OverlapRemovalInit.h:29
Generated on
for ATLAS Offline Software by
1.17.0