ATLAS Offline Software
trigRateExe.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 RatesAnalysisFullMenu.py
6 # @details: Trig_reco_tf.py executor for rate 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 trigRateExecutor(scriptExecutor):
16 
17  def preExecute(self, input = set(), output = set()):
18 
19  # Build up the command line: RatesAnalysisFullMenu.py Input.Files=inputAODFile --outputHist=outputNTUP_TRIGRATEFile
20  # All arguments have to be provided for step to be called
21  # inputAODFile can be multiple files
22  self._cmd = [self._exe]
23  self._cmd.extend(['Input.Files=' + str(self.conf.dataDictionary['AOD'].value) ])
24  self._cmd.extend(['--outputHist='+self.conf.argdict['outputNTUP_TRIGRATEFile'].value[0]])
25 
26  if 'rateopts' in self.conf.argdict:
27  args = self.conf.argdict['rateopts'].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  super(trigRateExecutor, self).preExecute()
dumpHVPathFromNtuple.append
bool append
Definition: dumpHVPathFromNtuple.py:91
python.trigRateExe.trigRateExecutor._cmd
_cmd
Definition: trigRateExe.py:22
python.trigRateExe.trigRateExecutor
Definition: trigRateExe.py:15
CxxUtils::set
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
Definition: bitmask.h:232
PyJobTransforms.trfExe
Transform execution functions.
ActsTrk::detail::MakeDerivedVariant::extend
constexpr std::variant< Args..., T > extend(const std::variant< Args... > &, const T &)
Definition: MakeDerivedVariant.h:17
str
Definition: BTagTrackIpAccessor.cxx:11
python.trigRateExe.trigRateExecutor.preExecute
def preExecute(self, input=set(), output=set())
Definition: trigRateExe.py:17