ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
HLT
Trigger
TrigTransforms
TrigTransform
python
trigCostExe.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
3
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
4
5
# @brief: Simple executor to call RunTrigCostAnalysis.py
6
# @details: Trig_reco_tf.py executor for cost processing
7
# @author: Mark Stockton
8
9
from
PyJobTransforms.trfExe
import
scriptExecutor
10
11
# Setup logging here
12
import
logging
13
msg = logging.getLogger(
"PyJobTransforms."
+ __name__)
14
15
class
trigCostExecutor
(scriptExecutor):
16
17
def
preExecute
(self, input = set(), output =
set
()):
18
19
# Build up the command line: RunTrigCostAnalysis.py Input.Files=inputDRAW_TRIGCOSTFile --outputHist=outputNTUP_TRIGCOSTFile
20
# All arguments have to be provided for step to be called
21
# inputDRAW_TRIGCOSTFile can be multiple files?
22
self.
_cmd
= [self._exe]
23
self.
_cmd
.extend([
'Input.Files='
+ str(self.conf.dataDictionary[
'DRAW_TRIGCOST'
].value) ])
24
self.
_cmd
.extend([
'--outputHist='
+self.conf.argdict[
'outputNTUP_TRIGCOSTFile'
].value[0]])
25
26
if
'costopts'
in
self.conf.argdict:
27
args = self.conf.argdict[
'costopts'
].value[
'all'
]
28
if
isinstance(args, list):
29
self.
_cmd
.extend([ str(v)
for
v
in
args])
30
else
:
31
self.
_cmd
.append(str(args))
32
33
if
'DBsmkey'
in
self.conf.argdict
and
'DBserver'
in
self.conf.argdict:
34
self.
_cmd
.append(
'--smk='
+ self.conf.argdict[
'DBsmkey'
].value)
35
self.
_cmd
.append(
'--dbAlias='
+ self.conf.argdict[
'DBserver'
].value)
36
37
38
super(trigCostExecutor, self).
preExecute
()
python.trigCostExe.trigCostExecutor
Definition
trigCostExe.py:15
python.trigCostExe.trigCostExecutor._cmd
list _cmd
Definition
trigCostExe.py:22
python.trigCostExe.trigCostExecutor.preExecute
preExecute(self, input=set(), output=set())
Definition
trigCostExe.py:17
set
STL class.
PyJobTransforms.trfExe
Transform execution functions.
Generated on
for ATLAS Offline Software by
1.17.0