3 from AnalysisAlgorithmsConfig.ConfigBlock
import ConfigBlock
6 """a ConfigBlock for additional photon output variables"""
7 """Decorates the output photons with the conversion type and calorimeter eta"""
8 """and writes them to the output. Useful e.g. for photon-fake studies."""
11 super(PhotonExtraVariablesBlock, self).
__init__()
12 self.addOption(
'containerName',
None, type=str, info=
'the input photon container')
16 alg = config.createAlgorithm(
'CP::PhotonExtraVariablesAlg',
'PhotonExtraVariables' + self.containerName)
17 alg.photons = config.readName(self.containerName)
18 alg.affectingSystematicsFilter =
'.*'
20 config.addOutputVar(self.containerName,
'conversionType_%SYS%',
'conversionType', noSys=
True)
21 config.addOutputVar(self.containerName,
'caloEta2_%SYS%',
'caloEta2', noSys=
True)