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 245 of file CheckSteps.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 248 of file CheckSteps.py.

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

Member Function Documentation

◆ configure()

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

Definition at line 261 of file CheckSteps.py.

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

Member Data Documentation

◆ args

python.TrigValSteering.CheckSteps.CheckLogStep.args

Definition at line 255 of file CheckSteps.py.

◆ auto_report_result

python.TrigValSteering.CheckSteps.CheckLogStep.auto_report_result

Definition at line 258 of file CheckSteps.py.

◆ check_errors

python.TrigValSteering.CheckSteps.CheckLogStep.check_errors

Definition at line 252 of file CheckSteps.py.

◆ check_warnings

python.TrigValSteering.CheckSteps.CheckLogStep.check_warnings

Definition at line 253 of file CheckSteps.py.

◆ config_file

python.TrigValSteering.CheckSteps.CheckLogStep.config_file

Definition at line 254 of file CheckSteps.py.

◆ executable

python.TrigValSteering.CheckSteps.CheckLogStep.executable

Definition at line 250 of file CheckSteps.py.

◆ log_file

python.TrigValSteering.CheckSteps.CheckLogStep.log_file

Definition at line 251 of file CheckSteps.py.

◆ output_stream

python.TrigValSteering.CheckSteps.CheckLogStep.output_stream

Definition at line 259 of file CheckSteps.py.

◆ required

python.TrigValSteering.CheckSteps.CheckLogStep.required

Definition at line 257 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