modify sample source for HROOT