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

Public Member Functions

def __init__ (self, name='Tail')
 
def configure (self, test)
 

Public Attributes

 log_file
 
 output_name
 
 executable
 
 num_lines
 
 output_stream
 

Detailed Description

Copy the last N lines of a log file into a separate file

Definition at line 412 of file CheckSteps.py.

Constructor & Destructor Documentation

◆ __init__()

def python.TrigValSteering.CheckSteps.TailStep.__init__ (   self,
  name = 'Tail' 
)

Definition at line 415 of file CheckSteps.py.

415  def __init__(self, name='Tail'):
416  super(TailStep, self).__init__(name)
417  self.log_file = 'athena.log'
418  self.output_name = None
419  self.executable = 'tail'
420  self.num_lines = 5000
421  self.output_stream = Step.OutputStream.STDOUT_ONLY
422 

Member Function Documentation

◆ configure()

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

Definition at line 423 of file CheckSteps.py.

423  def configure(self, test):
424  if self.output_name is None:
425  split = os.path.splitext(self.log_file)
426  self.output_name = split[0]+'.tail'
427  if len(split) > 1:
428  self.output_name += split[1]
429  self.args += ' -n {:d}'.format(self.num_lines)
430  self.args += ' '+self.log_file
431  self.args += ' >'+self.output_name
432  super(TailStep, self).configure(test)
433 
434 

Member Data Documentation

◆ executable

python.TrigValSteering.CheckSteps.TailStep.executable

Definition at line 419 of file CheckSteps.py.

◆ log_file

python.TrigValSteering.CheckSteps.TailStep.log_file

Definition at line 417 of file CheckSteps.py.

◆ num_lines

python.TrigValSteering.CheckSteps.TailStep.num_lines

Definition at line 420 of file CheckSteps.py.

◆ output_name

python.TrigValSteering.CheckSteps.TailStep.output_name

Definition at line 418 of file CheckSteps.py.

◆ output_stream

python.TrigValSteering.CheckSteps.TailStep.output_stream

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