Hello bale07,
you said it was 2 weeks ago so you are now in subacute stage. You need that:
1-cold application.
2-cross fibre massage with pain tolerated.
3-active range of motion (knee flexion) or electrical stimulation.
4-gentle stretch(contract-relax technique) within limits of pain. Contract the hamestring isometrically(10 sec) then relax and stretch (10 sec).
Of course you can use heat but ice always benefits. Anti-inflamitry gel is also good for you.I recommend you to worm up before any training to prevent these injuries. If there is leg length discrepancy then you have to wear the insole.I am here if you want any further help.
bye