$def with (title, material, detector, params, paramsvals)

${title}

$for i in range(0,len(params)):
material
detector
${params[i]}