ATLAS Offline Software
Public Member Functions | Public Attributes | Private Attributes | List of all members
python.TrigValSteering.CheckSteps.CheckFileStep Class Reference
Inheritance diagram for python.TrigValSteering.CheckSteps.CheckFileStep:
Collaboration diagram for python.TrigValSteering.CheckSteps.CheckFileStep:

Public Member Functions

def __init__ (self, name='CheckFile')
 
def configure (self, test)
 
def run (self, dry_run=False)
 

Public Attributes

 input_file
 
 executable
 
 args
 
 log_file_name
 
 result
 

Private Attributes

 __executables__
 
 __input_files__
 

Detailed Description

Execute checkFile and checkxAOD for POOL files.
executable and input_file can have multiple comma-separated values

Definition at line 520 of file CheckSteps.py.

Constructor & Destructor Documentation

◆ __init__()

def python.TrigValSteering.CheckSteps.CheckFileStep.__init__ (   self,
  name = 'CheckFile' 
)

Reimplemented from python.TrigValSteering.CheckSteps.InputDependentStep.

Definition at line 526 of file CheckSteps.py.

526  def __init__(self, name='CheckFile'):
527  super(CheckFileStep, self).__init__(name)
528  self.input_file = 'AOD.pool.root,ESD.pool.root,RDO_TRIG.pool.root'
529  self.executable = 'checkFile.py,checkxAOD.py'
530  self.__executables__ = None
531  self.__input_files__ = None
532 

Member Function Documentation

◆ configure()

def python.TrigValSteering.CheckSteps.CheckFileStep.configure (   self,
  test 
)

Definition at line 533 of file CheckSteps.py.

533  def configure(self, test):
534  # Skip the check if all test steps are athenaHLT (no POOL files)
535  test_types = [step.type for step in test.exec_steps]
536  num_athenaHLT = sum(1 for tt in test_types if tt == 'athenaHLT')
537  if num_athenaHLT == test_types:
538  self.log.debug('%s will be skipped because all exec steps use athenaHLT')
539  self.__executables__ = None
540  self.__input_files__ = None
541  return
542  self.__executables__ = self.executable.split(',')
543  self.__input_files__ = self.input_file.split(',')
544  super(CheckFileStep, self).configure(test)
545 

◆ run()

def python.TrigValSteering.CheckSteps.CheckFileStep.run (   self,
  dry_run = False 
)

Reimplemented from python.TrigValSteering.CheckSteps.InputDependentStep.

Definition at line 546 of file CheckSteps.py.

546  def run(self, dry_run=False):
547  ret_codes = []
548  commands = []
549  for f in self.__input_files__:
550  for ex in self.__executables__:
551  self.executable = ex
552  self.input_file = f
553  self.args = f
554  ex_base = ex.split('.')[0:-1]
555  self.log_file_name = f + '.' + ''.join(ex_base)
556  ret, cmd = super(CheckFileStep, self).run(dry_run)
557  ret_codes.append(ret)
558  commands.append(cmd)
559 
560  # Merge executed commands for logging
561  merged_cmd = ''
562  if len(commands) == 1:
563  merged_cmd = commands[0]
564  else:
565  for cmd in commands:
566  if '(internal)' not in cmd:
567  merged_cmd += cmd+'; '
568  if len(merged_cmd) == 0:
569  merged_cmd = commands[-1]
570 
571  return max(ret_codes), merged_cmd
572 
573 

Member Data Documentation

◆ __executables__

python.TrigValSteering.CheckSteps.CheckFileStep.__executables__
private

Definition at line 530 of file CheckSteps.py.

◆ __input_files__

python.TrigValSteering.CheckSteps.CheckFileStep.__input_files__
private

Definition at line 531 of file CheckSteps.py.

◆ args

python.TrigValSteering.CheckSteps.CheckFileStep.args

Definition at line 553 of file CheckSteps.py.

◆ executable

python.TrigValSteering.CheckSteps.CheckFileStep.executable

Definition at line 529 of file CheckSteps.py.

◆ input_file

python.TrigValSteering.CheckSteps.CheckFileStep.input_file

Definition at line 528 of file CheckSteps.py.

◆ log_file_name

python.TrigValSteering.CheckSteps.CheckFileStep.log_file_name

Definition at line 555 of file CheckSteps.py.

◆ result

python.TrigValSteering.CheckSteps.InputDependentStep.result
inherited

Definition at line 107 of file CheckSteps.py.


The documentation for this class was generated from the following file:
max
#define max(a, b)
Definition: cfImp.cxx:41
configure
bool configure(asg::AnaToolHandle< ITrigGlobalEfficiencyCorrectionTool > &tool, ToolHandleArray< IAsgElectronEfficiencyCorrectionTool > &electronEffToolsHandles, ToolHandleArray< IAsgElectronEfficiencyCorrectionTool > &electronSFToolsHandles, ToolHandleArray< CP::IMuonTriggerScaleFactors > &muonToolsHandles, ToolHandleArray< IAsgPhotonEfficiencyCorrectionTool > &photonEffToolsHandles, ToolHandleArray< IAsgPhotonEfficiencyCorrectionTool > &photonSFToolsHandles, const std::string &triggers, const std::map< std::string, std::string > &legsPerTool, unsigned long nToys, bool debug)
Definition: TrigGlobEffCorrValidation.cxx:514
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
convertTimingResiduals.sum
sum
Definition: convertTimingResiduals.py:55
run
Definition: run.py:1
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10
debug
const bool debug
Definition: MakeUncertaintyPlots.cxx:53
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
Trk::split
@ split
Definition: LayerMaterialProperties.h:38