The HP2 Survey: IV. the Pipe nebula: Effective dust temperatures in dense cores