Execute RootComp comparing histograms against a reference
Definition at line 356 of file CheckSteps.py.
◆ __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
◆ configure()
| python.TrigValSteering.CheckSteps.RootCompStep.configure |
( |
| self, |
|
|
| test ) |
Reimplemented from python.TrigValSteering.CheckSteps.RefComparisonStep.
Definition at line 365 of file CheckSteps.py.
366 RefComparisonStep.configure(self, test)
367 if running_in_CI():
368
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):
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:
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
◆ auto_report_result
| bool python.TrigValSteering.CheckSteps.RootCompStep.auto_report_result = True |
◆ executable
| str python.TrigValSteering.CheckSteps.RootCompStep.executable = 'rootcomp.py' |
◆ explicit_reference
| bool python.TrigValSteering.CheckSteps.RefComparisonStep.explicit_reference = False |
|
inherited |
◆ input_file
| python.TrigValSteering.CheckSteps.RefComparisonStep.input_file = None |
|
inherited |
◆ name
| python.TrigValSteering.CheckSteps.RefComparisonStep.name |
|
inherited |
◆ ref_test_name
| python.TrigValSteering.CheckSteps.RefComparisonStep.ref_test_name = None |
|
inherited |
◆ reference
| python.TrigValSteering.CheckSteps.RefComparisonStep.reference = None |
|
inherited |
◆ required
| python.TrigValSteering.CheckSteps.RefComparisonStep.required |
|
inherited |
◆ result
| python.TrigValSteering.CheckSteps.RootCompStep.result = 0 |
The documentation for this class was generated from the following file: