private boolean checkNeedE( int res1, int res1AANum, int res1RotNum, int res2, int res2AANum, int res2RotNum ){
            //Returns if we need to compute the given shell or pairwise energy
            if(!compCETM)//Need all energies for normal energy matrices
                return true;
            
            
            if (eliminatedRotAtRes == null){//no pruning, so try to compute everything
                //(we'll do an extra steric check in pairwiseRotamerEnergySidechainHelper in this case)s
                return true;
            }
            
            
            //Now check that the RC(s) and, if applicable, pair are not pruned
            //If compCETM then we should have eliminatedRotAtRes and splitFlags available
            if( eliminatedRotAtRes.get(res1,res1AANum,res1RotNum) )
                return false;

            if(res2!=-1){//Pairwise energy
                if( eliminatedRotAtRes.get(res2,res2AANum,res2RotNum) )
                    return false;
                if(compCETM && splitFlags!=null) {
                    //if we've done pairs pruning and are considering CET computation
                    if( splitFlags[res1][res1AANum][res1RotNum][res2][res2AANum][res2RotNum] )
                        return false;
                }
            }

            return true;
        }