code: def get_found_param(injfile, bankfile, trigfile, param, ifo, args=None):
      
      foundtmp = injfile["found_after_vetoes/template_id"][:]
      if trigfile is not None:
          # get the name of the ifo in the injection file, eg "detector_1"
          # and the integer from that name
          ifolabel = [name for name, val in injfile.attrs.items() if \
                      "detector" in name and val == ifo][0]
          foundtrg = injfile["found_after_vetoes/trigger_id" + ifolabel[-1]]
      if bankfile is not None and param in bankfile.keys():
          return bankfile[param][:][foundtmp]
      elif trigfile is not None and param in trigfile[ifo].keys():
          return trigfile[ifo][param][:][foundtrg]
      else:
          b = bankfile
          return get_param(param, args, b['mass1'][:], b['mass2'][:],
                                       b['spin1z'][:], b['spin2z'][:])[foundtmp]
docs: Translates some popular trigger parameters into functions that calculate
      them from an hdf found injection file
  
      Parameters
      ----------
      injfile: hdf5 File object
          Injection file of format known to ANitz (DOCUMENTME)
      bankfile: hdf5 File object or None
          Template bank file
      trigfile: hdf5 File object or None
          Single-detector trigger file
      param: string
          Parameter to be calculated for the recovered triggers
      ifo: string or None
          Standard ifo name, ex. 'L1'
      args : Namespace object returned from ArgumentParser instance
          Calling code command line options, used for f_lower value
  
      Returns
      -------
      [return value]: NumPy array of floats
          The calculated parameter values