A list of outputs to be produced by THistSvc in the format <streamName>:<fileName>
Definition at line 121 of file AthenaCommonFlags.py.
◆ _do_action()
def python.AthenaCommonFlags.HistOutputs._do_action |
( |
|
self, |
|
|
* |
args, |
|
|
** |
kwds |
|
) |
| |
|
private |
Definition at line 127 of file AthenaCommonFlags.py.
127 def _do_action( self, *args, **kwds ):
128 from AthenaCommon
import CfgMgr
129 from AthenaCommon
import AppMgr
130 if not hasattr(AppMgr.ServiceMgr,
"THistSvc"):
131 AppMgr.ServiceMgr += CfgMgr.THistSvc()
133 for output
in self.StoredValue:
134 if ":" not in output:
135 self.StoredValue.
remove(output)
136 raise ValueError(
"HistOutputs: %s must be in format '<streamName>:<fileName>'" % output)
138 streamName = output.split(
":",1)[0]
139 fileName = output.split(
":",1)[1]
142 outputs = AppMgr.ServiceMgr.THistSvc.Output
144 for hsOutput
in outputs:
145 hsStreamName = hsOutput.split(
" ",1)[0]
146 if hsStreamName==streamName:
150 AppMgr.ServiceMgr.THistSvc.Output += [
"%s DATAFILE='%s' OPT='RECREATE'" % (streamName,fileName)]
◆ allowedTypes
list python.AthenaCommonFlags.HistOutputs.allowedTypes = ['list'] |
|
static |
◆ statusOn
bool python.AthenaCommonFlags.HistOutputs.statusOn = True |
|
static |
◆ StoredValue
list python.AthenaCommonFlags.HistOutputs.StoredValue = [] |
|
static |
The documentation for this class was generated from the following file: