Many variables determine when and how a plant flowers.
To flower a plant needs to turn some of its shoot apical meristems
into inflorescent meristems
then into floral meristems
The genes that do this are called
meristem identitiy genes