src/Bloch/BlochSys.cc
// ----------------------------------------------------------------------------
//        Set Up The Bloch System By Magnetization Vector Designations         
// ----------------------------------------------------------------------------
Set Up The Bloch System By Magnetization Vector Designations
Set Up The Bloch System By Magnetization Vector Designations
bool BlochSys::SetVects(const ParameterSet& pset, int N, bool warn)
  {
  double  W;					
  Isotope I;					
  double  R1;					
  double  R2;					
  int     Sp;					
  for(int i=0; i<N; i++)
    {
    if(!GetVect(pset, i, W, I, R1, R2, Sp))
      {
      return false;
      }
    Offsets.push_back(W);			
    R1rates.push_back(R1);			
    R2rates.push_back(R2);			
    isotopes.push_back(I);			
    Spins.push_back(Sp);			
    }
  return true;
  }
bool BlochSys :: SetVects ( const ParameterSet & pset , int N , bool warn ) { double W ; Isotope I ; double R1 ; double R2 ; int Sp ; for ( int i = 0 ; i < N ; i ++ ) { if ( ! GetVect ( pset , i , W , I , R1 , R2 , Sp ) ) { return false ; } Offsets . push_back ( W ) ; R1rates . push_back ( R1 ) ; R2rates . push_back ( R2 ) ; isotopes . push_back ( I ) ; Spins . push_back ( Sp ) ; } return true ; }
Set Up The Bloch System By Magnetization Vector Designations
Set Up The Bloch System By Magnetization Vector Designations
// For offset value // For isotope type // For R1 rate // For R2 rate // For spin assigment // sosi // Set offset value // Set R1 rate // Set R2 rate // Set isotope // Set spin