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

Public Member Functions

def __init__ (self, name)
 
def configure (self, test)
 

Public Attributes

 executable
 
 log_file
 
 check_errors
 
 check_warnings
 
 config_file
 
 args
 
 required
 
 auto_report_result
 
 output_stream
 

Detailed Description

Execute CheckLog looking for errors or warnings in a log file

Definition at line 246 of file CheckSteps.py.

Constructor & Destructor Documentation

◆ __init__()

def python.TrigValSteering.CheckSteps.CheckLogStep.__init__ (   self,
  name 
)

Definition at line 249 of file CheckSteps.py.

249  def __init__(self, name):
250  super(CheckLogStep, self).__init__(name)
251  self.executable = 'check_log.py'
252  self.log_file = None
253  self.check_errors = True
254  self.check_warnings = False
255  self.config_file = None
256  self.args = '--showexcludestats'
257  # The following three are updated in configure() if not set
258  self.required = None
259  self.auto_report_result = None
260  self.output_stream = None
261 

Member Function Documentation

◆ configure()

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

Definition at line 262 of file CheckSteps.py.

262  def configure(self, test):
263  if self.config_file is None:
264  if test.package_name == 'TrigP1Test':
265  self.config_file = 'checklogTrigP1Test.conf'
266  elif test.package_name == 'TrigValTools':
267  self.config_file = 'checklogTrigValTools.conf'
268  else:
269  self.config_file = 'checklogTriggerTest.conf'
270  if self.log_file is None:
271  if len(test.exec_steps) == 1:
272  self.log_file = test.exec_steps[0].name+'.log'
273  else:
274  self.log_file = 'athena.log'
275  if self.check_errors:
276  self.args += ' --errors'
277  if self.check_warnings:
278  self.args += ' --warnings'
279 
280  errors_only = self.check_errors and not self.check_warnings
281  if self.output_stream is None:
282  self.output_stream = Step.OutputStream.FILE_AND_STDOUT if errors_only else Step.OutputStream.FILE_ONLY
283  if self.auto_report_result is None:
284  self.auto_report_result = errors_only
285  if self.required is None:
286  self.required = errors_only
287 
288  self.args += ' --config {} {}'.format(self.config_file, self.log_file)
289 
290  super(CheckLogStep, self).configure(test)
291 
292 

Member Data Documentation

◆ args

python.TrigValSteering.CheckSteps.CheckLogStep.args

Definition at line 256 of file CheckSteps.py.

◆ auto_report_result

python.TrigValSteering.CheckSteps.CheckLogStep.auto_report_result

Definition at line 259 of file CheckSteps.py.

◆ check_errors

python.TrigValSteering.CheckSteps.CheckLogStep.check_errors

Definition at line 253 of file CheckSteps.py.

◆ check_warnings

python.TrigValSteering.CheckSteps.CheckLogStep.check_warnings

Definition at line 254 of file CheckSteps.py.

◆ config_file

python.TrigValSteering.CheckSteps.CheckLogStep.config_file

Definition at line 255 of file CheckSteps.py.

◆ executable

python.TrigValSteering.CheckSteps.CheckLogStep.executable

Definition at line 251 of file CheckSteps.py.

◆ log_file

python.TrigValSteering.CheckSteps.CheckLogStep.log_file

Definition at line 252 of file CheckSteps.py.

◆ output_stream

python.TrigValSteering.CheckSteps.CheckLogStep.output_stream

Definition at line 260 of file CheckSteps.py.

◆ required

python.TrigValSteering.CheckSteps.CheckLogStep.required

Definition at line 258 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
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18