What .cpp file is running when a quad is outputing pwms to the motors?

Hi, I am new to the code structure of arducopter. I am wondering when I have a quadcopter, which .cpp file in the AP_Motors library, AP_MotorsMatrix.cpp, or AP_MotorsMulticopter.cpp is running to output PWMs to the motor? Also, what is the difference between these two?

Thanks,