Study of x-ray and L-REC photon emissions from highly ionized swift and projectiles passing through a thin carbon foil