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

Public Member Functions

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

Public Attributes

 input_file
 
 executable
 
 auto_report_result
 
 result
 
 reference
 
 ref_test_name
 
 explicit_reference
 

Detailed Description

Execute RootComp comparing histograms against a reference

Definition at line 357 of file CheckSteps.py.

Constructor & Destructor Documentation

◆ __init__()

def python.TrigValSteering.CheckSteps.RootCompStep.__init__ (   self,
  name = 'RootComp' 
)

Reimplemented from python.TrigValSteering.CheckSteps.RefComparisonStep.

Definition at line 360 of file CheckSteps.py.

360  def __init__(self, name='RootComp'):
361  super(RootCompStep, self).__init__(name)
362  self.input_file = 'expert-monitoring.root'
363  self.executable = 'rootcomp.py'
364  self.auto_report_result = True
365 

Member Function Documentation

◆ configure()

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

Reimplemented from python.TrigValSteering.CheckSteps.RefComparisonStep.

Definition at line 366 of file CheckSteps.py.

366  def configure(self, test):
367  RefComparisonStep.configure(self, test)
368  if running_in_CI():
369  # drawing the diff output may be slow and is not needed for CI
370  self.args += ' --noRoot --noPS'
371  self.args += ' {} {}'.format(self.reference, self.input_file)
372  Step.configure(self, test)
373 

◆ run()

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

Definition at line 374 of file CheckSteps.py.

374  def run(self, dry_run=False):
375  if self.reference is None:
376  if not os.path.isfile(self.input_file):
377  self.log.debug(
378  'Skipping %s because both reference and input are missing',
379  self.name)
380  self.result = 0
381  return self.result, '# (internal) {} -> skipped'.format(self.name)
382  else: # input exists but reference not
383  self.log.error('Missing reference for %s', self.name)
384  self.result = 999
385  if self.auto_report_result:
386  self.report_result()
387  return self.result, '# (internal) {} -> failed'.format(self.name)
388  retcode, cmd = super(RootCompStep, self).run(dry_run)
389  return retcode, cmd
390 
391 

Member Data Documentation

◆ auto_report_result

python.TrigValSteering.CheckSteps.RootCompStep.auto_report_result

Definition at line 364 of file CheckSteps.py.

◆ executable

python.TrigValSteering.CheckSteps.RootCompStep.executable

Definition at line 363 of file CheckSteps.py.

◆ explicit_reference

python.TrigValSteering.CheckSteps.RefComparisonStep.explicit_reference
inherited

Definition at line 27 of file CheckSteps.py.

◆ input_file

python.TrigValSteering.CheckSteps.RootCompStep.input_file

Definition at line 362 of file CheckSteps.py.

◆ ref_test_name

python.TrigValSteering.CheckSteps.RefComparisonStep.ref_test_name
inherited

Definition at line 25 of file CheckSteps.py.

◆ reference

python.TrigValSteering.CheckSteps.RefComparisonStep.reference
inherited

Definition at line 24 of file CheckSteps.py.

◆ result

python.TrigValSteering.CheckSteps.RootCompStep.result

Definition at line 380 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
python.TrigValSteering.Common.running_in_CI
def running_in_CI()
Definition: Common.py:78
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