ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
AsgAnalysisAlgorithms
AsgAnalysisAlgorithms
AsgPriorityDecorationAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
#ifndef ASG_ANALYSIS_ALGORITHMS__ASG_PRIORITY_DECORATION_ALG_H
8
#define ASG_ANALYSIS_ALGORITHMS__ASG_PRIORITY_DECORATION_ALG_H
9
10
#include <
AnaAlgorithm/AnaAlgorithm.h
>
11
#include <
SelectionHelpers/SysReadSelectionHandle.h
>
12
#include <
SystematicsHandles/SysListHandle.h
>
13
#include <
SystematicsHandles/SysReadHandle.h
>
14
#include <
xAODBase/IParticleContainer.h
>
15
#include <
AsgTools/PropertyWrapper.h
>
16
17
18
namespace
CP
19
{
20
22
class
AsgPriorityDecorationAlg
final :
public
EL::AnaAlgorithm
23
{
25
public
:
26
using
EL::AnaAlgorithm::AnaAlgorithm
;
27
virtual
StatusCode
initialize
()
override
;
28
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
29
30
32
private
:
33
SysListHandle
m_systematicsList
{
this
};
34
36
private
:
37
SysReadSelectionHandleArray
m_preselections
{
38
this
,
"preselections"
, {},
"the preselections to apply with the highest priority first"
};
39
41
private
:
42
SysReadHandle<xAOD::IParticleContainer>
m_particlesHandle
{
43
this
,
"particles"
,
""
,
"the container to use"
};
44
46
private
:
47
Gaudi::Property<std::vector<int>>
m_priorities
{
this
,
"priorities"
, {},
"priorities to use with the highest one first"
};
48
50
private
:
51
Gaudi::Property<std::string>
m_priorityDecoration
{
this
,
"priorityDecoration"
,
""
,
"the decoration for the priority"
};
52
54
private
:
55
std::unique_ptr<const SG::Decorator<char> >
m_priorityDecorator
{};
56
};
57
58
}
// namespace CP
59
60
#endif
AnaAlgorithm.h
PropertyWrapper.h
SysListHandle.h
SysReadHandle.h
SysReadSelectionHandle.h
CP::AsgPriorityDecorationAlg
an algorithm for decorating priorities
Definition
AsgPriorityDecorationAlg.h:23
CP::AsgPriorityDecorationAlg::m_priorities
Gaudi::Property< std::vector< int > > m_priorities
the values of the priorities
Definition
AsgPriorityDecorationAlg.h:47
CP::AsgPriorityDecorationAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition
AsgPriorityDecorationAlg.h:33
CP::AsgPriorityDecorationAlg::initialize
virtual StatusCode initialize() override
Definition
AsgPriorityDecorationAlg.cxx:14
CP::AsgPriorityDecorationAlg::m_preselections
SysReadSelectionHandleArray m_preselections
the preselection we apply to our input
Definition
AsgPriorityDecorationAlg.h:37
CP::AsgPriorityDecorationAlg::m_priorityDecorator
std::unique_ptr< const SG::Decorator< char > > m_priorityDecorator
the accessor for m_priorityDecoration
Definition
AsgPriorityDecorationAlg.h:55
CP::AsgPriorityDecorationAlg::m_priorityDecoration
Gaudi::Property< std::string > m_priorityDecoration
the decoration for the priority
Definition
AsgPriorityDecorationAlg.h:51
CP::AsgPriorityDecorationAlg::m_particlesHandle
SysReadHandle< xAOD::IParticleContainer > m_particlesHandle
particles container handle
Definition
AsgPriorityDecorationAlg.h:42
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition
SysListHandle.h:33
CP::SysReadHandle
a data handle for reading systematics varied input data
Definition
SysReadHandle.h:33
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition
AnaAlgorithm.h:74
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition
AnaAlgorithm.cxx:40
EL::AnaAlgorithm::execute
virtual::StatusCode execute()
execute this algorithm
Definition
AnaAlgorithm.cxx:315
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
CP::SysReadSelectionHandleArray
SysHandleArray< SysReadSelectionHandle > SysReadSelectionHandleArray
Definition
SysReadSelectionHandle.h:111
IParticleContainer.h
Generated on
for ATLAS Offline Software by
1.17.0