introduce functions to set laser pulse parameters