Check if all counts are zero.
input_file can have multiple comma-separated values
 
Definition at line 571 of file CheckSteps.py.
◆ __init__()
      
        
          | def python.TrigValSteering.CheckSteps.ZeroCountsStep.__init__ | ( |  | self, | 
        
          |  |  |  | name = 'ZeroCounts' | 
        
          |  | ) |  |  | 
      
 
Definition at line 577 of file CheckSteps.py.
  577     def __init__(self, name='ZeroCounts'):
 
  578         super(ZeroCountsStep, self).
__init__(name)
 
  579         self.input_file = 
'HLTChain.txt,HLTTE.txt,L1AV.txt' 
  580         self.auto_report_result = 
True 
  582         self.__input_files__ = 
None 
 
 
◆ check_zero_counts()
      
        
          | def python.TrigValSteering.CheckSteps.ZeroCountsStep.check_zero_counts | ( |  | self, | 
        
          |  |  |  | input_file | 
        
          |  | ) |  |  | 
      
 
Definition at line 587 of file CheckSteps.py.
  587     def check_zero_counts(self, input_file):
 
  588         if not os.path.isfile(input_file):
 
  590                 'Skipping %s for %s because the file does not exist',
 
  591                 self.name, input_file)
 
  594         with open(input_file, encoding=
'utf-8') 
as f_in:
 
  595             for line 
in f_in.readlines():
 
  596                 split_line = line.split()
 
  598                 if int(split_line[-1]) != 0:
 
  600         if lines_checked == 0:
 
  601             self.log.
error(
'Failed to read counts from %s', input_file)
 
 
 
◆ configure()
      
        
          | def python.TrigValSteering.CheckSteps.ZeroCountsStep.configure | ( |  | self, | 
        
          |  |  |  | test = None | 
        
          |  | ) |  |  | 
      
 
 
◆ run()
      
        
          | def python.TrigValSteering.CheckSteps.ZeroCountsStep.run | ( |  | self, | 
        
          |  |  |  | dry_run = False | 
        
          |  | ) |  |  | 
      
 
Definition at line 604 of file CheckSteps.py.
  604     def run(self, dry_run=False):
 
  606         for input_file 
in self.__input_files__:
 
  607             results.append(self.check_zero_counts(input_file))
 
  609         self.result = 
max(results)
 
  610         cmd = 
'# (internal) {} for {}'.
format(self.name, self.__input_files__)
 
  612             cmd = 
'# (internal) {} -> skipped'.
format(self.name)
 
  614             return self.result, cmd
 
  615         self.log.
info(
'Running %s step', self.name)
 
  616         if self.auto_report_result:
 
  618         return self.result, cmd
 
 
 
◆ __input_files__
  
  | 
        
          | python.TrigValSteering.CheckSteps.ZeroCountsStep.__input_files__ |  | private | 
 
 
◆ auto_report_result
      
        
          | python.TrigValSteering.CheckSteps.ZeroCountsStep.auto_report_result | 
      
 
 
◆ input_file
      
        
          | python.TrigValSteering.CheckSteps.ZeroCountsStep.input_file | 
      
 
 
◆ required
      
        
          | python.TrigValSteering.CheckSteps.ZeroCountsStep.required | 
      
 
 
◆ result
      
        
          | python.TrigValSteering.CheckSteps.ZeroCountsStep.result | 
      
 
 
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)