ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetCalibTools
JetCalibTools
PileupAreaResidualCalibStep.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef JETCALIBTOOLS_PILEUPAREARESIDUALCALIBSTEP_H
6
#define JETCALIBTOOLS_PILEUPAREARESIDUALCALIBSTEP_H 1
7
8
/* PileupAreaResidualCalibStep performs the first step of the jet calibration
9
*
10
* - area subtraction in the form pT_corr = pT - rho x pT_area
11
* - residual correction (1D version)
12
*
13
*/
14
15
#include "
xAODTracking/VertexContainer.h
"
16
#include "
xAODEventShape/EventShape.h
"
17
#include "
xAODEventInfo/EventInfo.h
"
18
19
#include "
AsgTools/AsgTool.h
"
20
#include "
AsgTools/ToolHandle.h
"
21
#include "
AsgDataHandles/ReadHandleKey.h
"
22
#include "
AsgDataHandles/ReadDecorHandleKey.h
"
23
#include "
AsgTools/PropertyWrapper.h
"
24
#include "
JetAnalysisInterfaces/IJetCalibStep.h
"
25
#include "
JetAnalysisInterfaces/IVarTool.h
"
26
27
class
PileupAreaResidualCalibStep
:
public
asg::AsgTool
,
28
virtual
public
IJetCalibStep
29
{
30
31
ASG_TOOL_CLASS
(
PileupAreaResidualCalibStep
,
IJetCalibStep
)
32
33
public
:
34
PileupAreaResidualCalibStep
(
const
std::string& name=
"PileupAreaResidualCalibStep"
);
35
36
virtual
StatusCode
initialize
()
override
;
37
38
// Apply calibration to jet
39
virtual
StatusCode
calibrate
(
xAOD::JetContainer
& jetCont)
const override
;
40
41
private
:
42
43
double
getResidualOffset
(
const
xAOD::Jet
&
jet
,
const
JetHelper::JetContext
& jc,
double
mu,
double
NPV,
bool
MuOnly,
bool
NOnly)
const
;
44
45
Gaudi::Property<bool>
m_isData
{
this
,
"IsData"
,
false
,
""
};
46
Gaudi::Property<bool>
m_doJetArea
{
this
,
"DoJetArea"
,
false
,
"doc"
};
47
49
SG::ReadHandleKey<xAOD::EventShape>
m_rhoKey
{
this
,
"RhoKey"
,
"auto"
};
50
SG::ReadHandleKey<xAOD::VertexContainer>
m_pvKey
{
this
,
"PrimaryVerticesContainerName"
,
"PrimaryVertices"
};
51
SG::ReadDecorHandleKey<xAOD::EventInfo>
m_muKey
{
this
,
"averageInteractionsPerCrossingKey"
,
52
"EventInfo.averageInteractionsPerCrossing"
,
"Decoration for Average Interaction Per Crossing"
};
53
55
ToolHandle<JetHelper::IVarTool>
m_histTool_mu
= {this ,
"histTool_mu"
,
"HistoInput1D"
,
"mu histo reader"
};
56
ToolHandle<JetHelper::IVarTool>
m_histTool_NPV
= {this ,
"histTool_NPV"
,
"HistoInput1D"
,
"npv histo reader"
};
57
59
Gaudi::Property<bool>
m_doMuOnly
{
this
,
"ApplyOnlyMuResidual"
,
false
,
"doc"
};
60
Gaudi::Property<bool>
m_doNPVOnly
{
this
,
"ApplyOnlyNPVResidual"
,
false
,
"doc"
};
61
62
Gaudi::Property<float>
m_NPV_ref
{this ,
"DefaultNPVRef"
, -99.,
""
};
63
Gaudi::Property<float>
m_mu_ref
{this ,
"DefaultMuRef"
, -99.,
""
};
64
Gaudi::Property<float>
m_muSF
{this ,
"MuScaleFactor"
, 1.,
""
};
65
66
Gaudi::Property<bool>
m_doSequentialResidual
{
this
,
"DoSequentialResidual"
,
false
,
"doc"
};
67
69
Gaudi::Property<std::string>
m_jetInScale
{
this
,
"InScale"
,
"JetConstitScaleMomentum"
,
"Starting jet scale"
};
70
Gaudi::Property<std::string>
m_jetOutScale
{
this
,
"OutScale"
,
"JetPileupScaleMomentum"
,
"Ending jet scale"
};
71
Gaudi::Property<std::string>
m_jetAreaOutScale
{
this
,
"OutScaleJetArea"
,
"JetRhoAreaScaleMomentum"
,
"Intermediate jet scale"
};
72
73
};
74
75
#endif
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
AsgTool.h
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
EventShape.h
IJetCalibStep.h
IVarTool.h
PropertyWrapper.h
ToolHandle.h
VertexContainer.h
IJetCalibStep
Definition
IJetCalibStep.h:27
JetHelper::JetContext
Class JetContext Designed to read AOD information related to the event, N vertices,...
Definition
JetContext.h:27
PileupAreaResidualCalibStep::PileupAreaResidualCalibStep
PileupAreaResidualCalibStep(const std::string &name="PileupAreaResidualCalibStep")
Definition
PileupAreaResidualCalibStep.cxx:18
PileupAreaResidualCalibStep::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
PileupAreaResidualCalibStep.cxx:21
PileupAreaResidualCalibStep::m_jetInScale
Gaudi::Property< std::string > m_jetInScale
In and out scales.
Definition
PileupAreaResidualCalibStep.h:69
PileupAreaResidualCalibStep::m_doJetArea
Gaudi::Property< bool > m_doJetArea
Definition
PileupAreaResidualCalibStep.h:46
PileupAreaResidualCalibStep::m_doMuOnly
Gaudi::Property< bool > m_doMuOnly
Properties.
Definition
PileupAreaResidualCalibStep.h:59
PileupAreaResidualCalibStep::m_rhoKey
SG::ReadHandleKey< xAOD::EventShape > m_rhoKey
Event properties.
Definition
PileupAreaResidualCalibStep.h:49
PileupAreaResidualCalibStep::m_doNPVOnly
Gaudi::Property< bool > m_doNPVOnly
Definition
PileupAreaResidualCalibStep.h:60
PileupAreaResidualCalibStep::m_muSF
Gaudi::Property< float > m_muSF
Definition
PileupAreaResidualCalibStep.h:64
PileupAreaResidualCalibStep::calibrate
virtual StatusCode calibrate(xAOD::JetContainer &jetCont) const override
Apply calibration to a jet container.
Definition
PileupAreaResidualCalibStep.cxx:53
PileupAreaResidualCalibStep::m_histTool_mu
ToolHandle< JetHelper::IVarTool > m_histTool_mu
Histograms with PU residual correction factors.
Definition
PileupAreaResidualCalibStep.h:55
PileupAreaResidualCalibStep::m_histTool_NPV
ToolHandle< JetHelper::IVarTool > m_histTool_NPV
Definition
PileupAreaResidualCalibStep.h:56
PileupAreaResidualCalibStep::m_doSequentialResidual
Gaudi::Property< bool > m_doSequentialResidual
Definition
PileupAreaResidualCalibStep.h:66
PileupAreaResidualCalibStep::m_mu_ref
Gaudi::Property< float > m_mu_ref
Definition
PileupAreaResidualCalibStep.h:63
PileupAreaResidualCalibStep::m_isData
Gaudi::Property< bool > m_isData
Definition
PileupAreaResidualCalibStep.h:45
PileupAreaResidualCalibStep::getResidualOffset
double getResidualOffset(const xAOD::Jet &jet, const JetHelper::JetContext &jc, double mu, double NPV, bool MuOnly, bool NOnly) const
Definition
PileupAreaResidualCalibStep.cxx:144
PileupAreaResidualCalibStep::m_muKey
SG::ReadDecorHandleKey< xAOD::EventInfo > m_muKey
Definition
PileupAreaResidualCalibStep.h:51
PileupAreaResidualCalibStep::m_pvKey
SG::ReadHandleKey< xAOD::VertexContainer > m_pvKey
Definition
PileupAreaResidualCalibStep.h:50
PileupAreaResidualCalibStep::m_NPV_ref
Gaudi::Property< float > m_NPV_ref
Definition
PileupAreaResidualCalibStep.h:62
PileupAreaResidualCalibStep::m_jetAreaOutScale
Gaudi::Property< std::string > m_jetAreaOutScale
Definition
PileupAreaResidualCalibStep.h:71
PileupAreaResidualCalibStep::m_jetOutScale
Gaudi::Property< std::string > m_jetOutScale
Definition
PileupAreaResidualCalibStep.h:70
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition
StoreGate/StoreGate/ReadDecorHandleKey.h:86
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
jet
Definition
JetCalibTools_PlotJESFactors.cxx:23
xAOD::Jet
Jet_v1 Jet
Definition of the current "jet version".
Definition
Event/xAOD/xAODJet/xAODJet/Jet.h:17
xAOD::JetContainer
JetContainer_v1 JetContainer
Definition of the current "jet container version".
Definition
JetContainer.h:17
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0