ATLAS Offline Software
Reconstruction
Jet
JetRecTools
JetRecTools
PuppiWeightTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef PUPPIWeightTool_h
5
#define PUPPIWeightTool_h
6
7
#include "
JetRecTools/JetConstituentModifierBase.h
"
8
#include "
xAODBase/IParticleContainer.h
"
9
#include "
AsgDataHandles/ReadHandleKey.h
"
10
11
#include "
xAODCaloEvent/CaloCluster.h
"
12
#include "
xAODCaloEvent/CaloClusterContainer.h
"
13
#include "
xAODTracking/VertexContainer.h
"
14
#include "
xAODPFlow/PFOContainer.h
"
15
#include "
xAODPFlow/FlowElementContainer.h
"
16
#include "
JetRecTools/Puppi.h
"
17
#include <string>
18
19
class
PuppiWeightTool
:
public
JetConstituentModifierBase
{
20
ASG_TOOL_CLASS
(
PuppiWeightTool
,
IJetConstituentModifier
)
21
22
public
:
23
24
PuppiWeightTool
(
const
std::string&
name
);
25
26
virtual
StatusCode
initialize
()
override
final
;
27
virtual
StatusCode
finalize
()
override
;
28
29
virtual
StatusCode
process_impl
(
xAOD::IParticleContainer
* cont)
const
override
final
;
30
StatusCode
applyPuppiWeights
(
xAOD::PFOContainer
* cont)
const
;
31
StatusCode
applyPuppiWeights
(
xAOD::FlowElementContainer
* cont)
const
;
32
33
private
:
34
35
// puppi parameters
36
double
m_R0
;
37
double
m_Rmin
;
38
double
m_beta
;
39
double
m_centralPTCutOffset
;
40
double
m_centralPTCutSlope
;
41
double
m_forwardPTCutOffset
;
42
double
m_forwardPTCutSlope
;
43
double
m_etaBoundary
;
44
45
bool
m_includeCentralNeutralsInAlpha
;
46
bool
m_applyWeight
;
47
48
SG::ReadHandleKey<xAOD::VertexContainer>
m_vertexContainer_key
{
"PrimaryVertices"
};
49
50
};
51
52
#endif
PuppiWeightTool::m_vertexContainer_key
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexContainer_key
Definition:
PuppiWeightTool.h:48
PuppiWeightTool
Definition:
PuppiWeightTool.h:19
FlowElementContainer.h
PuppiWeightTool::applyPuppiWeights
StatusCode applyPuppiWeights(xAOD::PFOContainer *cont) const
Definition:
PuppiWeightTool.cxx:77
PuppiWeightTool::applyPuppiWeights
StatusCode applyPuppiWeights(xAOD::FlowElementContainer *cont) const
PuppiWeightTool::process_impl
virtual StatusCode process_impl(xAOD::IParticleContainer *cont) const override final
Definition:
PuppiWeightTool.cxx:66
JetConstituentModifierBase.h
PFOContainer.h
PuppiWeightTool::initialize
virtual StatusCode initialize() override final
Dummy implementation of the initialisation function.
Definition:
PuppiWeightTool.cxx:38
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition:
StoreGate/StoreGate/ReadHandleKey.h:39
PuppiWeightTool::m_Rmin
double m_Rmin
Definition:
PuppiWeightTool.h:37
PuppiWeightTool::finalize
virtual StatusCode finalize() override
Definition:
PuppiWeightTool.cxx:58
Puppi.h
PuppiWeightTool::m_applyWeight
bool m_applyWeight
Definition:
PuppiWeightTool.h:46
PuppiWeightTool::m_R0
double m_R0
Definition:
PuppiWeightTool.h:36
CaloCluster.h
IJetConstituentModifier
Definition:
IJetConstituentModifier.h:16
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PuppiWeightTool::m_forwardPTCutSlope
double m_forwardPTCutSlope
Definition:
PuppiWeightTool.h:42
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
IParticleContainer.h
DataVector
Derived DataVector<T>.
Definition:
DataVector.h:581
PuppiWeightTool::m_beta
double m_beta
Definition:
PuppiWeightTool.h:38
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
JetConstituentModifierBase
Definition:
JetConstituentModifierBase.h:22
PuppiWeightTool::m_etaBoundary
double m_etaBoundary
Definition:
PuppiWeightTool.h:43
VertexContainer.h
PuppiWeightTool::m_centralPTCutSlope
double m_centralPTCutSlope
Definition:
PuppiWeightTool.h:40
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition:
AsgToolMacros.h:68
CaloClusterContainer.h
PuppiWeightTool::m_includeCentralNeutralsInAlpha
bool m_includeCentralNeutralsInAlpha
Definition:
PuppiWeightTool.h:45
PuppiWeightTool::m_centralPTCutOffset
double m_centralPTCutOffset
Definition:
PuppiWeightTool.h:39
PuppiWeightTool::PuppiWeightTool
PuppiWeightTool(const std::string &name)
Definition:
PuppiWeightTool.cxx:20
PuppiWeightTool::m_forwardPTCutOffset
double m_forwardPTCutOffset
Definition:
PuppiWeightTool.h:41
Generated on Thu Nov 7 2024 21:24:17 for ATLAS Offline Software by
1.8.18