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

Public Member Functions

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

Public Attributes

str executable = 'perfmon.py'
str args = '-f 0.90'
 input_file = None
 name
int result = 1
 auto_report_result

Detailed Description

Execute the PerfMon ntuple post-processing

Definition at line 391 of file CheckSteps.py.

Constructor & Destructor Documentation

◆ __init__()

python.TrigValSteering.CheckSteps.PerfMonStep.__init__ ( self,
name = 'PerfMon' )

Definition at line 394 of file CheckSteps.py.

394 def __init__(self, name='PerfMon'):
395 super(PerfMonStep, self).__init__(name)
396 self.input_file = None
397 self.executable = 'perfmon.py'
398 self.args = '-f 0.90'
399

Member Function Documentation

◆ configure()

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

Definition at line 400 of file CheckSteps.py.

400 def configure(self, test):
401 if not self.input_file:
402 num_athenaHLT_steps = sum([1 for step in test.exec_steps if step.type == 'athenaHLT'])
403 if num_athenaHLT_steps > 0:
404 self.input_file = 'athenaHLT_workers/athenaHLT-01/ntuple.pmon.gz'
405 else:
406 self.input_file = 'ntuple.pmon.gz'
407 self.args += ' '+self.input_file
408 super(PerfMonStep, self).configure(test)
409
410
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
const bool debug
Definition run.py:1

Member Data Documentation

◆ args

str python.TrigValSteering.CheckSteps.PerfMonStep.args = '-f 0.90'

Definition at line 398 of file CheckSteps.py.

◆ auto_report_result

python.TrigValSteering.CheckSteps.InputDependentStep.auto_report_result
inherited

Definition at line 108 of file CheckSteps.py.

◆ executable

str python.TrigValSteering.CheckSteps.PerfMonStep.executable = 'perfmon.py'

Definition at line 397 of file CheckSteps.py.

◆ input_file

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

Definition at line 101 of file CheckSteps.py.

◆ name

python.TrigValSteering.CheckSteps.InputDependentStep.name
inherited

Definition at line 106 of file CheckSteps.py.

◆ result

python.TrigValSteering.CheckSteps.InputDependentStep.result = 1
inherited

Definition at line 107 of file CheckSteps.py.


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