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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 414 of file CheckSteps.py.

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

Member Function Documentation

◆ configure()

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

Definition at line 422 of file CheckSteps.py.

422 def configure(self, test):
423 if self.output_name is None:
424 split = os.path.splitext(self.log_file)
425 self.output_name = split[0]+'.tail'
426 if len(split) > 1:
427 self.output_name += split[1]
428 self.args += ' -n {:d}'.format(self.num_lines)
429 self.args += ' '+self.log_file
430 self.args += ' >'+self.output_name
431 super(TailStep, self).configure(test)
432
433
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 418 of file CheckSteps.py.

◆ log_file

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

Definition at line 416 of file CheckSteps.py.

◆ num_lines

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

Definition at line 419 of file CheckSteps.py.

◆ output_name

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

Definition at line 417 of file CheckSteps.py.

◆ output_stream

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

Definition at line 420 of file CheckSteps.py.


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