Calculating photochemical reaction mechanisms with multiconfigurational calculations and dynamics