This defines a class for following up a trigger and to create the 
  timeseries of found triggers in each stage of the pipeline.
  # first need to initialize the class followup = 
  followup_trigger.FollowupTrigger(cache, opts)
  # later, one can do a followup of different objects, like an 
  injection, #   a coinc. trigger or a single trigger: htmlname1 = 
  followup.from_coinc(coinc) htmlname2 = followup.from_sngl(sngl_inspiral) 
  htmlname3 = followup.from_missed(missed_inj) htmlname4 = 
  followup.from_found(found_inj) htmlname5 = 
  followup.from_new_coinc(new_coinc,[sngls]) htmlname6 = 
  followup.from_new_slide_coinc(new_coinc,[sngls],slideDict,segs)
  # In each case the path to the created html file is returned. # In the
  first call a CoincInspirals table is expected, a SnglInspiral # table in 
  the second case and a SimInspiral table in the two last.
    | 
       
     | 
      
        
          __init__(self,
        cache,
        opts,
        use_injections=True,
        do_slides=False) 
      Initialize this class and sets up all the cache files. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
        
          execute_sned(self,
        injections) 
      Makes an external call to lalapps_sned to recalculate the effective 
      distances | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          setTag(self,
        tag) 
      Setting a tag (non-conformal naming because of backwards 
      compatibality) | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
        
          get_injection_window(self) 
      Extracting the length of the used injection_window from any 'FOUND' 
      file in the cache. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          get_injection_id(self,
        filename=None,
        url=None,
        cache_entry=None) 
      Extracting the injection ID from the filename, using
the mechanism as used in lalapps_path2cache. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          check_injection_id(self,
        cache_entry,
        tag) 
      The above relies on a very specific naming convention, here we check 
      if the injection tag is present in the files' description. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
        
          read_veto_files(self) 
      Reads the veto segments given by veto-files (if any) | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          reset(self) 
      Resets the counting number for the time-series plots generated. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
        
          get_sim_time(self,
        sim,
        ifo=None) 
      This is a helper function to return a GPS time as one float number 
      for a certain IFO. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          is_veto(self,
        time_trigger,
        ifo) 
      This function checks if there is a veto at the time 'timeTrigger' for
      the IFO 'ifo'. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
        
          create_timeseries(self,
        trigger_files,
        stage,
        number,
        slideDict=None) 
      Investigate inspiral triggers and create a time-series of the SNRs 
      around the injected time | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          select_category(self,
        trigger_files,
        category) 
      Return a trigger list that contains only files for the choosen 
      category. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          fill_table(self,
        page,
        contents,
        header=False,
        no_wrapping=False) 
      Fills contents in a html table | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
        
          create_table_coinc(self,
        coinc,
        snglInspirals=None,
        page=None,
        slideDict=None) 
      Creates the first table containing basic properties of the 
      coincidence which is followed up. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
        
          add_table_followup(self,
        page,
        invest_dict) 
      Adds the table containing specific information on the loudest trigger
      found in the followup region for each IFO. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          from_coinc(self,
        coinc,
        ifo=None,
        more_infos=False,
        injection_id=None,
        slideDict=None) 
      Creates a followup page from a coincident trigger. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          from_new_coinc(self,
        coinc,
        sngls,
        more_infos=False,
        injection_id=None) 
      Creates a followup page from a coincident trigger. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          from_new_slide_coinc(self,
        coinc,
        sngls,
        slideDict,
        more_infos=False,
        injection_id=None) 
      Creates a followup page from a slid coincident trigger. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          from_sngl(self,
        sngl,
        ifo=None,
        more_infos=False,
        injection_id=None) 
      Creates a followup page from a single trigger. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          from_missed(self,
        missed,
        ifo=None,
        more_infos=True,
        injection_id=None) 
      Creates a followup page from a missed injection. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          from_found(self,
        found,
        ifo=None,
        more_infos=False,
        injection_id=None,
        coinc=None,
        sngls=None) 
      Creates a followup page from a found injection. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          from_injection(self,
        injection,
        ifo=None,
        more_infos=True,
        injection_id=None,
        coinc=None,
        sngls=None) 
      Creates a followup page from an injection. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          from_time(self,
        trigger_time,
        ifo=None,
        more_infos=False,
        injection_id=None) 
      Creates a followup page from a given time. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          followup(self,
        page,
        slideDict=None) 
      Central followup procedure, finding corresponding files, generating 
      the time-series and creating the output html files | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
        
          get_relevant_distance(self,
        inj,
        ifo_list) 
      Find the relevant distance for this injection, given  the list of 
      IFO's | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          populate_followup_list(self,
        inj,
        ifo_list) 
      Find the relevant effective distance for this injection including any
      possible vetoes. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          followup_missed_injections(self,
        opts,
        missed_injections,
        found_injections,
        xvalue='mtotal',
        xlog='linear',
        ylog='log') 
      This function will do the complete followup on each relevant missed 
      injection. | 
          
            source code
            
           | 
         
       
      
     |