Copy the last N lines of a log file into a separate file
Definition at line 412 of file CheckSteps.py.
◆ __init__()
def python.TrigValSteering.CheckSteps.TailStep.__init__ |
( |
|
self, |
|
|
|
name = 'Tail' |
|
) |
| |
Definition at line 415 of file CheckSteps.py.
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
◆ configure()
def python.TrigValSteering.CheckSteps.TailStep.configure |
( |
|
self, |
|
|
|
test |
|
) |
| |
Definition at line 423 of file CheckSteps.py.
424 if self.output_name
is None:
425 split = os.path.splitext(self.log_file)
426 self.output_name = split[0]+
'.tail'
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
◆ executable
python.TrigValSteering.CheckSteps.TailStep.executable |
◆ log_file
python.TrigValSteering.CheckSteps.TailStep.log_file |
◆ num_lines
python.TrigValSteering.CheckSteps.TailStep.num_lines |
◆ output_name
python.TrigValSteering.CheckSteps.TailStep.output_name |
◆ output_stream
python.TrigValSteering.CheckSteps.TailStep.output_stream |
The documentation for this class was generated from the following file:
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)