src/IntRank2/IntRank2A.cc
// sosi - looks like a logic problem in this function... when is this used?
//        it doesn't appear to be used anywhere........ Remove this then or
//        fix & use in read function if all IntRank classes do not use it.
//        I have made getAX to replace this one, and it is now used internally.
//        The getA function was NOT used.  So, when getA dies rename all getAX
//        to get A and be done with it.
looks like a logic problem in this function... when is this used.
it doesn't appear to be used anywhere........ Remove this then or
fix & use in read function if all IntRank classes do not use it.
I have made getAX to replace this one, and it is now used internally.
The getA function was NOT used.  So, when getA dies rename all getAX
to get A and be done with it.
looks like a logic problem in this function ... when is this used . it doesn ' t appear to be used anywhere ........ Remove this then or fix & use in read function if all IntRank classes do not use it . I have made getAX to replace this one and it is now used internally . The getA function was NOT used . So when getA dies rename all getAX to get A and be done with it .
bool IntRank2A::getA(const ParameterSet& pset, const string& A,
                    double& Aeta, EAngles& EA, int iI, int iS, bool warn) const
  {
  coord Aod;					
  coord Axyz;					
  int nod = getAoffdiag(pset,A,Aod,iI,iS,warn);	
  int nd  = getAxAyAz(pset,A,Axyz,iI,iS,warn);	
  if(nod)					
    {						
    matrix Amx(3,3, h_matrix_type);		
    Amx.put(Axyz.x(),  0, 0);			
    Amx.put(Axyz.y(),  1, 1);			
    Amx.put(Axyz.z(),  2, 2);			
    Amx.put_h(Aod.x(), 0, 1);			
    Amx.put_h(Aod.y(), 0, 2);			
    Amx.put_h(Aod.z(), 1, 2);			
    CartMx2A Convert(Amx);			
    Aeta = Convert.Eta();			
    EA   = Convert.EulerAngles();		
    }
  if(nd)					
    {						
    coord Aide = AisoDelzEta(Axyz);		
    Aeta = Aide.z();				
    getOrientation(pset,A,EA,iI,iS,warn);	
    return true;				
    }
  getAeta(pset, A, Aeta, iI, iS, warn);		
  getOrientation(pset,A,EA,iI,iS,warn);		
  return true;
  }
bool IntRank2A :: getA ( const ParameterSet & pset , const string & A , double & Aeta , EAngles & EA , int iI , int iS , bool warn ) const { coord Aod ; coord Axyz ; int nod = getAoffdiag ( pset , A , Aod , iI , iS , warn ) ; int nd = getAxAyAz ( pset , A , Axyz , iI , iS , warn ) ; if ( nod ) { matrix Amx ( 3 , 3 , h_matrix_type ) ; Amx . put ( Axyz . x ( ) , 0 , 0 ) ; Amx . put ( Axyz . y ( ) , 1 , 1 ) ; Amx . put ( Axyz . z ( ) , 2 , 2 ) ; Amx . put_h ( Aod . x ( ) , 0 , 1 ) ; Amx . put_h ( Aod . y ( ) , 0 , 2 ) ; Amx . put_h ( Aod . z ( ) , 1 , 2 ) ; CartMx2A Convert ( Amx ) ; Aeta = Convert . Eta ( ) ; EA = Convert . EulerAngles ( ) ; } if ( nd ) { coord Aide = AisoDelzEta ( Axyz ) ; Aeta = Aide . z ( ) ; getOrientation ( pset , A , EA , iI , iS , warn ) ; return true ; } getAeta ( pset , A , Aeta , iI , iS , warn ) ; getOrientation ( pset , A , EA , iI , iS , warn ) ; return true ; }
sosi - looks like a logic problem in this function... when is this used?
sosi - looks like a logic problem in this function ... when is this used?
// For Cartesian A off-diags // For Cartesian A diagonals // Try and read A off-diags // Try and read A diagonals // If we read some off-diags // we try to parse for PAS //   Array for Cartesian mx //   Set Axx value in mx //   Set Ayy value in mx //   Set Azz value in mx //   Set Axy value in mx  //   Set Axz value in mx //   Set Ayz value in mx //   Try & covert into PAS //   Get the asymmetry //   Get the Euler angles // If {Axx,Ayy,Azz} present // parse eta, try orientation //   Parse for eta value //   Set the return eta value //   Try & set Euler angles //   We have found A values // Try for eta value directly // Try & set Euler angles