...does the optimal rank on the shield care about your sentinel/shield rank or you current class (Conj/Thaum/Glad) rank?

I'm presuming the former, but would like to know if anyone knows for certain.