PMNS_Base.cxx
//......................................................................
///
/// If using caching, save the eigensystem in memory
///
If using caching, save the eigensystem in memory
If using caching save the eigensystem in memory
void PMNS_Base::FillCache()
{
  if(fUseCache){
    if(fMixCache.size()>fMaxCache){
      fMixCache.erase(fMixCache.begin());
      fMixCache.erase(--fMixCache.end());
    }
    for(int i=0; i<fNumNus; i++){
      fProbe.fEval[i] = fEval[i];
      for(int j=0; j<fNumNus; j++){
        fProbe.fEvec[i][j] = fEvec[i][j];
      }
    }
    fMixCache.insert(fProbe);
  }
}
void PMNS_Base :: FillCache ( ) { if ( fUseCache ) { if ( fMixCache . size ( ) > fMaxCache ) { fMixCache . erase ( fMixCache . begin ( ) ) ; fMixCache . erase ( -- fMixCache . end ( ) ) ; } for ( int i = 0 ; i < fNumNus ; i ++ ) { fProbe . fEval [ i ] = fEval [ i ] ; for ( int j = 0 ; j < fNumNus ; j ++ ) { fProbe . fEvec [ i ] [ j ] = fEvec [ i ] [ j ] ; } } fMixCache . insert ( fProbe ) ; } }
......................................................................
......................................................................