ATLAS Offline Software
Loading...
Searching...
No Matches
python.TrigValSteering.CheckSteps.RootCompStep Class Reference
Inheritance diagram for python.TrigValSteering.CheckSteps.RootCompStep:
Collaboration diagram for python.TrigValSteering.CheckSteps.RootCompStep:

Public Member Functions

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

Public Attributes

str executable = 'rootcomp.py'
bool auto_report_result = True
int result = 0
 reference = None
 ref_test_name = None
 input_file = None
bool explicit_reference = False
 name
 required

Detailed Description

Execute RootComp comparing histograms against a reference

Definition at line 356 of file CheckSteps.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 359 of file CheckSteps.py.

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

Member Function Documentation

◆ configure()

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

Reimplemented from python.TrigValSteering.CheckSteps.RefComparisonStep.

Definition at line 365 of file CheckSteps.py.

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

◆ run()

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

Definition at line 373 of file CheckSteps.py.

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

Member Data Documentation

◆ auto_report_result

bool python.TrigValSteering.CheckSteps.RootCompStep.auto_report_result = True

Definition at line 363 of file CheckSteps.py.

◆ executable

str python.TrigValSteering.CheckSteps.RootCompStep.executable = 'rootcomp.py'

Definition at line 362 of file CheckSteps.py.

◆ explicit_reference

bool python.TrigValSteering.CheckSteps.RefComparisonStep.explicit_reference = False
inherited

Definition at line 27 of file CheckSteps.py.

◆ input_file

python.TrigValSteering.CheckSteps.RefComparisonStep.input_file = None
inherited

Definition at line 26 of file CheckSteps.py.

◆ name

python.TrigValSteering.CheckSteps.RefComparisonStep.name
inherited

Definition at line 46 of file CheckSteps.py.

◆ ref_test_name

python.TrigValSteering.CheckSteps.RefComparisonStep.ref_test_name = None
inherited

Definition at line 25 of file CheckSteps.py.

◆ reference

python.TrigValSteering.CheckSteps.RefComparisonStep.reference = None
inherited

Definition at line 24 of file CheckSteps.py.

◆ required

python.TrigValSteering.CheckSteps.RefComparisonStep.required
inherited

Definition at line 69 of file CheckSteps.py.

◆ result

python.TrigValSteering.CheckSteps.RootCompStep.result = 0

Definition at line 379 of file CheckSteps.py.


The documentation for this class was generated from the following file: