Пример #1
0
// ///////////////////////////////////////////////////////////////
//
// auto_add -g
//
void psradd::check_interval_within ()
{
  double gap = (total->start_time() - total->end_time()).in_seconds();

  if (verbose)
    cerr << "psradd: Auto add - gap " << gap << " seconds" << endl;

  if (fabs(gap) > max_interval_within)
  {
    if (verbose)
      cerr << "psradd: gap=" << gap << " greater than interval within="
	   << max_interval_within << endl;
    reset_total = true;
  }
}
Пример #2
0
// ///////////////////////////////////////////////////////////////
//
// auto_add -G
//
void psradd::check_interval_between (Pulsar::Archive* archive)
{   
  double gap = (archive->start_time() - total->end_time()).in_seconds();
      
  if (verbose)
    cerr << "psradd: Auto add - gap = " << gap << " seconds" << endl;
      
  if (fabs(gap) > max_interval_between)
  {
    if (verbose)
      cerr << "psradd: gap=" << gap << " greater than interval between=" 
	   << max_interval_between << endl;
    reset_total = true;
  }
}