Effective interactions and knockout reactions at intermediate energies by electromagnetic probe