| 
       
     | 
      
        
          get_connection_filename(filename,
        tmp_path=None,
        replace_file=False,
        verbose=False) 
      copied from glue.ligolw.dbtables by Kipp Cannon I can't directly 
      import from glue because dbtables collides with other tables | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          save_db(cursor,
        table_name,
        filename,
        working_filename,
        order_by=None,
        verbose=True) 
      Originally written by Nickolas Fotopoulos, modified. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
        
          get_candidate(cursor,
        critical_usedPer) 
      This function returns  a tuple: (threshold, used percentage, # of 
      coincident KW triggers above the threshold, # of total KW triggers 
      above the threshold, # of vetoed GW triggers, veto efficiency, dead 
      time, dead time percentage, (used percentage) / (random used 
      percentage), (veto efficiency) / (dead time percentage)) that 
      corresponds to threshold to be used for veto. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          rename(src) 
      If src alaready exists, this function rename it so that new file/directory... | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          load_segs_db(cur,
        tableName) 
      Load segments in glue.segments.segmentlist format FIXME: possibly SQL
      Injection attack | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
        
          write_segs(segs,
        file_name) 
      Take glue.segments.segmentlist and write in a ascii file in a form 
      compatible to the segment database. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          read_segfile(segfile) 
      Read segments in segwizard form with sanity check and return 
      glue.segments.segmentlist | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          read_segfile_xml(segfile,
        verbose) 
      Read segment file in ligolw xml type and return in 
      glue.segments.segmentlist format. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          find_version_xml(segfile,
        seg,
        verbose) 
      Find out the version of the flag for the given seg. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          get_segment(eventTime,
        pos_window,
        neg_window) 
      Given the time of trigger, this aplies +/- window and round to 
      integers in a way it broadens the window | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          get_result_files(result_dir,
        verbose) 
      Make a list of the result files from KW_veto_calc and check sanity. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     |