Execute chainDump.py to print trigger counts from histograms to text files
Definition at line 470 of file CheckSteps.py.
◆ __init__()
| python.TrigValSteering.CheckSteps.ChainDumpStep.__init__ |
( |
| self, |
|
|
| name = 'ChainDump' ) |
Definition at line 475 of file CheckSteps.py.
475 def __init__(self, name='ChainDump'):
476 super(ChainDumpStep, self).__init__(name)
477 self.input_file = 'expert-monitoring.root'
478 self.executable = 'chainDump.py'
479 self.args = '--json --yaml'
480
◆ configure()
| python.TrigValSteering.CheckSteps.ChainDumpStep.configure |
( |
| self, |
|
|
| test ) |
Definition at line 481 of file CheckSteps.py.
482 self.args += ' -f '+self.input_file
483 super(ChainDumpStep, self).
configure(test)
484
485
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.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
◆ args
| str python.TrigValSteering.CheckSteps.ChainDumpStep.args = '--json --yaml' |
◆ auto_report_result
| python.TrigValSteering.CheckSteps.InputDependentStep.auto_report_result |
|
inherited |
◆ executable
| str python.TrigValSteering.CheckSteps.ChainDumpStep.executable = 'chainDump.py' |
◆ input_file
| python.TrigValSteering.CheckSteps.InputDependentStep.input_file = None |
|
inherited |
◆ name
| python.TrigValSteering.CheckSteps.InputDependentStep.name |
|
inherited |
◆ result
| python.TrigValSteering.CheckSteps.InputDependentStep.result = 1 |
|
inherited |
The documentation for this class was generated from the following file: