Emotional subroutine
Emotional subroutines were programs within the EMH Mark I that enabled a hologram to experience emotions.

Between 2372 and 2377, The Doctor's emotional subroutines were enhanced by B'Elanna Torres, enabling him to cry throughout the third act of Tosca the first time he saw it on the holodeck. ()
Subroutines