Skip to content
Snippets Groups Projects

Draft: [trigEGam] Integration beteween mongroups and TrigEgammaMonitoring

Closed Edmar Egidio Purcino De Souza requested to merge eegidiop/athena:tegmonGroups into 22.0
4 files
+ 30
59
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -9,14 +9,12 @@ from InDetRecExample.TrackingCommon import setDefaults
# ---- definitions
def metaDataKey():
'''
Meta data key to store the file source on which the InDet decoration alg has been running.
'''
return 'InDetPhysValDecoration'
def monManName():
'''
Name of the monitoring manager
@@ -66,21 +64,6 @@ def findMonMan():
return findAlg([monManName()], search_outputstream_otherwise=False)
def getMetaData():
'''
Try to determine from the meta data whether the decoration has been performed already.
'''
from RecExConfig.RecFlags import rec
if not rec.readRDO():
from PyUtils.MetaReaderPeekerFull import metadata
try:
return metadata['/TagInfo'][metaDataKey()]
except Exception:
pass
return ''
def setMetaData():
'''
Write the input source on which the InDet decoration algorithm was running to the meta data
@@ -461,10 +444,7 @@ def addDecoratorIfNeeded():
print('DEBUG addDecoratorIfNeeded ? Stage is too early or too late for running the decoration. Needs reconstructed tracks. Try again during next stage ?')
return
meta_data = getMetaData()
if len(meta_data) == 0:
# decoration has not been ran
addDecorator()
addDecorator()
# if DBM or GSF tracks need to be monitored schedule addExtraMonitoring as user algorithm, so that
# the monitoring manager exists already.
Loading