ATLAS Offline Software
Loading...
Searching...
No Matches
python.AthMonitorCfgHelper Namespace Reference

Classes

class  AthMonitorCfgHelper

Functions

 getDQTHistSvc (flags)

Detailed Description

@file AthMonitorCfgHelper.py
@author C. D. Burton
@author P. Onyisi
@date 2019-01-25
@brief Helper classes for Run 3 monitoring algorithm configuration

Function Documentation

◆ getDQTHistSvc()

python.AthMonitorCfgHelper.getDQTHistSvc ( flags)
This function creates a THistSvc - used for the new-style job configuration

Returns:
(result, histsvc) -- a tuple of (ComponentAccumulator, THistSvc Configurable object)

Definition at line 169 of file AthMonitorCfgHelper.py.

169def getDQTHistSvc(flags):
170 '''
171 This function creates a THistSvc - used for the new-style job configuration
172
173 Returns:
174 (result, histsvc) -- a tuple of (ComponentAccumulator, THistSvc Configurable object)
175 '''
176 result = ComponentAccumulator()
177 histsvc = CompFactory.THistSvc()
178 if flags.Output.HISTFileName:
179 histsvc.Output += ["%s DATAFILE='%s' OPT='RECREATE'" % (flags.DQ.FileKey,
180 flags.Output.HISTFileName)]
181 result.addService(histsvc)
182 return result