PMNS_Base.cxx
//......................................................................
///
/// Try to find a cached version of this eigensystem.
///
Try to find a cached version of this eigensystem.
Try to find a cached version of this eigensystem .
bool PMNS_Base::TryCache()
{
  if(fUseCache && !fMixCache.empty()){
    fProbe.SetVars(fEnergy, fPath, fIsNuBar);
    std::set<EigenPoint>::iterator it = fMixCache.find(fProbe);
    if(it != fMixCache.end()){
      for(int i=0; i<fNumNus; i++){
        fEval[i] = (*it).fEval[i] * (*it).fEnergy / fEnergy;
        for(int j=0; j<fNumNus; j++){
          fEvec[i][j] = (*it).fEvec[i][j];
        }
      }
      return true;
    }
  }
  return false;
}
bool PMNS_Base :: TryCache ( ) { if ( fUseCache && ! fMixCache . empty ( ) ) { fProbe . SetVars ( fEnergy , fPath , fIsNuBar ) ; std :: set < EigenPoint > :: iterator it = fMixCache . find ( fProbe ) ; if ( it != fMixCache . end ( ) ) { for ( int i = 0 ; i < fNumNus ; i ++ ) { fEval [ i ] = ( * it ) . fEval [ i ] * ( * it ) . fEnergy / fEnergy ; for ( int j = 0 ; j < fNumNus ; j ++ ) { fEvec [ i ] [ j ] = ( * it ) . fEvec [ i ] [ j ] ; } } return true ; } } return false ; }
......................................................................
......................................................................