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.addDependency('EventSelection', required=False)
13 self.addDependency('EventSelectionMerger', required=False)
14 self.addOption('containerName', None, type=str, info='the input photon container.',
15 meta={'role':'containerRef'})
16

Member Function Documentation

◆ instanceName()

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

Definition at line 17 of file PhotonExtraVariablesConfig.py.

17 def instanceName (self) :
18 """Return the instance name for this block"""
19 return self.containerName
20

◆ makeAlgs()

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

Definition at line 21 of file PhotonExtraVariablesConfig.py.

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

Member Data Documentation

◆ containerName

python.PhotonExtraVariablesConfig.PhotonExtraVariablesBlock.containerName

Definition at line 27 of file PhotonExtraVariablesConfig.py.


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