src/Pulses/PulSinc.cc
/* A Sinc pulse angle is defined as the total rotation angle experienced by
   a single spin on resonance.  That angle is determined by the applied
   RF-field strength (gamB1), the length of the pulse, and (in this discrete
   treatment) the number of pulse steps.  As such, if we know any of the two
   quantities { angle, gamB1, tp } and the number of steps we have defined
   a Sinc pulse. The following functions allow users to access these values.

   Function                                Purpose
   ---------         -------------------------------------------------------
   SincAngle	     Given {gamB1, tp,    N } returns effective pulse angle
   SincGamB1	     Given {pang,  tp,    N } returns Sinc rf-field strength
   SincTime	     Given {pang,  gamB1, N } returns Sinc pulse length   */
A Sinc pulse angle is defined as the total rotation angle experienced by
a single spin on resonance.  That angle is determined by the applied
RF-field strength (gamB1), the length of the pulse, and (in this discrete
treatment) the number of pulse steps.  As such, if we know any of the two
quantities { angle, gamB1, tp } and the number of steps we have defined
a Sinc pulse. The following functions allow users to access these values.

Function                                Purpose

SincAngle         Given {gamB1, tp,    N } returns effective pulse angle
SincGamB1         Given {pang,  tp,    N } returns Sinc rf-field strength
SincTime          Given {pang,  gamB1, N } returns Sinc pulse length
A Sinc pulse angle is defined as the total rotation angle experienced by a single spin on resonance . That angle is determined by the applied RF - field strength ( gamB1 ) the length of the pulse and ( in this discrete treatment ) the number of pulse steps . As such if we know any of the two quantities { angle gamB1 tp } and the number of steps we have defined a Sinc pulse . The following functions allow users to access these values . Function Purpose SincAngle Given { gamB1 tp N } returns effective pulse angle SincGamB1 Given { pang tp N } returns Sinc rf - field strength SincTime Given { pang gamB1 N } returns Sinc pulse length
double SincAngle(double gamB1, double tau, int N, int node)
   {
   row_vector Sinc = SincNVect(N, node);	
   double angle = Re(Sinc.sum())*gamB1*tau;	
   return angle*360.0/double(N);		
   }
double SincAngle ( double gamB1 , double tau , int N , int node ) { row_vector Sinc = SincNVect ( N , node ) ; double angle = Re ( Sinc . sum ( ) ) * gamB1 * tau ; return angle * 360.0 / double ( N ) ; }
A Sinc pulse angle is defined as the total rotation angle experienced by
a single spin on resonance.
A Sinc pulse angle is defined as the total rotation angle experienced by a single spin on resonance .
// Normalized Sinc function // On resonance pulse angle // Return angle in degrees