Integrating experiment and simulation provides invaluable insights into the critical parameters that determine the microstructure of alloys produced by additive manufacturing. Here, the grain structure formation due to solidification during single pass laser scans (mimicking bead-on-plate single tracks) on a 316L stainless steel is studied in situ inside a scanning electron microscope that is directly integrated with a continuous-wave laser. The grain size distribution before melting is used as an initial condition in a coupled phase-field/thermal multiphysics modeling framework. The predicted resolidified microstructures are found to agree favorably with those observed experimentally for multiple laser powers and scan velocities, indicating the validity of the overall model. Grain morphology is analyzed quantitatively, and the top surfaces are compared between the experiments and simulations. Analysis of the three-dimensional grain shapes predicted by the simulations shows that the length of the major axis of the resolidified grains is sensitive to laser power and scan speeds, while the length of the minor axis is not. Furthermore, the preferential alignment of the major axes of the grains depends on the melt pool geometry.