Systematic study of isoscalar and isovector pairing in the 2p1f shell