ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
AsgAnalysisAlgorithms
AsgAnalysisAlgorithms
AsgObjectScaleFactorAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
#ifndef ASG_ANALYSIS_ALGORITHMS__ASG_OBJECT_SCALE_FACTOR_ALG_H
7
#define ASG_ANALYSIS_ALGORITHMS__ASG_OBJECT_SCALE_FACTOR_ALG_H
8
9
#include <
AnaAlgorithm/AnaAlgorithm.h
>
10
#include <
SystematicsHandles/SysListHandle.h
>
11
#include <
SystematicsHandles/SysReadHandle.h
>
12
#include <
SystematicsHandles/SysReadDecorHandle.h
>
13
#include <
SystematicsHandles/SysWriteDecorHandle.h
>
14
15
#include <
xAODBase/IParticleContainer.h
>
16
17
namespace
CP
18
{
20
21
class
AsgObjectScaleFactorAlg
final :
public
EL::AnaAlgorithm
22
{
24
public
:
25
using
EL::AnaAlgorithm::AnaAlgorithm
;
26
StatusCode
initialize
()
override
;
27
StatusCode
execute
(
const
EventContext& ctx)
override
;
28
29
private
:
31
SysListHandle
m_systematicsList
{
this
};
32
34
SysReadHandle<xAOD::IParticleContainer>
m_particlesHandle
{
35
this
,
"particles"
,
""
,
"the asg collection to run on"
};
36
37
Gaudi::Property<std::vector<std::string>>
m_inScaleFactors
{
38
this
,
"inScaleFactors"
, {},
"list of input scale factors to combine"
};
39
40
std::vector<SysReadDecorHandle<float>>
m_inSFHandles
;
41
42
SysWriteDecorHandle<float>
m_outSFHandle
{
43
this
,
"outScaleFactor"
,
"effSF_%SYS%"
,
"decoration name for combined scale factor"
};
44
};
45
46
}
47
48
#endif
AnaAlgorithm.h
SysListHandle.h
SysReadDecorHandle.h
SysReadHandle.h
SysWriteDecorHandle.h
CP::AsgObjectScaleFactorAlg
an algorithm for combining object scale factors
Definition
AsgObjectScaleFactorAlg.h:22
CP::AsgObjectScaleFactorAlg::m_inSFHandles
std::vector< SysReadDecorHandle< float > > m_inSFHandles
Definition
AsgObjectScaleFactorAlg.h:40
CP::AsgObjectScaleFactorAlg::m_outSFHandle
SysWriteDecorHandle< float > m_outSFHandle
Definition
AsgObjectScaleFactorAlg.h:42
CP::AsgObjectScaleFactorAlg::initialize
StatusCode initialize() override
Definition
AsgObjectScaleFactorAlg.cxx:11
CP::AsgObjectScaleFactorAlg::m_particlesHandle
SysReadHandle< xAOD::IParticleContainer > m_particlesHandle
the particle container we run on
Definition
AsgObjectScaleFactorAlg.h:34
CP::AsgObjectScaleFactorAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition
AsgObjectScaleFactorAlg.h:31
CP::AsgObjectScaleFactorAlg::m_inScaleFactors
Gaudi::Property< std::vector< std::string > > m_inScaleFactors
Definition
AsgObjectScaleFactorAlg.h:37
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
CP::SysWriteDecorHandle
a data handle for reading systematics varied input data
Definition
SysWriteDecorHandle.h:42
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
IParticleContainer.h
Generated on
for ATLAS Offline Software by
1.17.0