src/Pulses/PulTrainSCyc.cc
// Input	PTSC	: A pulse train supercycle (this)
// Output	phase	: Step phase value (degrees)
Input  PTSC    : A pulse train supercycle (this)
Output phase   : Step phase value (degrees)
Input PTSC : A pulse train supercycle ( this ) Output phase : Step phase value ( degrees )
double PulTrainSCyc::steps(double td) const
  { 
  if(td <= 0)       return 0;
  else if(tp == 0)  return 0;
  else              return td/tp;
  }
double PulTrainSCyc :: steps ( double td ) const { if ( td <= 0 ) return 0 ; else if ( tp == 0 ) return 0 ; else return td / tp ; }
Input  PTSC    : A pulse train supercycle (this)
Output phase   : Step phase value (degrees)
Input PTSC : A pulse train supercycle ( this ) Output phase : Step phase value ( degrees )
// Input	PTSC	: A pulse train supercycle (this) //              td      : An evolution time (sec) // Output       steps   : Number of supercycles steps needed //                        to evolve for time td