ATLAS Offline Software
Loading...
Searching...
No Matches
python.PhotonExtraVariablesConfig.PhotonExtraVariablesBlock Class Reference
Inheritance diagram for python.PhotonExtraVariablesConfig.PhotonExtraVariablesBlock:
Collaboration diagram for python.PhotonExtraVariablesConfig.PhotonExtraVariablesBlock:

Public Member Functions

 __init__ (self)
 instanceName (self)
 makeAlgs (self, config)

Public Attributes

 containerName

Detailed Description

a ConfigBlock for additional photon output variables
Decorates the output photons with the conversion type and calorimeter eta
and writes them to the output. Useful e.g. for photon-fake studies.

Definition at line 5 of file PhotonExtraVariablesConfig.py.

Constructor & Destructor Documentation

◆ __init__()

python.PhotonExtraVariablesConfig.PhotonExtraVariablesBlock.__init__ ( self)

Definition at line 10 of file PhotonExtraVariablesConfig.py.

10 def __init__(self):
11 super(PhotonExtraVariablesBlock, self).__init__()
12 self.addOption('containerName', None, type=str, info='the input photon container')
13

Member Function Documentation

◆ instanceName()

python.PhotonExtraVariablesConfig.PhotonExtraVariablesBlock.instanceName ( self)
Return the instance name for this block

Definition at line 14 of file PhotonExtraVariablesConfig.py.

14 def instanceName (self) :
15 """Return the instance name for this block"""
16 return self.containerName
17

◆ makeAlgs()

python.PhotonExtraVariablesConfig.PhotonExtraVariablesBlock.makeAlgs ( self,
config )

Definition at line 18 of file PhotonExtraVariablesConfig.py.

18 def makeAlgs(self, config):
19
20 alg = config.createAlgorithm('CP::PhotonExtraVariablesAlg', 'PhotonExtraVariables')
21 alg.photons = config.readName(self.containerName)
22 alg.affectingSystematicsFilter = '.*'
23
24 config.addOutputVar(self.containerName, 'conversionType_%SYS%', 'conversionType', noSys=True)
25 config.addOutputVar(self.containerName, 'caloEta2_%SYS%', 'caloEta2', noSys=True)

Member Data Documentation

◆ containerName

python.PhotonExtraVariablesConfig.PhotonExtraVariablesBlock.containerName

Definition at line 24 of file PhotonExtraVariablesConfig.py.


The documentation for this class was generated from the following file: