The photo-transistor operates because the strike of the semiconductor frees the electrons / pores and the current flows in the original field. Photo-transistors are operated in their active regime,