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

Public Member Functions

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

Public Attributes

 input_file
 
 executable
 
 args
 
 result
 

Detailed Description

Execute chainDump.py to print trigger counts from histograms to text files

Definition at line 471 of file CheckSteps.py.

Constructor & Destructor Documentation

◆ __init__()

def python.TrigValSteering.CheckSteps.ChainDumpStep.__init__ (   self,
  name = 'ChainDump' 
)

Reimplemented from python.TrigValSteering.CheckSteps.InputDependentStep.

Definition at line 476 of file CheckSteps.py.

476  def __init__(self, name='ChainDump'):
477  super(ChainDumpStep, self).__init__(name)
478  self.input_file = 'expert-monitoring.root'
479  self.executable = 'chainDump.py'
480  self.args = '--json --yaml'
481 

Member Function Documentation

◆ configure()

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

Definition at line 482 of file CheckSteps.py.

482  def configure(self, test):
483  self.args += ' -f '+self.input_file
484  super(ChainDumpStep, self).configure(test)
485 
486 

◆ run()

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

Reimplemented in python.TrigValSteering.CheckSteps.CheckFileStep.

Definition at line 103 of file CheckSteps.py.

103  def run(self, dry_run=False):
104  if self.input_file is None:
105  self.log.error('%s misconfiguration - no input file specified',
106  self.name)
107  self.result = 1
108  if self.auto_report_result:
109  self.report_result()
110  return self.result, '# (internal) {} -> failed'.format(self.name)
111 
112  if not dry_run and not os.path.isfile(self.input_file):
113  self.log.debug('Skipping %s because %s does not exist',
114  self.name, self.input_file)
115  self.result = 0
116  return self.result, '# (internal) {} -> skipped'.format(self.name)
117 
118  return super(InputDependentStep, self).run(dry_run)
119 
120 

Member Data Documentation

◆ args

python.TrigValSteering.CheckSteps.ChainDumpStep.args

Definition at line 480 of file CheckSteps.py.

◆ executable

python.TrigValSteering.CheckSteps.ChainDumpStep.executable

Definition at line 479 of file CheckSteps.py.

◆ input_file

python.TrigValSteering.CheckSteps.ChainDumpStep.input_file

Definition at line 478 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:
vtune_athena.format
format
Definition: vtune_athena.py:14
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
run
Definition: run.py:1
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
error
Definition: IImpactPoint3dEstimator.h:70