def combine_vectors(hitlist1, hitlist2):
  """combines two vectors into a new one and returns. I wouldn't try merging the
two vectors together using one as the return vector for now."""
  vec = s6fits.s6Vector()
  vec.insert(hitlist1.begin(), s6Vector)
  return vec
Beispiel #2
0
def combine_vectors(hitlist1, hitlist2):
  """combines two vectors into a new one and returns. I wouldn't try merging the
two vectors together using one as the return vector for now."""
  vec = s6fits.s6Vector()
  vec.insert(hitlist1.begin(), s6Vector)
  return vec
def get_range_of_hits(s6hits, index_range):
  """gets a range of hits from s6hits and puts it into a new vector"""
  vec = s6fits.s6Vector()
  for i in index_range:
    vec.push_back(s6hits[i]) 
  return vec
Beispiel #4
0
def get_range_of_hits(s6hits, index_range):
  """gets a range of hits from s6hits and puts it into a new vector"""
  vec = s6fits.s6Vector()
  for i in index_range:
    vec.push_back(s6hits[i]) 
  return vec