ATLAS Offline Software
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
JetAnalysisAlgorithms
python
ReclusteredJetCalibrationConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3
from
AnalysisAlgorithmsConfig.ConfigBlock
import
ConfigBlock
4
5
class
ReclusteredJetCalibrationBlock
(ConfigBlock):
6
"""ConfigBlock for the jet reclustering calibration algorithm:
7
bootstrap reclustered Large-R jet calibration by manually
8
setting 4-momentum from calibrated constituent small-R jets"""
9
10
def
__init__
(self):
11
super(ReclusteredJetCalibrationBlock, self).
__init__
()
12
self.addOption (
'containerName'
,
''
, type=str,
13
info=
'the name of the output container after calibration.'
)
14
self.addOption (
'jetCollection'
,
''
, type=str,
15
info=
"the reclustered Large-R jet container to run on."
)
16
self.addOption (
'jetInput'
,
''
, type=str,
17
info=
'the input calibrated small-R jet collection to use'
)
18
19
def
instanceName
(self) :
20
"""Return the instance name for this block"""
21
return
self.
containerName
22
23
def
makeAlgs
(self, config):
24
25
config.setSourceName (self.
containerName
, self.
jetCollection
, originalName = self.
jetCollection
)
26
27
# Set up a shallow copy to decorate
28
if
config.wantCopy (self.
containerName
) :
29
alg = config.createAlgorithm(
'CP::AsgShallowCopyAlg'
,
'ReclusteredJetShallowCopyAlg'
)
30
alg.input = config.readName (self.
containerName
)
31
alg.output = config.copyName (self.
containerName
)
32
33
alg = config.createAlgorithm(
'CP::ReclusteredJetCalibrationAlg'
,
'ReclusteredJetCalibrationAlg'
)
34
35
alg.reclusteredJets = config.readName(self.
containerName
)
36
alg.reclusteredJetsOut = config.copyName(self.
containerName
)
37
alg.smallRJets = config.readName(self.jetInput)
38
39
config.addOutputVar(self.
containerName
,
'pt'
,
'pt'
)
40
config.addOutputVar(self.
containerName
,
'eta'
,
'eta'
)
41
config.addOutputVar(self.
containerName
,
'phi'
,
'phi'
)
42
config.addOutputVar(self.
containerName
,
'm'
,
'm'
)
43
python.ReclusteredJetCalibrationConfig.ReclusteredJetCalibrationBlock
Definition
ReclusteredJetCalibrationConfig.py:5
python.ReclusteredJetCalibrationConfig.ReclusteredJetCalibrationBlock.instanceName
instanceName(self)
Definition
ReclusteredJetCalibrationConfig.py:19
python.ReclusteredJetCalibrationConfig.ReclusteredJetCalibrationBlock.__init__
__init__(self)
Definition
ReclusteredJetCalibrationConfig.py:10
python.ReclusteredJetCalibrationConfig.ReclusteredJetCalibrationBlock.jetCollection
jetCollection
Definition
ReclusteredJetCalibrationConfig.py:25
python.ReclusteredJetCalibrationConfig.ReclusteredJetCalibrationBlock.makeAlgs
makeAlgs(self, config)
Definition
ReclusteredJetCalibrationConfig.py:23
python.ReclusteredJetCalibrationConfig.ReclusteredJetCalibrationBlock.containerName
containerName
Definition
ReclusteredJetCalibrationConfig.py:25
Generated on
for ATLAS Offline Software by
1.14.0