On board cone beam CT for treatment planning in image guided radiotherapy