ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
AsgAnalysisAlgorithms
AsgAnalysisAlgorithms
SysListDumperAlg.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
8
#ifndef ASG_ANALYSIS_ALGORITHMS__SYS_LIST_DUMPER_ALG_H
9
#define ASG_ANALYSIS_ALGORITHMS__SYS_LIST_DUMPER_ALG_H
10
11
#include <
AnaAlgorithm/AnaAlgorithm.h
>
12
#include <
AsgServices/ServiceHandle.h
>
13
#include <
SystematicsHandles/SysListHandle.h
>
14
#include <
AsgTools/PropertyWrapper.h
>
15
16
namespace
CP
17
{
19
20
class
SysListDumperAlg
final :
public
EL::AnaAlgorithm
21
{
27
public
:
28
using
EL::AnaAlgorithm::AnaAlgorithm
;
29
virtual ::StatusCode
initialize
()
override
;
30
virtual ::StatusCode
execute
(
const
EventContext& ctx)
override
;
31
virtual ::StatusCode
finalize
()
override
;
32
34
private
:
35
std::vector<CP::SystematicSet>
makeSystematicsVector
(
const
std::string ®ex)
const
;
36
38
private
:
39
ServiceHandle<ISystematicsSvc>
m_systematicsService
{
this
,
"systematicsService"
,
"SystematicsSvc"
,
"systematics service"
};
40
42
private
:
43
Gaudi::Property<std::string>
m_regex
{
this
,
"systematicsRegex"
,
""
,
"systematics regex"
};
44
46
private
:
47
Gaudi::Property<std::string>
m_histogramName
{
this
,
"histogramName"
,
"systematics"
,
"the name of the output histogram"
};
48
50
private
:
51
bool
m_firstEvent
=
true
;
52
};
53
}
54
55
#endif
AnaAlgorithm.h
PropertyWrapper.h
ServiceHandle.h
SysListHandle.h
CP::SysListDumperAlg
Dump systematics names into a histogram.
Definition
SysListDumperAlg.h:21
CP::SysListDumperAlg::m_firstEvent
bool m_firstEvent
whether the next event will be the first event
Definition
SysListDumperAlg.h:51
CP::SysListDumperAlg::finalize
virtual::StatusCode finalize() override
Definition
SysListDumperAlg.cxx:96
CP::SysListDumperAlg::m_regex
Gaudi::Property< std::string > m_regex
the regex
Definition
SysListDumperAlg.h:43
CP::SysListDumperAlg::makeSystematicsVector
std::vector< CP::SystematicSet > makeSystematicsVector(const std::string ®ex) const
make the systematics vector using a regex
Definition
SysListDumperAlg.cxx:74
CP::SysListDumperAlg::m_systematicsService
ServiceHandle< ISystematicsSvc > m_systematicsService
the handle for the systematics service
Definition
SysListDumperAlg.h:39
CP::SysListDumperAlg::initialize
virtual::StatusCode initialize() override
Definition
SysListDumperAlg.cxx:24
CP::SysListDumperAlg::m_histogramName
Gaudi::Property< std::string > m_histogramName
the name of the histogram to use
Definition
SysListDumperAlg.h:47
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
ServiceHandle
Definition
ClusterMakerTool.h:36
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
Generated on
for ATLAS Offline Software by
1.17.0