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

Public Member Functions

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

Public Attributes

str log_file = 'athena.log'
str output_name = None
str executable = 'tail'
int num_lines = 5000
 output_stream = Step.OutputStream.STDOUT_ONLY

Detailed Description

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

Definition at line 391 of file CheckSteps.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 394 of file CheckSteps.py.

394 def __init__(self, name='Tail'):
395 super(TailStep, self).__init__(name)
396 self.log_file = 'athena.log'
397 self.output_name = None
398 self.executable = 'tail'
399 self.num_lines = 5000
400 self.output_stream = Step.OutputStream.STDOUT_ONLY
401

Member Function Documentation

◆ configure()

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

Definition at line 402 of file CheckSteps.py.

402 def configure(self, test):
403 if self.output_name is None:
404 split = os.path.splitext(self.log_file)
405 self.output_name = split[0]+'.tail'
406 if len(split) > 1:
407 self.output_name += split[1]
408 self.args += ' -n {:d}'.format(self.num_lines)
409 self.args += ' '+self.log_file
410 self.args += ' >'+self.output_name
411 super(TailStep, self).configure(test)
412
413
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)

Member Data Documentation

◆ executable

str python.TrigValSteering.CheckSteps.TailStep.executable = 'tail'

Definition at line 398 of file CheckSteps.py.

◆ log_file

str python.TrigValSteering.CheckSteps.TailStep.log_file = 'athena.log'

Definition at line 396 of file CheckSteps.py.

◆ num_lines

int python.TrigValSteering.CheckSteps.TailStep.num_lines = 5000

Definition at line 399 of file CheckSteps.py.

◆ output_name

str python.TrigValSteering.CheckSteps.TailStep.output_name = None

Definition at line 397 of file CheckSteps.py.

◆ output_stream

python.TrigValSteering.CheckSteps.TailStep.output_stream = Step.OutputStream.STDOUT_ONLY

Definition at line 400 of file CheckSteps.py.


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